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

            Bug ID: 502927
           Summary: Manual background painting in KUrlNavigator breaks
                    Kvantum theming for light themes with dark toolbars
    Classification: Frameworks and Libraries
           Product: frameworks-kio
           Version: 6.12.0
          Platform: Other
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: general
          Assignee: kio-bugs-n...@kde.org
          Reporter: evgeniyharchenko....@gmail.com
                CC: kdelibs-b...@kde.org
  Target Milestone: ---

Created attachment 180348
  --> https://bugs.kde.org/attachment.cgi?id=180348&action=edit
Dolphin file path with kvantum

SUMMARY
After this merge request:
https://invent.kde.org/frameworks/kio/-/merge_requests/1793 the KUrlNavigator
widget in Dolphin (and possibly other apps) draws its background using QPainter
with a hardcoded call to palette(). This bypasses the QStyle engine and breaks
compatibility with third-party styles like Kvantum.

As a result, the text and background become unreadable when using semi-dark
themes (light themes with dark toolbars).

This issue has been confirmed by Kvantum's developer in this discussion, where
it was explained that Kvantum cannot style elements that are painted manually
like this.

https://github.com/tsujan/Kvantum/discussions/1059

STEPS TO REPRODUCE
1. Use any light Kvantum theme with dark toolbars (e.g. KvAdapta,
KvMojaveMixed).
2. Launch Dolphin.

OBSERVED RESULT
The path bar uses a bright background that clashes with the theme, making the
text hard or impossible to read.

EXPECTED RESULT
KUrlNavigator should use QStyle to draw its background so that it remains
styleable.

SOFTWARE/OS VERSIONS
KDE Frameworks Version 6.12+

ADDITIONAL INFORMATION
https://invent.kde.org/frameworks/kio/-/merge_requests/1793
https://github.com/tsujan/Kvantum/issues/1066
https://github.com/tsujan/Kvantum/discussions/1059

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

Reply via email to