https://bugs.kde.org/show_bug.cgi?id=528182

            Bug ID: 528182
           Summary: Main file view has wrong colors on startup when Window
                    Color Scheme differs from system scheme (Linux, Plasma
                    6.8)
    Classification: Applications
           Product: dolphin
      Version First 26.08.2
       Reported In:
          Platform: CachyOS
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: view-engine: general
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected]
  Target Milestone: ---

Created attachment 197939
  --> https://bugs.kde.org/attachment.cgi?id=197939&action=edit
Screenshot of Dolphin launched after setting window color scheme to breeze
light while system is set to breeze dark.

SUMMARY
When Dolphin's "Window Color Scheme" differs from the system color scheme, the
main file view renders with the wrong colors after Dolphin is restarted (white
text on a white background in my case, so file names are unreadable). Selecting
the scheme from the menu while Dolphin is running displays correctly. The
problem only shows up on a fresh launch.

STEPS TO REPRODUCE
1. Set the system color scheme to Breeze Dark (System Settings > Colors &
Themes).
2. In Dolphin, set Settings > Window Color Scheme > Breeze Light. Dolphin looks
correct at this point.
3. Close Dolphin completely and launch it again.

OBSERVED RESULT
The main file view comes up with alternating black-white rows, with white text
on the white backgrounds, so file names are unreadable. This happens in all
three view modes (Icons, Compact, Details). The Places panel and toolbar are
correct and follow the Breeze Light scheme.

EXPECTED RESULT
After a restart the file view uses the same colors as the rest of the window,
as it does right after selecting the scheme from the menu.

ADDITIONAL INFORMATION
- Setting the system scheme and Dolphin's Window Color Scheme to the same
scheme (both Breeze Dark or both Breeze Light) works correctly after restart.
The failure happens only when they differ.
- Config files are identical before and after the restart, so nothing is being
rewritten or corrupted:
    ~/.config/dolphinrc:   [UiSettings] ColorScheme=BreezeLight
    ~/.config/kdeglobals:  [General] ColorScheme=BreezeDark
                           [Colors:View] BackgroundNormal=20,22,24
                           [Colors:Window] BackgroundNormal=32,35,38
- Only Dolphin is affected. Gwenview, with its item pane, also set to Breeze
Light on a Breeze Dark system, does not show the problem. Kate did not show an
obvious problem either.
- Reproduced on a second machine with the same distribution and desktop.
- No qt5ct, qt6ct or Kvantum installed, no QT_QPA_PLATFORMTHEME or
QT_STYLE_OVERRIDE set, and plasma-integration is installed.
XDG_CURRENT_DESKTOP=KDE.
- My guess, which I haven't verified: the item view captures its palette from
the system palette at startup, before the per-app scheme is applied, and only
gets updated when the scheme is changed live.
- Possibly related, though both are Windows-specific with a different trigger:
bug 502988 and bug 487002.

SOFTWARE/OS VERSIONS
Dolphin: 26.08.2
How Dolphin was installed: distribution package (pacman), /usr/bin/dolphin
KDE Plasma: 6.8.2 (plasma-integration 6.8.2)
Session: Wayland
Distribution: CachyOS

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to