diff options
author | Jaakko Keränen <jaakko.keranen@iki.fi> | 2020-10-18 21:39:41 +0300 |
---|---|---|
committer | Jaakko Keränen <jaakko.keranen@iki.fi> | 2020-10-18 21:39:41 +0300 |
commit | cb708fcad4083fea37d52562b0dddbdd85eba42e (patch) | |
tree | a3013e9c7f6b8ffe407217cf2b53a4ea7143cd3e | |
parent | a40b81c0f954d5aa98cc425ecbc2991af72d2898 (diff) |
Preferences: Colors moved to 2nd place
-rw-r--r-- | src/ui/util.c | 67 |
1 files changed, 34 insertions, 33 deletions
diff --git a/src/ui/util.c b/src/ui/util.c index 5762f8d1..35eea9c3 100644 --- a/src/ui/util.c +++ b/src/ui/util.c | |||
@@ -931,40 +931,9 @@ iWidget *makePreferences_Widget(void) { | |||
931 | addChild_Widget(headings, iClob(makeHeading_Widget("UI scale factor:"))); | 931 | addChild_Widget(headings, iClob(makeHeading_Widget("UI scale factor:"))); |
932 | setId_Widget(addChild_Widget(values, iClob(new_InputWidget(8))), "prefs.uiscale"); | 932 | setId_Widget(addChild_Widget(values, iClob(new_InputWidget(8))), "prefs.uiscale"); |
933 | } | 933 | } |
934 | /* Layout. */ { | ||
935 | appendTwoColumnPage_(tabs, "Style", '2', &headings, &values); | ||
936 | /* Fonts. */ { | ||
937 | iWidget *fonts; | ||
938 | addChild_Widget(headings, iClob(makeHeading_Widget("Heading font:"))); | ||
939 | fonts = new_Widget(); | ||
940 | addFontButtons_(fonts, "headingfont"); | ||
941 | addChildFlags_Widget(values, iClob(fonts), arrangeHorizontal_WidgetFlag | arrangeSize_WidgetFlag); | ||
942 | addChild_Widget(headings, iClob(makeHeading_Widget("Body font:"))); | ||
943 | fonts = new_Widget(); | ||
944 | addFontButtons_(fonts, "font"); | ||
945 | addChildFlags_Widget(values, iClob(fonts), arrangeHorizontal_WidgetFlag | arrangeSize_WidgetFlag); | ||
946 | } | ||
947 | addChild_Widget(headings, iClob(makePadding_Widget(2 * gap_UI))); | ||
948 | addChild_Widget(values, iClob(makePadding_Widget(2 * gap_UI))); | ||
949 | addChild_Widget(headings, iClob(makeHeading_Widget("Line width:"))); | ||
950 | iWidget *widths = new_Widget(); | ||
951 | /* Line widths. */ { | ||
952 | addRadioButton_(widths, "prefs.linewidth.30", "\u20132", "linewidth.set arg:30"); | ||
953 | addRadioButton_(widths, "prefs.linewidth.35", "\u20131", "linewidth.set arg:35"); | ||
954 | addRadioButton_(widths, "prefs.linewidth.40", "Normal", "linewidth.set arg:40"); | ||
955 | addRadioButton_(widths, "prefs.linewidth.45", "+1", "linewidth.set arg:45"); | ||
956 | addRadioButton_(widths, "prefs.linewidth.50", "+2", "linewidth.set arg:50"); | ||
957 | addRadioButton_(widths, "prefs.linewidth.1000", "Window", "linewidth.set arg:1000"); | ||
958 | } | ||
959 | addChildFlags_Widget(values, iClob(widths), arrangeHorizontal_WidgetFlag | arrangeSize_WidgetFlag); | ||
960 | addChild_Widget(headings, iClob(makeHeading_Widget("Big 1st paragaph:"))); | ||
961 | addChild_Widget(values, iClob(makeToggle_Widget("prefs.biglede"))); | ||
962 | makeTwoColumnHeading_("WIDE LAYOUT", headings, values); | ||
963 | addChild_Widget(headings, iClob(makeHeading_Widget("Site icon:"))); | ||
964 | addChild_Widget(values, iClob(makeToggle_Widget("prefs.sideicon"))); | ||
965 | } | ||
966 | /* Colors. */ { | 934 | /* Colors. */ { |
967 | appendTwoColumnPage_(tabs, "Colors", '3', &headings, &values); | 935 | appendTwoColumnPage_(tabs, "Colors", '2', &headings, &values); |
936 | makeTwoColumnHeading_("PAGE CONTENTS", headings, values); | ||
968 | for (int i = 0; i < 2; ++i) { | 937 | for (int i = 0; i < 2; ++i) { |
969 | const iBool isDark = (i == 0); | 938 | const iBool isDark = (i == 0); |
970 | const char *mode = isDark ? "dark" : "light"; | 939 | const char *mode = isDark ? "dark" : "light"; |
@@ -996,6 +965,38 @@ iWidget *makePreferences_Widget(void) { | |||
996 | } | 965 | } |
997 | addChildFlags_Widget(values, iClob(sats), arrangeHorizontal_WidgetFlag | arrangeSize_WidgetFlag); | 966 | addChildFlags_Widget(values, iClob(sats), arrangeHorizontal_WidgetFlag | arrangeSize_WidgetFlag); |
998 | } | 967 | } |
968 | /* Layout. */ { | ||
969 | appendTwoColumnPage_(tabs, "Style", '3', &headings, &values); | ||
970 | /* Fonts. */ { | ||
971 | iWidget *fonts; | ||
972 | addChild_Widget(headings, iClob(makeHeading_Widget("Heading font:"))); | ||
973 | fonts = new_Widget(); | ||
974 | addFontButtons_(fonts, "headingfont"); | ||
975 | addChildFlags_Widget(values, iClob(fonts), arrangeHorizontal_WidgetFlag | arrangeSize_WidgetFlag); | ||
976 | addChild_Widget(headings, iClob(makeHeading_Widget("Body font:"))); | ||
977 | fonts = new_Widget(); | ||
978 | addFontButtons_(fonts, "font"); | ||
979 | addChildFlags_Widget(values, iClob(fonts), arrangeHorizontal_WidgetFlag | arrangeSize_WidgetFlag); | ||
980 | } | ||
981 | addChild_Widget(headings, iClob(makePadding_Widget(2 * gap_UI))); | ||
982 | addChild_Widget(values, iClob(makePadding_Widget(2 * gap_UI))); | ||
983 | addChild_Widget(headings, iClob(makeHeading_Widget("Line width:"))); | ||
984 | iWidget *widths = new_Widget(); | ||
985 | /* Line widths. */ { | ||
986 | addRadioButton_(widths, "prefs.linewidth.30", "\u20132", "linewidth.set arg:30"); | ||
987 | addRadioButton_(widths, "prefs.linewidth.35", "\u20131", "linewidth.set arg:35"); | ||
988 | addRadioButton_(widths, "prefs.linewidth.40", "Normal", "linewidth.set arg:40"); | ||
989 | addRadioButton_(widths, "prefs.linewidth.45", "+1", "linewidth.set arg:45"); | ||
990 | addRadioButton_(widths, "prefs.linewidth.50", "+2", "linewidth.set arg:50"); | ||
991 | addRadioButton_(widths, "prefs.linewidth.1000", "Window", "linewidth.set arg:1000"); | ||
992 | } | ||
993 | addChildFlags_Widget(values, iClob(widths), arrangeHorizontal_WidgetFlag | arrangeSize_WidgetFlag); | ||
994 | addChild_Widget(headings, iClob(makeHeading_Widget("Big 1st paragaph:"))); | ||
995 | addChild_Widget(values, iClob(makeToggle_Widget("prefs.biglede"))); | ||
996 | makeTwoColumnHeading_("WIDE LAYOUT", headings, values); | ||
997 | addChild_Widget(headings, iClob(makeHeading_Widget("Site icon:"))); | ||
998 | addChild_Widget(values, iClob(makeToggle_Widget("prefs.sideicon"))); | ||
999 | } | ||
999 | /* Proxies. */ { | 1000 | /* Proxies. */ { |
1000 | appendTwoColumnPage_(tabs, "Proxies", '4', &headings, &values); | 1001 | appendTwoColumnPage_(tabs, "Proxies", '4', &headings, &values); |
1001 | addChild_Widget(headings, iClob(makeHeading_Widget("Gopher proxy:"))); | 1002 | addChild_Widget(headings, iClob(makeHeading_Widget("Gopher proxy:"))); |