# This script will update a .layout file to current format
# The latest layout format is also defined in src/TextClass.cpp
-currentFormat = 99
+currentFormat = 100
# Incremented to format 4, 6 April 2007, lasgouttes
# Incremented to format 99, 22 December 2022 by tcuvelier
# Add DocBookGenerateTitle for Layout
+# Incremented to format 100, 9 May 2023 by forenr
+# Add inset label color
+
# Do not forget to document format change in Customization
# Manual (section "Declaring a new text class").
i += 1
continue
- if 87 <= format <= 98:
+ if 87 <= format <= 100:
# nothing to do.
i += 1
continue
{ Color_collapsible, N_("collapsible inset text"), "collapsible", DarkRed, DarkRed, "collapsible" },
{ Color_collapsibleframe, N_("collapsible inset frame"), "collapsibleframe", IndianRed, IndianRed, "collapsibleframe" },
{ Color_insetbg, N_("inset background"), "insetbg", grey80, grey80, "insetbg" },
+ { Color_insetlabel, N_("inset label"), "insetlabel", black, black, "insetlabel" },
{ Color_insetframe, N_("inset frame"), "insetframe", IndianRed, IndianRed, "insetframe" },
{ Color_error, N_("LaTeX error"), "error", red, DarkRed, "error" },
{ Color_eolmarker, N_("end-of-line marker"), "eolmarker", Brown, Brown, "eolmarker" },
// You should also run the development/tools/updatelayouts.py script,
// to update the format of all of our layout files.
//
-int const LAYOUT_FORMAT = 99; // tcuvelier: add docbookgeneratetitle
+int const LAYOUT_FORMAT = 100; // forenr: add inset label color
// Layout format for the current lyx file format. Controls which format is
class InsetLayout {
public:
///
- InsetLayout() { labelfont_.setColor(Color_error); }
+ InsetLayout() { labelfont_.setColor(Color_insetlabel); }
///
bool read(Lexer & lexrc, TextClass const & tclass,
bool validating = false);