diff options
-rw-r--r-- | src/ui/util.c | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/src/ui/util.c b/src/ui/util.c index 0f0fa039..85d3562f 100644 --- a/src/ui/util.c +++ b/src/ui/util.c | |||
@@ -1013,7 +1013,9 @@ iWidget *makePreferences_Widget(void) { | |||
1013 | addChild_Widget(values, iClob(makeToggle_Widget("prefs.hoveroutline"))); | 1013 | addChild_Widget(values, iClob(makeToggle_Widget("prefs.hoveroutline"))); |
1014 | addChild_Widget(headings, iClob(makeHeading_Widget("Smooth scrolling:"))); | 1014 | addChild_Widget(headings, iClob(makeHeading_Widget("Smooth scrolling:"))); |
1015 | addChild_Widget(values, iClob(makeToggle_Widget("prefs.smoothscroll"))); | 1015 | addChild_Widget(values, iClob(makeToggle_Widget("prefs.smoothscroll"))); |
1016 | makeTwoColumnHeading_("WINDOW", headings, values); | 1016 | } |
1017 | /* Window. */ { | ||
1018 | appendTwoColumnPage_(tabs, "Window", '2', &headings, &values); | ||
1017 | #if defined (iPlatformApple) || defined (iPlatformMSys) | 1019 | #if defined (iPlatformApple) || defined (iPlatformMSys) |
1018 | addChild_Widget(headings, iClob(makeHeading_Widget("Use system theme:"))); | 1020 | addChild_Widget(headings, iClob(makeHeading_Widget("Use system theme:"))); |
1019 | addChild_Widget(values, iClob(makeToggle_Widget("prefs.ostheme"))); | 1021 | addChild_Widget(values, iClob(makeToggle_Widget("prefs.ostheme"))); |
@@ -1031,9 +1033,12 @@ iWidget *makePreferences_Widget(void) { | |||
1031 | addChild_Widget(values, iClob(makeToggle_Widget("prefs.retainwindow"))); | 1033 | addChild_Widget(values, iClob(makeToggle_Widget("prefs.retainwindow"))); |
1032 | addChild_Widget(headings, iClob(makeHeading_Widget("UI scale factor:"))); | 1034 | addChild_Widget(headings, iClob(makeHeading_Widget("UI scale factor:"))); |
1033 | setId_Widget(addChild_Widget(values, iClob(new_InputWidget(8))), "prefs.uiscale"); | 1035 | setId_Widget(addChild_Widget(values, iClob(new_InputWidget(8))), "prefs.uiscale"); |
1036 | makeTwoColumnHeading_("WIDE LAYOUT", headings, values); | ||
1037 | addChild_Widget(headings, iClob(makeHeading_Widget("Site icon:"))); | ||
1038 | addChild_Widget(values, iClob(makeToggle_Widget("prefs.sideicon"))); | ||
1034 | } | 1039 | } |
1035 | /* Colors. */ { | 1040 | /* Colors. */ { |
1036 | appendTwoColumnPage_(tabs, "Colors", '2', &headings, &values); | 1041 | appendTwoColumnPage_(tabs, "Colors", '3', &headings, &values); |
1037 | makeTwoColumnHeading_("PAGE CONTENTS", headings, values); | 1042 | makeTwoColumnHeading_("PAGE CONTENTS", headings, values); |
1038 | for (int i = 0; i < 2; ++i) { | 1043 | for (int i = 0; i < 2; ++i) { |
1039 | const iBool isDark = (i == 0); | 1044 | const iBool isDark = (i == 0); |
@@ -1064,7 +1069,7 @@ iWidget *makePreferences_Widget(void) { | |||
1064 | addChildFlags_Widget(values, iClob(sats), arrangeHorizontal_WidgetFlag | arrangeSize_WidgetFlag); | 1069 | addChildFlags_Widget(values, iClob(sats), arrangeHorizontal_WidgetFlag | arrangeSize_WidgetFlag); |
1065 | } | 1070 | } |
1066 | /* Layout. */ { | 1071 | /* Layout. */ { |
1067 | appendTwoColumnPage_(tabs, "Style", '3', &headings, &values); | 1072 | appendTwoColumnPage_(tabs, "Style", '4', &headings, &values); |
1068 | /* Fonts. */ { | 1073 | /* Fonts. */ { |
1069 | iWidget *fonts; | 1074 | iWidget *fonts; |
1070 | addChild_Widget(headings, iClob(makeHeading_Widget("Heading font:"))); | 1075 | addChild_Widget(headings, iClob(makeHeading_Widget("Heading font:"))); |
@@ -1105,12 +1110,9 @@ iWidget *makePreferences_Widget(void) { | |||
1105 | addChildFlags_Widget(values, iClob(quote), arrangeHorizontal_WidgetFlag | arrangeSize_WidgetFlag); | 1110 | addChildFlags_Widget(values, iClob(quote), arrangeHorizontal_WidgetFlag | arrangeSize_WidgetFlag); |
1106 | addChild_Widget(headings, iClob(makeHeading_Widget("Big 1st paragaph:"))); | 1111 | addChild_Widget(headings, iClob(makeHeading_Widget("Big 1st paragaph:"))); |
1107 | addChild_Widget(values, iClob(makeToggle_Widget("prefs.biglede"))); | 1112 | addChild_Widget(values, iClob(makeToggle_Widget("prefs.biglede"))); |
1108 | makeTwoColumnHeading_("WIDE LAYOUT", headings, values); | ||
1109 | addChild_Widget(headings, iClob(makeHeading_Widget("Site icon:"))); | ||
1110 | addChild_Widget(values, iClob(makeToggle_Widget("prefs.sideicon"))); | ||
1111 | } | 1113 | } |
1112 | /* Proxies. */ { | 1114 | /* Proxies. */ { |
1113 | appendTwoColumnPage_(tabs, "Proxies", '4', &headings, &values); | 1115 | appendTwoColumnPage_(tabs, "Proxies", '5', &headings, &values); |
1114 | addChild_Widget(headings, iClob(makeHeading_Widget("Gemini proxy:"))); | 1116 | addChild_Widget(headings, iClob(makeHeading_Widget("Gemini proxy:"))); |
1115 | setId_Widget(addChild_Widget(values, iClob(new_InputWidget(0))), "prefs.proxy.gemini"); | 1117 | setId_Widget(addChild_Widget(values, iClob(new_InputWidget(0))), "prefs.proxy.gemini"); |
1116 | addChild_Widget(headings, iClob(makeHeading_Widget("Gopher proxy:"))); | 1118 | addChild_Widget(headings, iClob(makeHeading_Widget("Gopher proxy:"))); |
@@ -1121,7 +1123,7 @@ iWidget *makePreferences_Widget(void) { | |||
1121 | /* Keybindings. */ { | 1123 | /* Keybindings. */ { |
1122 | iBindingsWidget *bind = new_BindingsWidget(); | 1124 | iBindingsWidget *bind = new_BindingsWidget(); |
1123 | setFlags_Widget(as_Widget(bind), borderTop_WidgetFlag, iTrue); | 1125 | setFlags_Widget(as_Widget(bind), borderTop_WidgetFlag, iTrue); |
1124 | appendFramelessTabPage_(tabs, iClob(bind), "Bindings", '5', KMOD_PRIMARY); | 1126 | appendFramelessTabPage_(tabs, iClob(bind), "Keys", '6', KMOD_PRIMARY); |
1125 | } | 1127 | } |
1126 | resizeToLargestPage_Widget(tabs); | 1128 | resizeToLargestPage_Widget(tabs); |
1127 | arrange_Widget(dlg); | 1129 | arrange_Widget(dlg); |