Bug 502927 - Manual background painting in KUrlNavigator breaks Kvantum theming for light themes with dark toolbars
Summary: Manual background painting in KUrlNavigator breaks Kvantum theming for light ...
Status: REPORTED
Alias: None
Product: frameworks-kio
Classification: Frameworks and Libraries
Component: general (other bugs)
Version First Reported In: 6.12.0
Platform: Other Linux
: NOR minor
Target Milestone: ---
Assignee: KIO Bugs
URL:
Keywords: regression
Depends on:
Blocks:
 
Reported: 2025-04-17 12:02 UTC by evgeniyharchenko.dev
Modified: 2025-05-14 16:55 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments
Dolphin file path with kvantum (34.13 KB, image/png)
2025-04-17 12:02 UTC, evgeniyharchenko.dev
Details
Dolphin file path with breeze (31.53 KB, image/png)
2025-04-17 12:03 UTC, evgeniyharchenko.dev
Details

Note You need to log in before you can comment on or make changes to this bug.
Description evgeniyharchenko.dev 2025-04-17 12:02:35 UTC
Created attachment 180348 [details]
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
Comment 1 evgeniyharchenko.dev 2025-04-17 12:03:20 UTC
Created attachment 180349 [details]
Dolphin file path with breeze