mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-05 13:15:52 +00:00

This makes it so the "selected" segment of the groove (towards the slider origin) is drawn with a brighter color than the "empty" segment (opposite from the origin). Since this obviously wouldn't work with RGB #FFFFFF, and the color is too distracting anyway (it was pretty much the only widget using the general *text* color), we now use the standard UI border colors to match buttons, checkboxes and so on. This should hopefully help with harmonizing Wesnoth's UI color scheme across the board. For this purpose we also introduce a macro for a darker/shaded disabled text color, used for the unselected segment of disabled sliders.