summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJaakko Keränen <jaakko.keranen@iki.fi>2021-11-23 12:39:57 +0200
committerJaakko Keränen <jaakko.keranen@iki.fi>2021-11-23 12:39:57 +0200
commit9f0a3238a9d99eaad3b314266152af5562f74772 (patch)
treedbeb81dde79925b35e4e8748a8e7303f574a5d25
parent71b93a446de83d4f8582a60f809f0108afc95add (diff)
Preferences: Option for ANSI background color (SGR)
-rw-r--r--po/en.po5
-rw-r--r--res/lang/cs.binbin30757 -> 30788 bytes
-rw-r--r--res/lang/de.binbin29758 -> 29789 bytes
-rw-r--r--res/lang/en.binbin25872 -> 25903 bytes
-rw-r--r--res/lang/eo.binbin24821 -> 24852 bytes
-rw-r--r--res/lang/es.binbin29589 -> 29620 bytes
-rw-r--r--res/lang/es_MX.binbin26928 -> 26959 bytes
-rw-r--r--res/lang/fi.binbin29424 -> 29455 bytes
-rw-r--r--res/lang/fr.binbin29809 -> 29840 bytes
-rw-r--r--res/lang/gl.binbin28778 -> 28809 bytes
-rw-r--r--res/lang/hu.binbin30601 -> 30632 bytes
-rw-r--r--res/lang/ia.binbin27928 -> 27959 bytes
-rw-r--r--res/lang/ie.binbin28516 -> 28547 bytes
-rw-r--r--res/lang/isv.binbin24592 -> 24623 bytes
-rw-r--r--res/lang/pl.binbin29204 -> 29235 bytes
-rw-r--r--res/lang/ru.binbin43902 -> 43933 bytes
-rw-r--r--res/lang/sk.binbin24925 -> 24956 bytes
-rw-r--r--res/lang/sr.binbin43352 -> 43383 bytes
-rw-r--r--res/lang/tok.binbin26638 -> 26669 bytes
-rw-r--r--res/lang/tr.binbin28832 -> 28863 bytes
-rw-r--r--res/lang/uk.binbin43233 -> 43264 bytes
-rw-r--r--res/lang/zh_Hans.binbin24826 -> 24857 bytes
-rw-r--r--res/lang/zh_Hant.binbin25021 -> 25052 bytes
-rw-r--r--src/app.c6
-rw-r--r--src/ui/util.c5
25 files changed, 16 insertions, 0 deletions
diff --git a/po/en.po b/po/en.po
index 5066c847..da8eb0f6 100644
--- a/po/en.po
+++ b/po/en.po
@@ -1494,9 +1494,14 @@ msgstr "On Light"
1494msgid "prefs.gemtext.ansi" 1494msgid "prefs.gemtext.ansi"
1495msgstr "ANSI escapes:" 1495msgstr "ANSI escapes:"
1496 1496
1497# Color of the text foreground, i.e., the characters.
1497msgid "prefs.gemtext.ansi.fg" 1498msgid "prefs.gemtext.ansi.fg"
1498msgstr "FG Color" 1499msgstr "FG Color"
1499 1500
1501# Color of text background.
1502msgid "prefs.gemtext.ansi.bg"
1503msgstr "BG Color"
1504
1500msgid "prefs.gemtext.ansi.fontstyle" 1505msgid "prefs.gemtext.ansi.fontstyle"
1501msgstr "Font Style" 1506msgstr "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
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);