mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 05:16:21 +00:00
Introduce semantic label colors
This allows customization e.g. in dark mode and is a prerequisite for color theming Part of #8325
This commit is contained in:
parent
d3036ca705
commit
91026711ae
@ -11,7 +11,7 @@
|
||||
# This script will update a .layout file to current format
|
||||
|
||||
# The latest layout format is also defined in src/TextClass.cpp
|
||||
currentFormat = 89
|
||||
currentFormat = 90
|
||||
|
||||
|
||||
# Incremented to format 4, 6 April 2007, lasgouttes
|
||||
@ -304,6 +304,9 @@ currentFormat = 89
|
||||
# Incremented to format 89, 5 December 2020 by rkh
|
||||
# New tag LaTeXName for counters
|
||||
|
||||
# Incremented to format 90, 11 December 2020 by spitz
|
||||
# Use semantic label colors
|
||||
|
||||
# Do not forget to document format change in Customization
|
||||
# Manual (section "Declaring a new text class").
|
||||
|
||||
@ -554,7 +557,7 @@ def convert(lines, end_format):
|
||||
i += 1
|
||||
continue
|
||||
|
||||
if 87 <= format <= 89:
|
||||
if 87 <= format <= 90:
|
||||
# nothing to do.
|
||||
i += 1
|
||||
continue
|
||||
|
@ -254,6 +254,9 @@ ColorSet::ColorSet()
|
||||
{ Color_selection, N_("selection"), "selection", "#add8e6", "selection" },
|
||||
{ Color_selectiontext, N_("selected text"), "selectiontext", black, "selectiontext" },
|
||||
{ Color_latex, N_("LaTeX text"), "latex", DarkRed, "latex" },
|
||||
{ Color_textlabel1, N_("Text label 1"), "textlabel1", blue, "textlabel1" },
|
||||
{ Color_textlabel2, N_("Text label 2"), "textlabel2", Green, "textlabel2" },
|
||||
{ Color_textlabel3, N_("Text label 3"), "textlabel3", magenta, "textlabel3" },
|
||||
{ Color_inlinecompletion, N_("inline completion"),
|
||||
"inlinecompletion", grey60, "inlinecompletion" },
|
||||
{ Color_nonunique_inlinecompletion, N_("non-unique inline completion"),
|
||||
|
@ -108,6 +108,13 @@ enum ColorCode {
|
||||
/// Label color for URL insets
|
||||
Color_urllabel,
|
||||
|
||||
/// Label color 1 for text (layout) labels
|
||||
Color_textlabel1,
|
||||
/// Label color 2 for text (layout) labels
|
||||
Color_textlabel2,
|
||||
/// Label color 3 for text (layout) labels
|
||||
Color_textlabel3,
|
||||
|
||||
/// Color for URL inset text
|
||||
Color_urltext,
|
||||
|
||||
|
@ -59,7 +59,7 @@ namespace lyx {
|
||||
// You should also run the development/tools/updatelayouts.py script,
|
||||
// to update the format of all of our layout files.
|
||||
//
|
||||
int const LAYOUT_FORMAT = 89; // rkh: LaTeXName for counters
|
||||
int const LAYOUT_FORMAT = 90; // spitz: semantic label colors
|
||||
|
||||
|
||||
// Layout format for the current lyx file format. Controls which format is
|
||||
|
Loading…
Reference in New Issue
Block a user