summaryrefslogtreecommitdiff
path: root/totpgen.h
diff options
context:
space:
mode:
authorWalker Thompson <walker.thompson@urz.uni-heidelberg.de>2026-04-17 11:09:37 +0000
committerWalker Thompson <walker.thompson@urz.uni-heidelberg.de>2026-04-17 11:09:37 +0000
commit822877c6d6d019f725e7696855cf1996b2138ab0 (patch)
tree7b4949b53761234f818d7e6d3e958acf687512fa /totpgen.h
parentfdda56c95ae249c90b47c1a060d081db66a730da (diff)
Add DPI scaling for TOTP text field under GTK+
Diffstat (limited to 'totpgen.h')
-rw-r--r--totpgen.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/totpgen.h b/totpgen.h
index f1a368d..8feee9a 100644
--- a/totpgen.h
+++ b/totpgen.h
@@ -16,6 +16,7 @@
#include <wx/dir.h>
#include <wx/clipbrd.h>
#include <wx/regex.h>
+#include <wx/font.h>
static const std::string base32 = "ABCDEFGHIJKLMNOPQRSTUVWXYZ234567";
@@ -50,6 +51,7 @@ class TOTPGen : public wxFrame {
wxBoxSizer *TextSizer;
wxStaticText *TOTPField;
+ void ResizeTextToFit(wxStaticText *text_field);
wxString SecretFile;