diff options
author | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-11-23 12:39:57 +0200 |
---|---|---|
committer | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-11-23 12:39:57 +0200 |
commit | 9f0a3238a9d99eaad3b314266152af5562f74772 (patch) | |
tree | dbeb81dde79925b35e4e8748a8e7303f574a5d25 | |
parent | 71b93a446de83d4f8582a60f809f0108afc95add (diff) |
Preferences: Option for ANSI background color (SGR)
-rw-r--r-- | po/en.po | 5 | ||||
-rw-r--r-- | res/lang/cs.bin | bin | 30757 -> 30788 bytes | |||
-rw-r--r-- | res/lang/de.bin | bin | 29758 -> 29789 bytes | |||
-rw-r--r-- | res/lang/en.bin | bin | 25872 -> 25903 bytes | |||
-rw-r--r-- | res/lang/eo.bin | bin | 24821 -> 24852 bytes | |||
-rw-r--r-- | res/lang/es.bin | bin | 29589 -> 29620 bytes | |||
-rw-r--r-- | res/lang/es_MX.bin | bin | 26928 -> 26959 bytes | |||
-rw-r--r-- | res/lang/fi.bin | bin | 29424 -> 29455 bytes | |||
-rw-r--r-- | res/lang/fr.bin | bin | 29809 -> 29840 bytes | |||
-rw-r--r-- | res/lang/gl.bin | bin | 28778 -> 28809 bytes | |||
-rw-r--r-- | res/lang/hu.bin | bin | 30601 -> 30632 bytes | |||
-rw-r--r-- | res/lang/ia.bin | bin | 27928 -> 27959 bytes | |||
-rw-r--r-- | res/lang/ie.bin | bin | 28516 -> 28547 bytes | |||
-rw-r--r-- | res/lang/isv.bin | bin | 24592 -> 24623 bytes | |||
-rw-r--r-- | res/lang/pl.bin | bin | 29204 -> 29235 bytes | |||
-rw-r--r-- | res/lang/ru.bin | bin | 43902 -> 43933 bytes | |||
-rw-r--r-- | res/lang/sk.bin | bin | 24925 -> 24956 bytes | |||
-rw-r--r-- | res/lang/sr.bin | bin | 43352 -> 43383 bytes | |||
-rw-r--r-- | res/lang/tok.bin | bin | 26638 -> 26669 bytes | |||
-rw-r--r-- | res/lang/tr.bin | bin | 28832 -> 28863 bytes | |||
-rw-r--r-- | res/lang/uk.bin | bin | 43233 -> 43264 bytes | |||
-rw-r--r-- | res/lang/zh_Hans.bin | bin | 24826 -> 24857 bytes | |||
-rw-r--r-- | res/lang/zh_Hant.bin | bin | 25021 -> 25052 bytes | |||
-rw-r--r-- | src/app.c | 6 | ||||
-rw-r--r-- | src/ui/util.c | 5 |
25 files changed, 16 insertions, 0 deletions
@@ -1494,9 +1494,14 @@ msgstr "On Light" | |||
1494 | msgid "prefs.gemtext.ansi" | 1494 | msgid "prefs.gemtext.ansi" |
1495 | msgstr "ANSI escapes:" | 1495 | msgstr "ANSI escapes:" |
1496 | 1496 | ||
1497 | # Color of the text foreground, i.e., the characters. | ||
1497 | msgid "prefs.gemtext.ansi.fg" | 1498 | msgid "prefs.gemtext.ansi.fg" |
1498 | msgstr "FG Color" | 1499 | msgstr "FG Color" |
1499 | 1500 | ||
1501 | # Color of text background. | ||
1502 | msgid "prefs.gemtext.ansi.bg" | ||
1503 | msgstr "BG Color" | ||
1504 | |||
1500 | msgid "prefs.gemtext.ansi.fontstyle" | 1505 | msgid "prefs.gemtext.ansi.fontstyle" |
1501 | msgstr "Font Style" | 1506 | msgstr "Font Style" |
1502 | 1507 | ||
diff --git a/res/lang/cs.bin b/res/lang/cs.bin index 13a06323..074fd199 100644 --- a/res/lang/cs.bin +++ b/res/lang/cs.bin | |||
Binary files differ | |||
diff --git a/res/lang/de.bin b/res/lang/de.bin index 55b390ce..984dc0d3 100644 --- a/res/lang/de.bin +++ b/res/lang/de.bin | |||
Binary files differ | |||
diff --git a/res/lang/en.bin b/res/lang/en.bin index 1c7dfcba..05d4aed7 100644 --- a/res/lang/en.bin +++ b/res/lang/en.bin | |||
Binary files differ | |||
diff --git a/res/lang/eo.bin b/res/lang/eo.bin index 52235451..1ed829cf 100644 --- a/res/lang/eo.bin +++ b/res/lang/eo.bin | |||
Binary files differ | |||
diff --git a/res/lang/es.bin b/res/lang/es.bin index b793d5b9..4da756f9 100644 --- a/res/lang/es.bin +++ b/res/lang/es.bin | |||
Binary files differ | |||
diff --git a/res/lang/es_MX.bin b/res/lang/es_MX.bin index 06d38e55..67d8bf97 100644 --- a/res/lang/es_MX.bin +++ b/res/lang/es_MX.bin | |||
Binary files differ | |||
diff --git a/res/lang/fi.bin b/res/lang/fi.bin index 27ad7ba6..ec457bab 100644 --- a/res/lang/fi.bin +++ b/res/lang/fi.bin | |||
Binary files differ | |||
diff --git a/res/lang/fr.bin b/res/lang/fr.bin index 141df204..3cda1aeb 100644 --- a/res/lang/fr.bin +++ b/res/lang/fr.bin | |||
Binary files differ | |||
diff --git a/res/lang/gl.bin b/res/lang/gl.bin index b30684ab..97ee8cd8 100644 --- a/res/lang/gl.bin +++ b/res/lang/gl.bin | |||
Binary files differ | |||
diff --git a/res/lang/hu.bin b/res/lang/hu.bin index 9d100d45..54638c8e 100644 --- a/res/lang/hu.bin +++ b/res/lang/hu.bin | |||
Binary files differ | |||
diff --git a/res/lang/ia.bin b/res/lang/ia.bin index ef621e77..b2951276 100644 --- a/res/lang/ia.bin +++ b/res/lang/ia.bin | |||
Binary files differ | |||
diff --git a/res/lang/ie.bin b/res/lang/ie.bin index 64e6b7bf..e0c3c0e0 100644 --- a/res/lang/ie.bin +++ b/res/lang/ie.bin | |||
Binary files differ | |||
diff --git a/res/lang/isv.bin b/res/lang/isv.bin index b9e88984..c9d84e0a 100644 --- a/res/lang/isv.bin +++ b/res/lang/isv.bin | |||
Binary files differ | |||
diff --git a/res/lang/pl.bin b/res/lang/pl.bin index c58632ba..9632ed8a 100644 --- a/res/lang/pl.bin +++ b/res/lang/pl.bin | |||
Binary files differ | |||
diff --git a/res/lang/ru.bin b/res/lang/ru.bin index b0128aae..0dcf418a 100644 --- a/res/lang/ru.bin +++ b/res/lang/ru.bin | |||
Binary files differ | |||
diff --git a/res/lang/sk.bin b/res/lang/sk.bin index 714e0d4f..9d0d5988 100644 --- a/res/lang/sk.bin +++ b/res/lang/sk.bin | |||
Binary files differ | |||
diff --git a/res/lang/sr.bin b/res/lang/sr.bin index 7729cf9d..e10669ce 100644 --- a/res/lang/sr.bin +++ b/res/lang/sr.bin | |||
Binary files differ | |||
diff --git a/res/lang/tok.bin b/res/lang/tok.bin index ff7538b0..b3033b5a 100644 --- a/res/lang/tok.bin +++ b/res/lang/tok.bin | |||
Binary files differ | |||
diff --git a/res/lang/tr.bin b/res/lang/tr.bin index 88412aef..1d9d0159 100644 --- a/res/lang/tr.bin +++ b/res/lang/tr.bin | |||
Binary files differ | |||
diff --git a/res/lang/uk.bin b/res/lang/uk.bin index a17c7aaa..4e83b83b 100644 --- a/res/lang/uk.bin +++ b/res/lang/uk.bin | |||
Binary files differ | |||
diff --git a/res/lang/zh_Hans.bin b/res/lang/zh_Hans.bin index 66dbe965..118050e3 100644 --- a/res/lang/zh_Hans.bin +++ b/res/lang/zh_Hans.bin | |||
Binary files differ | |||
diff --git a/res/lang/zh_Hant.bin b/res/lang/zh_Hant.bin index 69d0afe2..3bfb29ba 100644 --- a/res/lang/zh_Hant.bin +++ b/res/lang/zh_Hant.bin | |||
Binary files differ | |||
@@ -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); |