Bug 444835 - Custom padding via CSS file changes tab-style unexpectedly
Summary: Custom padding via CSS file changes tab-style unexpectedly
Status: REPORTED
Alias: None
Product: konsole
Classification: Applications
Component: tabbar (show other bugs)
Version: master
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Konsole Developer
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-11-02 15:25 UTC by Martin Riethmayer
Modified: 2021-11-08 18:10 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Riethmayer 2021-11-02 15:25:15 UTC
SUMMARY
When using a user-defined stylesheet, setting a different padding "destroys" the rest of the styling

STEPS TO REPRODUCE
1. Create a custom CSS file with the content 

QTabBar::tab { padding: 8px; }

2. Apply the stylesheet in Konsole preferences -> Tab Bar

OBSERVED RESULT
The tabs do respect the new padding but also lose a bunch of other styling information (e.g. the blue highlight...)

EXPECTED RESULT
The tabs should only change the padding, not the rest of the styling

Note: This does not apply generally to all settings in the custom CSS file. If you put

QTabBar::tab { min-width: 200px; }

then only the minimum width of the tabs is changed, the rest of the styling appears to be unchanged, e.g. the blue highlight line is still intact.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: KDE Neon / Kubuntu
KDE Plasma Version: 5.23.2 / 5.18.5
KDE Frameworks Version:  5.87.0 / 5.68.0
Qt Version: 5.15.3 / 5.12.8