Changes between Version 1 and Version 2 of Ticket #17629


Ignore:
Timestamp:
Feb 28, 2022, 4:49:46 PM (2 years ago)
Author:
nephele
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #17629 – Description

    v1 v2  
    1111    rgb_color base = ui_color(B_PANEL_BACKGROUND_COLOR);
    1212+    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
    1417+            base = BPrivate::kDefaultColorsDark[B_PANEL_BACKGROUND_COLOR];
    15 +    } else {
    16 +        if (base.Brightness() < 127) // system is in dark mode
    17 +            base = BPrivate::kDefaultColors[B_PANEL_BACKGROUND_COLOR];
    1818+    }
    1919    rgb_color background = base;