summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/app.c6
-rw-r--r--src/ui/util.c5
2 files changed, 11 insertions, 0 deletions
diff --git a/src/app.c b/src/app.c
index 374bab71..9a292ea5 100644
--- a/src/app.c
+++ b/src/app.c
@@ -2445,6 +2445,10 @@ iBool handleCommand_App(const char *cmd) {
2445 iChangeFlags(d->prefs.gemtextAnsiEscapes, allowFg_AnsiFlag, arg_Command(cmd)); 2445 iChangeFlags(d->prefs.gemtextAnsiEscapes, allowFg_AnsiFlag, arg_Command(cmd));
2446 return iTrue; 2446 return iTrue;
2447 } 2447 }
2448 else if (equal_Command(cmd, "prefs.gemtext.ansi.bg.changed")) {
2449 iChangeFlags(d->prefs.gemtextAnsiEscapes, allowBg_AnsiFlag, arg_Command(cmd));
2450 return iTrue;
2451 }
2448 else if (equal_Command(cmd, "prefs.gemtext.ansi.fontstyle.changed")) { 2452 else if (equal_Command(cmd, "prefs.gemtext.ansi.fontstyle.changed")) {
2449 iChangeFlags(d->prefs.gemtextAnsiEscapes, allowFontStyle_AnsiFlag, arg_Command(cmd)); 2453 iChangeFlags(d->prefs.gemtextAnsiEscapes, allowFontStyle_AnsiFlag, arg_Command(cmd));
2450 return iTrue; 2454 return iTrue;
@@ -2891,6 +2895,8 @@ iBool handleCommand_App(const char *cmd) {
2891 d->prefs.boldLinkLight); 2895 d->prefs.boldLinkLight);
2892 setToggle_Widget(findChild_Widget(dlg, "prefs.gemtext.ansi.fg"), 2896 setToggle_Widget(findChild_Widget(dlg, "prefs.gemtext.ansi.fg"),
2893 d->prefs.gemtextAnsiEscapes & allowFg_AnsiFlag); 2897 d->prefs.gemtextAnsiEscapes & allowFg_AnsiFlag);
2898 setToggle_Widget(findChild_Widget(dlg, "prefs.gemtext.ansi.bg"),
2899 d->prefs.gemtextAnsiEscapes & allowBg_AnsiFlag);
2894 setToggle_Widget(findChild_Widget(dlg, "prefs.gemtext.ansi.fontstyle"), 2900 setToggle_Widget(findChild_Widget(dlg, "prefs.gemtext.ansi.fontstyle"),
2895 d->prefs.gemtextAnsiEscapes & allowFontStyle_AnsiFlag); 2901 d->prefs.gemtextAnsiEscapes & allowFontStyle_AnsiFlag);
2896 setToggle_Widget(findChild_Widget(dlg, "prefs.font.smooth"), d->prefs.fontSmoothing); 2902 setToggle_Widget(findChild_Widget(dlg, "prefs.font.smooth"), d->prefs.fontSmoothing);
diff --git a/src/ui/util.c b/src/ui/util.c
index bc9c2825..92bf7000 100644
--- a/src/ui/util.c
+++ b/src/ui/util.c
@@ -2657,6 +2657,11 @@ iWidget *makePreferences_Widget(void) {
2657 setFlags_Widget(tog, fixedWidth_WidgetFlag, iFalse); 2657 setFlags_Widget(tog, fixedWidth_WidgetFlag, iFalse);
2658 updateSize_LabelWidget((iLabelWidget *) tog); 2658 updateSize_LabelWidget((iLabelWidget *) tog);
2659 setTextCStr_LabelWidget( 2659 setTextCStr_LabelWidget(
2660 addChild_Widget(ansi, tog = iClob(makeToggle_Widget("prefs.gemtext.ansi.bg"))),
2661 "${prefs.gemtext.ansi.bg}");
2662 setFlags_Widget(tog, fixedWidth_WidgetFlag, iFalse);
2663 updateSize_LabelWidget((iLabelWidget *) tog);
2664 setTextCStr_LabelWidget(
2660 addChild_Widget(ansi, tog = iClob(makeToggle_Widget("prefs.gemtext.ansi.fontstyle"))), 2665 addChild_Widget(ansi, tog = iClob(makeToggle_Widget("prefs.gemtext.ansi.fontstyle"))),
2661 "${prefs.gemtext.ansi.fontstyle}"); 2666 "${prefs.gemtext.ansi.fontstyle}");
2662 setFlags_Widget(tog, fixedWidth_WidgetFlag, iFalse); 2667 setFlags_Widget(tog, fixedWidth_WidgetFlag, iFalse);