]> git.lyx.org Git - features.git/commit
Use black as default color for an inset button label text
authorEnrico Forestieri <forenr@lyx.org>
Tue, 9 May 2023 09:33:13 +0000 (11:33 +0200)
committerEnrico Forestieri <forenr@lyx.org>
Tue, 9 May 2023 09:33:13 +0000 (11:33 +0200)
commitee9fca42bbbc5422e3f36cfe763b437ceeae1a94
tree1edb2b69e0b3af952df972828ac9eb9a4a1fc03d
parent5556cb3d3f8d39fdb5811a8002ad3c706c3edc7c
Use black as default color for an inset button label text

It turns out that LyX was using red as default color for the
inset button text since ever. However, due to the use of "inherit",
the default button text color was black in practice. This was so
until [897ee2ed/lyxgit], which made the label font not inherited
by default anymore. Hence, all insets that didn't specify a specific
label button color started using red as default color.

This commit restores the previous behavior and introduces the
possibility of modifying this default color.

Fixes bug #12771
lib/scripts/layout2layout.py
src/Color.cpp
src/ColorCode.h
src/TextClass.cpp
src/insets/InsetLayout.h