]> git.mdlowis.com Git - proto/labwc.git/commit
osd-thumbnail: update default colors of selected window item
authortokyo4j <hrak1529@gmail.com>
Wed, 1 Oct 2025 19:06:48 +0000 (04:06 +0900)
committerJohan Malm <johanmalm@users.noreply.github.com>
Tue, 7 Oct 2025 18:47:50 +0000 (19:47 +0100)
commit998ff9e7b5f0433d140220aee64e9629b1a88d76
tree359834fd9b2649a754ae099d85bfa84f00912e1d
parentbed0be8a88aa5c8a05618c97ab8385aa260ad591
osd-thumbnail: update default colors of selected window item

Previously, the default values of
`osd.window-switcher.style-thumbnail.item.active.{bg,border}.color`
were blue. But they caused the selected window title in the window
switcher to be unreadable due to duplicated colors of the text and
background with Openbox themes like Numix.

Instead, this commit updates them to follow other themes configurations.
The default border color of the selected window item is now
`osd.label.text.color` with 50% opacity and the background is
`osd.label.text.color` with 15% opacity.

For subpixel antialiasing to work, the background color is calculated by
manually blending `osd.label.text.color` and `osd.bg.color`, rather than
just updating the alpha with 50% or 15%.
docs/labwc-theme.5.scd
docs/themerc
src/theme.c