tdf#153361 improve theme color generation in color picker
commite6215c7233c0fb437a81b51c8a8a30bb53eef65f
authorTomaž Vajngerl <tomaz.vajngerl@collabora.co.uk>
Wed, 24 May 2023 15:53:22 +0000 (25 00:53 +0900)
committerTomaž Vajngerl <quikee@gmail.com>
Thu, 1 Jun 2023 16:25:58 +0000 (1 18:25 +0200)
tree914a138e1985fbffaa467ad33dc3eeef440cb725
parentc7b4d15c5c33e8ac05b054aa1d19751fb1b1275a
tdf#153361 improve theme color generation in color picker

The theme color generator needs to take color luminocity into
account, so that the very dark or very light colors are properly
shaded. Otherwise a too dark color will generate a too dark (almost
black) color variant, or a too light a too light (almost white)
color variant. However those colors aren't useful.

Change-Id: Id803a8f6f1a79cbc822ed2d7faca9bec228c0188
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/152237
Tested-by: Tomaž Vajngerl <quikee@gmail.com>
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
cui/qa/uitest/dialogs/chardlg.py
cui/source/tabpages/tpcolor.cxx
include/svx/PaletteManager.hxx
include/svx/strings.hrc
svx/source/tbxctrls/PaletteManager.cxx
svx/source/tbxctrls/tbcontrl.cxx