Bug 443569 - Energy page: Layout for battery statistics wastes space and requires scrolling
Summary: Energy page: Layout for battery statistics wastes space and requires scrolling
Status: RESOLVED FIXED
Alias: None
Product: kinfocenter
Classification: Applications
Component: general (show other bugs)
Version: 5.22.4
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Kai Uwe Broulik
URL:
Keywords: usability
: 487853 (view as bug list)
Depends on:
Blocks:
 
Reported: 2021-10-10 21:22 UTC by Frank Steinmetzger
Modified: 2025-02-10 21:11 UTC (History)
6 users (show)

See Also:
Latest Commit:
Version Fixed In: 6.4
Sentry Crash Report:


Attachments
The battery statistics page, top area (102.18 KB, image/png)
2021-10-10 21:22 UTC, Frank Steinmetzger
Details
The battery statistics page, bottom area where much of the available space is unused (107.20 KB, image/png)
2021-10-10 21:23 UTC, Frank Steinmetzger
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Frank Steinmetzger 2021-10-10 21:22:55 UTC
Created attachment 142312 [details]
The battery statistics page, top area

The info page which shows battery statistics has a not-so-optimal layout. My laptop has a panel with 1920×1280 pixels, yet I need to scroll for the relatively little amount of information that is shown.

I would like to suggest to put the two blocks of data “Battery” and “Energy” next to each other instead of below one another. (And perhaps even move the captions to the sides as well, if that doesn’t make it too wide then) This will reduce the amount of unused real estate in the two bottom corners.
Comment 1 Frank Steinmetzger 2021-10-10 21:23:43 UTC
Created attachment 142313 [details]
The battery statistics page, bottom area where much of the available space is unused
Comment 2 Bharadwaj Raju 2022-10-01 09:36:31 UTC
The graph is much shorter in height now, at least on my system.
Comment 3 TraceyC 2024-06-06 22:00:13 UTC
The scrolling issue is still present as reported in #487853, I was able to confirm on my system as well. 

I can verify that the UI looks as shown in #487853 on my system as well with 3 battery powered devices

Operating System: Solus 4.5
KDE Plasma Version: 6.0.5
KDE Frameworks Version: 6.2.0
Qt Version: 6.7.1

Screenshot from the other bug
https://bugsfiles.kde.org/attachment.cgi?id=170027
Comment 4 TraceyC 2024-06-06 22:01:00 UTC
*** Bug 487853 has been marked as a duplicate of this bug. ***
Comment 5 Ismael Asensio 2025-02-10 21:11:41 UTC
Git commit 3a1b7055c3117a1be6eb4e67eaafd0df42f75f81 by Ismael Asensio.
Committed on 10/02/2025 at 20:57.
Pushed by iasensio into branch 'master'.

kcms/energy: Remove extra top/right paddings and fix plot area

Previous drawing assumed a centered plot with symmetric x and y
paddings, which resulted in extra wasted space on the top and right
of the plot.

Rework the plot positioning to allow different paddings on every
edge, which will serve to accomodate the axis labels.

This new plot geometry property is also used to better center the
placeholder message.

Also limit the min/max graph height so it doesn't get too big on
maximized pages, or too small on compact ones.
FIXED-IN: 6.4

M  +46   -28   kcms/energy/ui/Graph.qml
M  +11   -9    kcms/energy/ui/main.qml

https://invent.kde.org/plasma/kinfocenter/-/commit/3a1b7055c3117a1be6eb4e67eaafd0df42f75f81