Skip to content

Commit

Permalink
Visual tweaks to LanguageCtrl
Browse files Browse the repository at this point in the history
Shorten the placeholder hint.

Set minimum control size to something reasonable.
  • Loading branch information
vslavik committed Sep 23, 2023
1 parent 3c04446 commit 1bf4c40
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/languagectrl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -127,14 +127,15 @@ LanguageCtrl::LanguageCtrl() : m_inited(false)
}

LanguageCtrl::LanguageCtrl(wxWindow *parent, wxWindowID winid, Language lang)
: wxComboBox(parent, winid)
: wxComboBox(parent, winid, "", wxDefaultPosition, wxSize(PX(220), -1))
{
Init(lang);
}

void LanguageCtrl::Init(Language lang)
{
SetHint(_("Language Code or Name (e.g. en_GB)"));
// TRANSLATORS: placeholder/hint in language controls
SetHint(_("Language name or code"));

// wxGTK must have the value set before autocompletion (but also after it
// below) to avoid annoying popups in some (hard to determine) cases.
Expand Down

0 comments on commit 1bf4c40

Please sign in to comment.