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:
Thomas Goyne 2010-08-26 18:38:14 +00:00
parent 5d5f24cbd8
commit 5721003219

View file

@ -158,6 +158,10 @@ Interface::Interface(wxTreebook *book): OptionPage(book, _("Interface")) {
/// Interface Colours preferences subpage /// Interface Colours preferences subpage
Interface_Colours::Interface_Colours(wxTreebook *book): OptionPage(book, _("Colours"), PAGE_SCROLL|PAGE_SUB) { 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")); wxFlexGridSizer *general = PageSizer(_("General"));
OptionAdd(general, _("Modified Background"), "Colour/Background/Modified"); 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 text"), "Colour/Audio Display/Syllable Text");
OptionAdd(audio, _("Syllable boundaries"), "Colour/Audio Display/Syllable Boundaries"); OptionAdd(audio, _("Syllable boundaries"), "Colour/Audio Display/Syllable Boundaries");
sizer = new wxBoxSizer(wxVERTICAL);
main_sizer->Add(sizer);
wxFlexGridSizer *syntax = PageSizer(_("Syntax Highlighting")); wxFlexGridSizer *syntax = PageSizer(_("Syntax Highlighting"));
OptionAdd(syntax, _("Normal"), "Colour/Subtitle/Syntax/Normal"); OptionAdd(syntax, _("Normal"), "Colour/Subtitle/Syntax/Normal");
OptionAdd(syntax, _("Brackets"), "Colour/Subtitle/Syntax/Brackets"); 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, _("Active Line Border"), "Colour/Subtitle Grid/Active Border");
OptionAdd(grid, _("Lines"), "Colour/Subtitle Grid/Lines"); OptionAdd(grid, _("Lines"), "Colour/Subtitle Grid/Lines");
sizer = main_sizer;
SetSizerAndFit(sizer); SetSizerAndFit(sizer);
} }