[LyX/master] Change preedit color settings
Koji Yokota <[email protected]> Fri, 12 Jun 2026 13:16:55 +0000
| Newsgroups | gmane.editors.lyx.cvs |
|---|---|
| Message-ID | <[email protected]> |
commit 9e0af756365381bac143d3c60bd6d6326738ad0d Author: Koji Yokota <[email protected]> Date: Fri Jun 12 22:12:59 2026 +0900 Change preedit color settings --- lib/themes/Default.theme | 8 ++++---- lib/themes/Monochrome.theme | 4 ++-- lib/themes/Solarized.theme | 4 ++-- src/Color.cpp | 14 +++++++------- 4 files changed, 15 insertions(+), 15 deletions(-) diff --git a/lib/themes/Default.theme b/lib/themes/Default.theme index 1db4c56f18..9d6c4fb2d0 100644 --- a/lib/themes/Default.theme +++ b/lib/themes/Default.theme @@ -92,8 +92,8 @@ \set_color "marginlabel" "#ffaa55ff" "#ff800080" \set_color "foreground" "#ff000000" "#fffaf0e6" \set_color "phantomtext" "#ff7f7f7f" "#ff7f7f7f" -\set_color "preeditfocus" "#ffadd8e6" "#ffadd8e6" -\set_color "preeditfocustext" "#ff000000" "#ff000000" -\set_color "preeditbg" "#00faf0e6" "#00000000" -\set_color "preedittext" "#ff000000" "#fffaf0e6" +\set_color "preeditfocus" "#00ffffff" "#00ffffff" +\set_color "preeditfocustext" "#00ffffff" "#00ffffff" +\set_color "preeditbg" "#00ffffff" "#00ffffff" +\set_color "preedittext" "#00ffffff" "#00ffffff" \set_color "nomlabel" "#ffff6d2f" "#ffff6d2f" diff --git a/lib/themes/Monochrome.theme b/lib/themes/Monochrome.theme index f189eddddf..20bb7773c1 100644 --- a/lib/themes/Monochrome.theme +++ b/lib/themes/Monochrome.theme @@ -93,7 +93,7 @@ \set_color "foreground" "#ff191919" "#ffe0e0e0" \set_color "phantomtext" "#ff7f7f7f" "#ff7f7f7f" \set_color "preeditfocus" "#ffcccccc" "#ff999999" -\set_color "preeditfocustext" "#ff272727" "#ff000000" +\set_color "preeditfocustext" "#00ffffff" "#00ffffff" \set_color "preeditbg" "#00fbfbfb" "#00333334" -\set_color "preedittext" "#ff191919" "#ffe0e0e0" +\set_color "preedittext" "#00ffffff" "#00ffffff" \set_color "nomlabel" "#ffcd5725" "#ffcd5726" diff --git a/lib/themes/Solarized.theme b/lib/themes/Solarized.theme index 39b2073108..da8fd7082a 100644 --- a/lib/themes/Solarized.theme +++ b/lib/themes/Solarized.theme @@ -93,7 +93,7 @@ \set_color "foreground" "#ff586e75" "#ff93a1a1" \set_color "phantomtext" "#ff657b83" "#ff657b83" \set_color "preeditfocus" "#ffeee8d5" "#ffeee8d5" -\set_color "preeditfocustext" "#ff586e75" "#ff586e75" +\set_color "preeditfocustext" "#00ffffff" "#00ffffff" \set_color "preeditbg" "#00fdf6e3" "#00002b36" -\set_color "preedittext" "#ff657b83" "#ff839496" +\set_color "preedittext" "#00ffffff" "#00ffffff" \set_color "nomlabel" "#ffcb4b16" "#ffcb4b16" diff --git a/src/Color.cpp b/src/Color.cpp index 3d4716f463..f8a2648915 100644 --- a/src/Color.cpp +++ b/src/Color.cpp @@ -262,6 +262,7 @@ ColorSet::ColorSet() char const * grey40 = "#ff666666"; char const * grey60 = "#ff999999"; char const * grey80 = "#ffcccccc"; + char const * transparent = "#00ffffff"; // latex colors (xcolor package) char const * black = "#ff000000"; char const * white = "#ffffffff"; @@ -289,7 +290,6 @@ ColorSet::ColorSet() char const * IndianRed = "#ffcd5c5c"; char const * Linen = "#fffaf0e6"; char const * RoyalBlue = "#ff4169e1"; - char const * Transparent = "#00000000"; //char const * grey90 = "#ffe5e5e5"; // ColorCode, gui, latex, hex32name, darkhex32name, lyx @@ -324,10 +324,10 @@ ColorSet::ColorSet() { Color_selection, N_("selection"), "selection", "#ffadd8e6", "#ffadd8e6", "selection" }, { Color_selectionmath, N_("selected math"), "selectionmath", "#ff00008b", "#ff00008b", "selectionmath" }, { Color_selectiontext, N_("selected text"), "selectiontext", black, black, "selectiontext" }, - { Color_preeditfocus, N_("preedit focus background"), "preeditfocus", "#ffadd8e6", "#ffadd8e6", "preeditfocus" }, - { Color_preeditfocustext, N_("preedit focus text"), "preeditfocustext", black, black, "preeditfocustext" }, - { Color_preeditbg, N_("preedit background"), "preeditbg", Transparent, Transparent, "preeditbg" }, - { Color_preedittext, N_("preedit text"), "preedittext", black, Linen, "preedittext" }, + { Color_preeditfocus, N_("preedit focus background"), "preeditfocus", transparent, transparent, "preeditfocus" }, + { Color_preeditfocustext, N_("preedit focus text"), "preeditfocustext", transparent, transparent, "preeditfocustext" }, + { Color_preeditbg, N_("preedit background"), "preeditbg", transparent, transparent, "preeditbg" }, + { Color_preedittext, N_("preedit text"), "preedittext", transparent, transparent, "preedittext" }, { Color_latex, N_("LaTeX text"), "latex", DarkRed, "#ffd66613", "latex" }, { Color_preview, N_("previewed snippet"), "preview", black, Linen, "preview" }, { Color_inlinecompletion, N_("inline completion"), @@ -361,9 +361,9 @@ ColorSet::ColorSet() { Color_commandbg, N_("command inset background"), "commandbg", "#fff0ffff", "#fff0ffff", "commandbg" }, { Color_commandframe, N_("command inset frame"), "commandframe", black, Linen, "commandframe" }, { Color_special, N_("special character"), "special", RoyalBlue, RoyalBlue, "special" }, - { Color_graphicsbg, N_("graphics background"), "graphicsbg", Transparent, Transparent, "graphicsbg" }, + { Color_graphicsbg, N_("graphics background"), "graphicsbg", transparent, transparent, "graphicsbg" }, { Color_math, N_("math text"), "math", "#ff00008b", "#ff85f0fe", "math" }, - { Color_mathbg, N_("math background"), "mathbg", Transparent, Transparent, "mathbg" }, + { Color_mathbg, N_("math background"), "mathbg", transparent, transparent, "mathbg" }, { Color_mathmacrobg, N_("math macro background"), "mathmacrobg", Linen, black, "mathmacrobg" }, { Color_mathmacrohoverbg, N_("math macro hovered background"), "mathmacrohoverbg", "#ffcdc3b8", grey80, "mathmacrohoverbg" }, -- lyx-cvs mailing list [email protected] https://lists.lyx.org/mailman/listinfo/lyx-cvs