Created attachment 182003 [details] Teeny tiny little window title SUMMARY Setting the Window title font size in font settings too small, can result in a very thin, almost non-existent window titlebars, regardless of chosen button size in decoration config because it seems to also scale relative to the title font size. STEPS TO REPRODUCE 1. Go to System Settings > Text & Fonts > Fonts 2. Set "Window title" font to any font with manually set to eg. 0.01 3. Press OK then Apply and observe how thin the titlebars become OBSERVED RESULT Window titlebars shrink down to approximately 8 pixels EXPECTED RESULT Titlebars stay the same size while only the text becomes tiny, if so the user desires, so that buttons are still clickable. SOFTWARE/OS VERSIONS Arch Linux KDE Plasma Version: 6.3.5 KDE Frameworks Version: 6.14.0 Qt Version: 6.9.0 ADDITIONAL INFORMATION Wayland
Well then don't do that, silly! :D With great power comes great responsibility. Setting *any* font size to something like 0.01 is clearly going to break the system. Ultimately we give people knobs to customize the system so they can improve its ergonomics for themselves according to their own needs and preferences; when people use it to actively destroy the system's ergonomics, we're going to have to start looking at the customization opportunities more dimly. We could perhaps show a message if you set the font size to something absurdly small, the same way we do for something absurdly large. Or we could set a lower bound on the font size that you can't go below.
I only really expected only the title text to get smaller, not the entire titlebar because there are still buttons that can get really hard to click if not straight up impossible with such small font sizes, also window buttons have their own size options in the Breeze decorations config, why is it still affected by title font size?
>why is it still affected by title font size? Because otherwise a large font wouldn't fit. The title bar changing is correct. We can try to add a lower bound on the fonts.
`titlebarHeight = max(fontHeight, buttonSize)`?
I actively set my "Window title" font very small because I like having a small title bar. I don't think disallowing users to change the height of the title bar is an improvement. Quite the opposite really. But I agree that being able to make it so small that the minimise and close buttons are non-existent is a bug.
Can we perhaps have another explicit titlebar height option? Because the current way to achieve it is rather hacky and indirect
A possibly relevant merge request was started @ https://invent.kde.org/plasma/plasma-workspace/-/merge_requests/5573
Git commit da990dc62f8a860e6512a82d5fca59602ee8ad96 by Nate Graham. Committed on 06/06/2025 at 12:55. Pushed by ngraham into branch 'master'. kcms/fonts: save people from excessively small font sizes The Qt font dialog lets you set the font to be absurdly small, down to 0.01pt. Sizes this small don't make sense; let's set a lower bound of 4pt with an appropriate warning message about that. Let's also warn people if they try to set a size below 7pt, which is not in the realm of "unusable" but rather "non-text UI elements may all look too large". Instead, steer people towards the KScreen KCM, the way we do if they try to use huge fonts. FIXED-IN: 6.5.0 M +5 -0 kcms/fonts/fonts.cpp M +1 -0 kcms/fonts/fonts.h M +40 -0 kcms/fonts/ui/main.qml https://invent.kde.org/plasma/plasma-workspace/-/commit/da990dc62f8a860e6512a82d5fca59602ee8ad96
Nice change, but it is not how I wanted this to be solved, I set the original bug product to Breeze for a reason, even if the user sets the title font size to 4, the buttons and window icon are going to get smaller too, which I think is a bad side effect regardless if it is intentional or not. The Breeze window decoration config already has options to change button size.
That may also make sense, but let's get a new bug report for it since it's a separate change.
(In reply to Nate Graham from comment #10) > That may also make sense, but let's get a new bug report for it since it's a > separate change. https://bugs.kde.org/show_bug.cgi?id=505347