Skip to content

Fix dark url navigator band in Dolphin with DisableDolphinUrlNavigatorBackground - #346

Open
limonzhik wants to merge 1 commit into
Bali10050:mainfrom
limonzhik:fix-dolphin-urlnavigator-bg
Open

Fix dark url navigator band in Dolphin with DisableDolphinUrlNavigatorBackground#346
limonzhik wants to merge 1 commit into
Bali10050:mainfrom
limonzhik:fix-dolphin-urlnavigator-bg

Conversation

@limonzhik

Copy link
Copy Markdown

When "Disable Dolphin URL navigator background" is on and the toolbar is opaque, the location bar in Dolphin is drawn as a dark band with a darker outline around it instead of blending into the toolbar.

With KIO 6, KUrlNavigator always keeps its KUrlComboBox child (hidden in breadcrumb mode) and paints its PE_FrameLineEdit background itself in KUrlNavigator::paintEvent. drawFrameLineEditPrimitive then sets the background fully transparent (setAlphaF(0)), but renderLineEdit still draws its box shadow and outline, and with no opaque fill on top they stay visible over the toolbar. Measured on Plasma 6.7 / KIO 6.28 / Dolphin 26.04: toolbar #1F1F1F, the bar flat #1A1A1A, which is exactly the toolbar color darkened by the alpha 40 box shadow.

Fix: when the option is on and the toolbar is opaque, fill the bar with the window color and skip renderLineEdit. The translucent toolbar path (toolBarOpacity < 100) is left unchanged. Editable location mode is unaffected, KUrlNavigator does not paint PE_FrameLineEdit there.

Tested on Darkly master, Plasma 6.7 Wayland, KIO 6.28, Dolphin 26.04. After the patch the bar is pixel identical to the toolbar, no halo around it.

…rBackground

With KIO 6, KUrlNavigator paints its PE_FrameLineEdit background itself in
breadcrumb mode. The style set the fill fully transparent but renderLineEdit
still drew its box shadow and outline, so they showed as a dark band and halo
over the toolbar.

When the toolbar is opaque, fill the bar with the window color and skip
renderLineEdit entirely.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant