Bug 483172 - Free Disk Space button margin too wide and cuts off fonts
Summary: Free Disk Space button margin too wide and cuts off fonts
Status: CONFIRMED
Alias: None
Product: dolphin
Classification: Applications
Component: bars: status (show other bugs)
Version: 24.02.1
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: Dolphin Bug Assignee
URL:
Keywords: qt6
Depends on:
Blocks:
 
Reported: 2024-03-10 21:25 UTC by Frank
Modified: 2024-04-20 16:04 UTC (History)
6 users (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 Frank 2024-03-10 21:25:02 UTC
SUMMARY
***
Depending on the Application Theme used (many of the popular kvantum themes have the issue), the area where Dolphin indicates Free Disk Space is cut off.

Possible regression in QT6.6.
***


STEPS TO REPRODUCE
1. Update to Plasma 6.0.1 with QT6.6
2. Use various kvantum themes

OBSERVED RESULT
Area of free disk space cut off slightly or almost completely, depending on the theme used.

EXPECTED RESULT
Area should be fully visible no matter the theme used.

SOFTWARE/OS VERSIONS
Windows: Nope
macOS: Nope
Linux/KDE Plasma: Yes!
(available in About System)
KDE Plasma Version: 6.0.1
KDE Frameworks Version: 6.0.0
Qt Version: 6.6.2


ADDITIONAL INFORMATION

Plz refer to these bug reports directly at kvantum for some detailed information with screenshots.

https://github.com/tsujan/Kvantum/issues/945
https://github.com/tsujan/Kvantum/issues/951
Comment 1 Frank 2024-03-10 22:58:40 UTC
For quick information, this comment might explain the difference between Dolphin 23.08.5 and 24.02.0.

https://github.com/tsujan/Kvantum/issues/951#issuecomment-1987391211
Comment 2 evgeniyharchenko.dev 2024-03-12 07:50:23 UTC
A temporary workaround: you can edit *.kvconfig file of your theme. Reduce value of layout_margin in [%General] section. E.g. set it to 5. But it affects PM_LayoutLeftMargin, PM_LayoutRightMargin, PM_LayoutTopMargin and PM_LayoutBottomMargin globally. More information in this comment: 
https://github.com/tsujan/Kvantum/issues/945#issuecomment-1989533328
Comment 3 Felix Ernst 2024-03-27 15:44:24 UTC
I changed this from a label to a button so it would become keyboard-accessible e.g. for visually- or motorically-impaired users. A button needs more space than a label unfortunately and especially themes which have very round buttons and further use margins within the buttons will need even more space. Making this menu accessible is prioritised over non-default theming, and I am not really familiar with the intricacies of button theming, so I personally currently don't know a good way to resolve this unfortunately. We most likely don't want to remove internal status bar margins (Is it possible to ignore internal margins just for the flat button perhaps?) or increase the status bar height.
Comment 4 ndrwkotov 2024-04-20 15:40:13 UTC
No, not only non-default themes have this problem. Fusion and Windows are broken too. They are default, aren't they? I suggest to revert these changes. They have no sense, this UI element is not essential, but this changes ruin a lot of custom themes.
Extensive customization is not the least reason for choosing KDE Plasma.
Comment 5 Felix Ernst 2024-04-20 16:04:41 UTC
(In reply to ndrwkotov from comment #4)
> No, not only non-default themes have this problem. Fusion and Windows are
> broken too. They are default, aren't they?

No,  they are not. Fusion is Qt's theme. On Windows we have also switched to Breeze recently because dark mode didn't work there previously.

> I suggest to revert these changes. They have no sense, this UI element is not essential, 

Please don't ignore my arguments. The change is essential because previously e.g. visually- or motorically-impaired users were unable to open this menu. For them this change was way more important than the custom theming of Dolphin you are interested in.

> this changes ruin a lot of custom themes.
> Extensive customization is not the least reason for choosing KDE Plasma.

Be aware that Dolphin allows you to hide the space information or even the status bar completely if you prefer a clean look (without the bug reported here) over the functionality these components provide.

To actually fix this bug report a different solution is needed that doesn't cause problems for some people.