Changes between Version 1 and Version 2 of Ticket #17629
- Timestamp:
- Feb 28, 2022, 4:49:46 PM (3 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #17629 – Description
v1 v2 11 11 rgb_color base = ui_color(B_PANEL_BACKGROUND_COLOR); 12 12 + if (object->useDarkAppearence()) { 13 + if (base.Brightness() < 127) // system is in dark mode 13 + if (base.Brightness() > 127) // system is in light mode, but we need dark 14 + base = BPrivate::kDefaultColors[B_PANEL_BACKGROUND_COLOR]; 15 + } else { 16 + if (base.Brightness() < 127) // system is in dark mode, but we need light 14 17 + base = BPrivate::kDefaultColorsDark[B_PANEL_BACKGROUND_COLOR]; 15 + } else {16 + if (base.Brightness() < 127) // system is in dark mode17 + base = BPrivate::kDefaultColors[B_PANEL_BACKGROUND_COLOR];18 18 + } 19 19 rgb_color background = base;