diff options
author | Heiko Tietze <tietze.heiko@gmail.com> | 2024-08-06 11:14:12 +0200 |
---|---|---|
committer | Heiko Tietze <heiko.tietze@documentfoundation.org> | 2024-08-11 08:26:23 +0200 |
commit | 919e13fb3ba254312593727f92a6cf8f060e3051 (patch) | |
tree | d652fb7d7c77fb0456859e671b377dccd7b12cb2 /svtools | |
parent | 2fec61240fed71923e5e2172e8536438df2a2432 (diff) |
Resolves tdf#61242 - Customization of comment background color
* COL_AUTHOR<1..>_DARK/LIGHT/NORMAL removed Author1..9 added
* dark variants calculated from light with 50% brightness
* light does In/DecreaseLuminance(30) and dark (sd) resp. anchor (sw) In/DecreaseLuminance(80) depending on GetUseDarkMode()
* sw: font color depends on outline background, which now picks up DOCCOLOR; this does not work for dark colors in light mode, for example
* sd does not update on changes and requires a restart
Change-Id: I773793de8cfbdc0d23124db790604b93030375c2
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/171523
Reviewed-by: Heiko Tietze <heiko.tietze@documentfoundation.org>
Tested-by: Jenkins
Diffstat (limited to 'svtools')
-rw-r--r-- | svtools/source/config/colorcfg.cxx | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/svtools/source/config/colorcfg.cxx b/svtools/source/config/colorcfg.cxx index 9ba8004f752a..93e3e2e988da 100644 --- a/svtools/source/config/colorcfg.cxx +++ b/svtools/source/config/colorcfg.cxx @@ -151,6 +151,15 @@ uno::Sequence< OUString> GetPropertyNames(std::u16string_view rScheme) { std::u16string_view(u"/CalcText") ,false }, { std::u16string_view(u"/CalcProtectedBackground") ,false }, { std::u16string_view(u"/DrawGrid") ,true }, + { std::u16string_view(u"/Author1"), false }, + { std::u16string_view(u"/Author2"), false }, + { std::u16string_view(u"/Author3"), false }, + { std::u16string_view(u"/Author4"), false }, + { std::u16string_view(u"/Author5"), false }, + { std::u16string_view(u"/Author6"), false }, + { std::u16string_view(u"/Author7"), false }, + { std::u16string_view(u"/Author8"), false }, + { std::u16string_view(u"/Author9"), false }, { std::u16string_view(u"/BASICEditor"), false }, { std::u16string_view(u"/BASICIdentifier"), false }, { std::u16string_view(u"/BASICComment") , false }, @@ -432,6 +441,15 @@ Color ColorConfig::GetDefaultColor(ColorConfigEntry eEntry, int nMod) { COL_BLACK, Color(0xEEEEEE) }, // CALCTEXT { COL_LIGHTGRAY, Color(0x1C1C1C) }, // CALCPROTECTEDBACKGROUND { COL_GRAY7, COL_GRAY7 }, // DRAWGRID + { Color(0xFFFF9E), Color(0x80804f) }, // AUTHOR1 + { Color(0xD8E8FF), Color(0x6c7480) }, // AUTHOR2 + { Color(0xDAF8C1), Color(0x708063) }, // AUTHOR3 + { Color(0xE4D2F5), Color(0x776d80) }, // AUTHOR4 + { Color(0xFECDD0), Color(0x806768) }, // AUTHOR5 + { Color(0xD2F6F6), Color(0x6c8080) }, // AUTHOR6 + { Color(0xEDFCA3), Color(0x788052) }, // AUTHOR7 + { Color(0xD3DEE8), Color(0x747a80) }, // AUTHOR8 + { Color(0xFFE2B9), Color(0x80715d) }, // AUTHOR9 { COL_WHITE, Color(0x1C1C1C) }, // BASICEDITOR { COL_GREEN, Color(0xDDE8CB) }, // BASICIDENTIFIER { COL_GRAY, Color(0xEEEEEE) }, // BASICCOMMENT |