Split colors into two columns so that the preferences dialog is less awkwardly shaped
Originally committed to SVN as r4760.
This commit is contained in:
parent
5d5f24cbd8
commit
5721003219
1 changed files with 9 additions and 0 deletions
|
@ -158,6 +158,10 @@ Interface::Interface(wxTreebook *book): OptionPage(book, _("Interface")) {
|
|||
|
||||
/// Interface Colours preferences subpage
|
||||
Interface_Colours::Interface_Colours(wxTreebook *book): OptionPage(book, _("Colours"), PAGE_SCROLL|PAGE_SUB) {
|
||||
delete sizer;
|
||||
wxSizer *main_sizer = new wxBoxSizer(wxHORIZONTAL);
|
||||
sizer = new wxBoxSizer(wxVERTICAL);
|
||||
main_sizer->Add(sizer);
|
||||
|
||||
wxFlexGridSizer *general = PageSizer(_("General"));
|
||||
OptionAdd(general, _("Modified Background"), "Colour/Background/Modified");
|
||||
|
@ -178,6 +182,9 @@ Interface_Colours::Interface_Colours(wxTreebook *book): OptionPage(book, _("Colo
|
|||
OptionAdd(audio, _("Syllable text"), "Colour/Audio Display/Syllable Text");
|
||||
OptionAdd(audio, _("Syllable boundaries"), "Colour/Audio Display/Syllable Boundaries");
|
||||
|
||||
sizer = new wxBoxSizer(wxVERTICAL);
|
||||
main_sizer->Add(sizer);
|
||||
|
||||
wxFlexGridSizer *syntax = PageSizer(_("Syntax Highlighting"));
|
||||
OptionAdd(syntax, _("Normal"), "Colour/Subtitle/Syntax/Normal");
|
||||
OptionAdd(syntax, _("Brackets"), "Colour/Subtitle/Syntax/Brackets");
|
||||
|
@ -200,6 +207,8 @@ Interface_Colours::Interface_Colours(wxTreebook *book): OptionPage(book, _("Colo
|
|||
OptionAdd(grid, _("Active Line Border"), "Colour/Subtitle Grid/Active Border");
|
||||
OptionAdd(grid, _("Lines"), "Colour/Subtitle Grid/Lines");
|
||||
|
||||
sizer = main_sizer;
|
||||
|
||||
SetSizerAndFit(sizer);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue