summaryrefslogtreecommitdiff
path: root/src/ui/util.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui/util.c')
-rw-r--r--src/ui/util.c37
1 files changed, 21 insertions, 16 deletions
diff --git a/src/ui/util.c b/src/ui/util.c
index 1ebdd3b3..3b146155 100644
--- a/src/ui/util.c
+++ b/src/ui/util.c
@@ -2549,22 +2549,6 @@ iWidget *makePreferences_Widget(void) {
2549 addChild_Widget(headings, iClob(makeHeading_Widget("${prefs.font.monodoc}"))); 2549 addChild_Widget(headings, iClob(makeHeading_Widget("${prefs.font.monodoc}")));
2550 addFontButtons_(values, "monodoc"); 2550 addFontButtons_(values, "monodoc");
2551 addDialogPadding_(headings, values); 2551 addDialogPadding_(headings, values);
2552 addChild_Widget(headings, iClob(makeHeading_Widget("${prefs.boldlink}")));
2553 iWidget *boldLink = new_Widget(); {
2554 /* TODO: Add a utility function for this type of toggles? (also for above) */
2555 iWidget *tog;
2556 setTextCStr_LabelWidget(
2557 addChild_Widget(boldLink, tog = iClob(makeToggle_Widget("prefs.boldlink.dark"))),
2558 "${prefs.boldlink.dark}");
2559 setFlags_Widget(tog, fixedWidth_WidgetFlag, iFalse);
2560 updateSize_LabelWidget((iLabelWidget *) tog);
2561 setTextCStr_LabelWidget(
2562 addChild_Widget(boldLink, tog = iClob(makeToggle_Widget("prefs.boldlink.light"))),
2563 "${prefs.boldlink.light}");
2564 setFlags_Widget(tog, fixedWidth_WidgetFlag, iFalse);
2565 updateSize_LabelWidget((iLabelWidget *) tog);
2566 }
2567 addChildFlags_Widget(values, iClob(boldLink), arrangeHorizontal_WidgetFlag | arrangeSize_WidgetFlag);
2568 addDialogToggle_(headings, values, "${prefs.gemtext.ansi}", "prefs.gemtext.ansi"); 2552 addDialogToggle_(headings, values, "${prefs.gemtext.ansi}", "prefs.gemtext.ansi");
2569 addDialogToggle_(headings, values, "${prefs.font.smooth}", "prefs.font.smooth"); 2553 addDialogToggle_(headings, values, "${prefs.font.smooth}", "prefs.font.smooth");
2570 addDialogPadding_(headings, values); 2554 addDialogPadding_(headings, values);
@@ -2604,6 +2588,27 @@ iWidget *makePreferences_Widget(void) {
2604 } 2588 }
2605 addChildFlags_Widget(values, iClob(quote), arrangeHorizontal_WidgetFlag | arrangeSize_WidgetFlag); 2589 addChildFlags_Widget(values, iClob(quote), arrangeHorizontal_WidgetFlag | arrangeSize_WidgetFlag);
2606 addDialogToggle_(headings, values, "${prefs.biglede}", "prefs.biglede"); 2590 addDialogToggle_(headings, values, "${prefs.biglede}", "prefs.biglede");
2591 addChild_Widget(headings, iClob(makeHeading_Widget("${prefs.boldlink}")));
2592 iWidget *boldLink = new_Widget(); {
2593 /* TODO: Add a utility function for this type of toggles? (also for above) */
2594 iWidget *tog;
2595 setTextCStr_LabelWidget(
2596 addChild_Widget(boldLink, tog = iClob(makeToggle_Widget("prefs.boldlink.visited"))),
2597 "${prefs.boldlink.visited}");
2598 setFlags_Widget(tog, fixedWidth_WidgetFlag, iFalse);
2599 updateSize_LabelWidget((iLabelWidget *) tog);
2600 setTextCStr_LabelWidget(
2601 addChild_Widget(boldLink, tog = iClob(makeToggle_Widget("prefs.boldlink.dark"))),
2602 "${prefs.boldlink.dark}");
2603 setFlags_Widget(tog, fixedWidth_WidgetFlag, iFalse);
2604 updateSize_LabelWidget((iLabelWidget *) tog);
2605 setTextCStr_LabelWidget(
2606 addChild_Widget(boldLink, tog = iClob(makeToggle_Widget("prefs.boldlink.light"))),
2607 "${prefs.boldlink.light}");
2608 setFlags_Widget(tog, fixedWidth_WidgetFlag, iFalse);
2609 updateSize_LabelWidget((iLabelWidget *) tog);
2610 }
2611 addChildFlags_Widget(values, iClob(boldLink), arrangeHorizontal_WidgetFlag | arrangeSize_WidgetFlag);
2607 addDialogToggle_(headings, values, "${prefs.plaintext.wrap}", "prefs.plaintext.wrap"); 2612 addDialogToggle_(headings, values, "${prefs.plaintext.wrap}", "prefs.plaintext.wrap");
2608 addDialogToggle_(headings, values, "${prefs.collapsepreonload}", "prefs.collapsepreonload"); 2613 addDialogToggle_(headings, values, "${prefs.collapsepreonload}", "prefs.collapsepreonload");
2609 addDialogPadding_(headings, values); 2614 addDialogPadding_(headings, values);