diff options
Diffstat (limited to 'src/app.c')
-rw-r--r-- | src/app.c | 21 |
1 files changed, 21 insertions, 0 deletions
@@ -226,6 +226,8 @@ static iString *serializePrefs_App_(const iApp *d) { | |||
226 | /* TODO: Set up an array of booleans in Prefs and do these in a loop. */ | 226 | /* TODO: Set up an array of booleans in Prefs and do these in a loop. */ |
227 | appendFormat_String(str, "prefs.mono.gemini.changed arg:%d\n", d->prefs.monospaceGemini); | 227 | appendFormat_String(str, "prefs.mono.gemini.changed arg:%d\n", d->prefs.monospaceGemini); |
228 | appendFormat_String(str, "prefs.mono.gopher.changed arg:%d\n", d->prefs.monospaceGopher); | 228 | appendFormat_String(str, "prefs.mono.gopher.changed arg:%d\n", d->prefs.monospaceGopher); |
229 | appendFormat_String(str, "prefs.boldlink.dark.changed arg:%d\n", d->prefs.boldLinkDark); | ||
230 | appendFormat_String(str, "prefs.boldlink.light.changed arg:%d\n", d->prefs.boldLinkLight); | ||
229 | appendFormat_String(str, "prefs.biglede.changed arg:%d\n", d->prefs.bigFirstParagraph); | 231 | appendFormat_String(str, "prefs.biglede.changed arg:%d\n", d->prefs.bigFirstParagraph); |
230 | appendFormat_String(str, "prefs.plaintext.wrap.changed arg:%d\n", d->prefs.plainTextWrap); | 232 | appendFormat_String(str, "prefs.plaintext.wrap.changed arg:%d\n", d->prefs.plainTextWrap); |
231 | appendFormat_String(str, "prefs.sideicon.changed arg:%d\n", d->prefs.sideIcon); | 233 | appendFormat_String(str, "prefs.sideicon.changed arg:%d\n", d->prefs.sideIcon); |
@@ -1697,6 +1699,19 @@ iBool handleCommand_App(const char *cmd) { | |||
1697 | postCommand_App("window.unfreeze"); | 1699 | postCommand_App("window.unfreeze"); |
1698 | return iTrue; | 1700 | return iTrue; |
1699 | } | 1701 | } |
1702 | else if (equal_Command(cmd, "prefs.boldlink.dark.changed") || | ||
1703 | equal_Command(cmd, "prefs.boldlink.light.changed")) { | ||
1704 | const iBool isSet = (arg_Command(cmd) != 0); | ||
1705 | if (startsWith_CStr(cmd, "prefs.boldlink.dark")) { | ||
1706 | d->prefs.boldLinkDark = isSet; | ||
1707 | } | ||
1708 | else { | ||
1709 | d->prefs.boldLinkLight = isSet; | ||
1710 | } | ||
1711 | resetFonts_Text(); /* clear the glyph cache */ | ||
1712 | postCommand_App("font.changed"); | ||
1713 | return iTrue; | ||
1714 | } | ||
1700 | else if (equal_Command(cmd, "prefs.biglede.changed")) { | 1715 | else if (equal_Command(cmd, "prefs.biglede.changed")) { |
1701 | d->prefs.bigFirstParagraph = arg_Command(cmd) != 0; | 1716 | d->prefs.bigFirstParagraph = arg_Command(cmd) != 0; |
1702 | postCommand_App("document.layout.changed"); | 1717 | postCommand_App("document.layout.changed"); |
@@ -1938,6 +1953,12 @@ iBool handleCommand_App(const char *cmd) { | |||
1938 | setFlags_Widget(findChild_Widget(dlg, "prefs.mono.gopher"), | 1953 | setFlags_Widget(findChild_Widget(dlg, "prefs.mono.gopher"), |
1939 | selected_WidgetFlag, | 1954 | selected_WidgetFlag, |
1940 | d->prefs.monospaceGopher); | 1955 | d->prefs.monospaceGopher); |
1956 | setFlags_Widget(findChild_Widget(dlg, "prefs.boldlink.dark"), | ||
1957 | selected_WidgetFlag, | ||
1958 | d->prefs.boldLinkDark); | ||
1959 | setFlags_Widget(findChild_Widget(dlg, "prefs.boldlink.light"), | ||
1960 | selected_WidgetFlag, | ||
1961 | d->prefs.boldLinkLight); | ||
1941 | setFlags_Widget( | 1962 | setFlags_Widget( |
1942 | findChild_Widget(dlg, format_CStr("prefs.linewidth.%d", d->prefs.lineWidth)), | 1963 | findChild_Widget(dlg, format_CStr("prefs.linewidth.%d", d->prefs.lineWidth)), |
1943 | selected_WidgetFlag, | 1964 | selected_WidgetFlag, |