Created attachment 177801 [details] screen cap of the battery level's UI in info center SUMMARY The UI for the battery levels in the Info Center is cropped poorly. STEPS TO REPRODUCE 1. Open the Info Center app 2. Open the Energy tab 3. Look at the screen OBSERVED RESULT The battery levels are cropped cutting off the battery levels. EXPECTED RESULT The UI is so beautiful that I cry as it make me realize something significant about my life that I never realized before. SOFTWARE/OS VERSIONS Windows: nope macOS: nada (available in the Info Center app, or by running `kinfo` in a terminal window) Operating System: Fedora Linux 42 KDE Plasma Version: 6.2.90 KDE Frameworks Version: 6.10.0 Qt Version: 6.8.1 Kernel Version: 6.13.0-0.rc7.20250114gitc45323b7560e.56.fc42.x86_64 (64-bit) Graphics Platform: Wayland Processors: 8 × 11th Gen Intel® Core™ i7-1165G7 @ 2.80GHz Memory: 31.1 GiB of RAM Graphics Processor: Intel® Iris® Xe Graphics ADDITIONAL INFORMATION I have include a screenshot showing the problem. I believe I have modified the default font sizes a bit, but I frankly do not remember if that's true or not.
For clarification, I am running Fedora Rawhide. I just noticed that my report doesn't indicate that.
Reproduced on git-master, Solus General font: Waree 10pt Other non-fixed are Noto Sans 10pt (defaults) Changing the General Font to Noto Sans 10pt eliminates the cropping Changing it back to Waree, the text cropping shows up again It seems that the boxes aren't properly calculating margins / padding per font
Thanks. Looks like another casualty of gridUnit no longer adjusting with the font size automatically.
Glad this seems to be an easy one.
A possibly relevant merge request was started @ https://invent.kde.org/plasma/kinfocenter/-/merge_requests/221
Git commit f63e886a7c25f05bd03e54e9c6f571250588135a by Ismael Asensio. Committed on 09/02/2025 at 12:20. Pushed by iasensio into branch 'master'. kcms/energy: Improve layout of the device selector Port the device selector to an actual ListView instead of Row+Repeater combo, so we can use the implicit height of the delegate, instead of imposing a fixed height, which fails for bigger fonts. Also improve the layout by centering the available buttons, and adapt their width to the number of devices, so it doesn't need horizontal scrolling and resembles more a Navigation bar While at it, also simplify the code by using the ListView `currentItem` to initialize and select the current device. As an added benefit there is now keyboard navigation Related: bug 499350 FIXED-IN: 6.4 M +123 -118 kcms/energy/ui/main.qml https://invent.kde.org/plasma/kinfocenter/-/commit/f63e886a7c25f05bd03e54e9c6f571250588135a
*** Bug 500509 has been marked as a duplicate of this bug. ***