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 /include | |
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 'include')
-rw-r--r-- | include/svtools/colorcfg.hxx | 9 | ||||
-rw-r--r-- | include/tools/color.hxx | 27 |
2 files changed, 9 insertions, 27 deletions
diff --git a/include/svtools/colorcfg.hxx b/include/svtools/colorcfg.hxx index 89074ec03887..72e3ae3a63e8 100644 --- a/include/svtools/colorcfg.hxx +++ b/include/svtools/colorcfg.hxx @@ -70,6 +70,15 @@ enum ColorConfigEntry : int CALCTEXT, CALCPROTECTEDBACKGROUND, DRAWGRID , + AUTHOR1, + AUTHOR2, + AUTHOR3, + AUTHOR4, + AUTHOR5, + AUTHOR6, + AUTHOR7, + AUTHOR8, + AUTHOR9, BASICEDITOR, BASICIDENTIFIER, BASICCOMMENT , diff --git a/include/tools/color.hxx b/include/tools/color.hxx index f95ef582f1d6..653111c50bb4 100644 --- a/include/tools/color.hxx +++ b/include/tools/color.hxx @@ -469,33 +469,6 @@ inline constexpr ::Color COL_LIGHTMAGENTA ( 0xFF, 0x00, 0xFF ); inline constexpr ::Color COL_LIGHTGRAYBLUE ( 0xE0, 0xE0, 0xFF ); inline constexpr ::Color COL_YELLOW ( 0xFF, 0xFF, 0x00 ); inline constexpr ::Color COL_WHITE ( 0xFF, 0xFF, 0xFF ); -inline constexpr ::Color COL_AUTHOR1_DARK ( 0xC6, 0x92, 0x00 ); -inline constexpr ::Color COL_AUTHOR1_NORMAL ( 0xFF, 0xFF, 0x9E ); -inline constexpr ::Color COL_AUTHOR1_LIGHT ( 0xFF, 0xFF, 0xC3 ); -inline constexpr ::Color COL_AUTHOR2_DARK ( 0x06, 0x46, 0xA2 ); -inline constexpr ::Color COL_AUTHOR2_NORMAL ( 0xD8, 0xE8, 0xFF ); -inline constexpr ::Color COL_AUTHOR2_LIGHT ( 0xE9, 0xF2, 0xFF ); -inline constexpr ::Color COL_AUTHOR3_DARK ( 0x57, 0x9D, 0x1C ); -inline constexpr ::Color COL_AUTHOR3_NORMAL ( 0xDA, 0xF8, 0xC1 ); -inline constexpr ::Color COL_AUTHOR3_LIGHT ( 0xE2, 0xFA, 0xCF ); -inline constexpr ::Color COL_AUTHOR4_DARK ( 0x69, 0x2B, 0x9D ); -inline constexpr ::Color COL_AUTHOR4_NORMAL ( 0xE4, 0xD2, 0xF5 ); -inline constexpr ::Color COL_AUTHOR4_LIGHT ( 0xEF, 0xE4, 0xF8 ); -inline constexpr ::Color COL_AUTHOR5_DARK ( 0xC5, 0x00, 0x0B ); -inline constexpr ::Color COL_AUTHOR5_NORMAL ( 0xFE, 0xCD, 0xD0 ); -inline constexpr ::Color COL_AUTHOR5_LIGHT ( 0xFF, 0xE3, 0xE5 ); -inline constexpr ::Color COL_AUTHOR6_DARK ( 0x00, 0x80, 0x80 ); -inline constexpr ::Color COL_AUTHOR6_NORMAL ( 0xD2, 0xF6, 0xF6 ); -inline constexpr ::Color COL_AUTHOR6_LIGHT ( 0xE6, 0xFA, 0xFA ); -inline constexpr ::Color COL_AUTHOR7_DARK ( 0x8C, 0x84, 0x00 ); -inline constexpr ::Color COL_AUTHOR7_NORMAL ( 0xED, 0xFC, 0xA3 ); -inline constexpr ::Color COL_AUTHOR7_LIGHT ( 0xF2, 0xFE, 0xB5 ); -inline constexpr ::Color COL_AUTHOR8_DARK ( 0x35, 0x55, 0x6B ); -inline constexpr ::Color COL_AUTHOR8_NORMAL ( 0xD3, 0xDE, 0xE8 ); -inline constexpr ::Color COL_AUTHOR8_LIGHT ( 0xE2, 0xEA, 0xF1 ); -inline constexpr ::Color COL_AUTHOR9_DARK ( 0xD1, 0x76, 0x00 ); -inline constexpr ::Color COL_AUTHOR9_NORMAL ( 0xFF, 0xE2, 0xB9 ); -inline constexpr ::Color COL_AUTHOR9_LIGHT ( 0xFF, 0xE7, 0xC7 ); inline constexpr ::Color COL_AUTHOR_TABLE_INS ( 0xE1, 0xF2, 0xFA ); inline constexpr ::Color COL_AUTHOR_TABLE_DEL ( 0xFC, 0xE6, 0xF4 ); |