Bug 499350 - Energy KCM
Summary: Energy KCM
Status: RESOLVED FIXED
Alias: None
Product: kinfocenter
Classification: Applications
Component: general (other bugs)
Version First Reported In: unspecified
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords:
: 501376 (view as bug list)
Depends on:
Blocks:
 
Reported: 2025-01-31 04:30 UTC by Justin Zobel
Modified: 2025-03-11 23:47 UTC (History)
4 users (show)

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


Attachments
Screenshot (68.63 KB, image/png)
2025-01-31 04:30 UTC, Justin Zobel
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Justin Zobel 2025-01-31 04:30:11 UTC
Created attachment 177837 [details]
Screenshot

Have reset default size of window by deleting the kinfocenter rc file.

Scrolling area for the battery list with 3 batteries.

It is likely scrolling up/down with just one battery as the battery % is below the area.
Comment 1 Nate Graham 2025-01-31 14:57:42 UTC
Can you back up and clarify what the problem is and how you're reproducing it?

It looks like you opened the Energy page in kcmshell6 rather than KInfoCenter.
Comment 2 Justin Zobel 2025-02-03 02:53:08 UTC
Open the Energy KCM from Kickoff. Battery list area up top has scroll bars, it's not clean.
Comment 3 Ismael Asensio 2025-02-09 04:05:52 UTC
A possibly relevant merge request was started @ https://invent.kde.org/plasma/kinfocenter/-/merge_requests/221
Comment 4 Ismael Asensio 2025-02-09 12:28:42 UTC
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 499290
FIXED-IN: 6.4

M  +123  -118  kcms/energy/ui/main.qml

https://invent.kde.org/plasma/kinfocenter/-/commit/f63e886a7c25f05bd03e54e9c6f571250588135a
Comment 5 Nate Graham 2025-03-11 23:47:35 UTC
*** Bug 501376 has been marked as a duplicate of this bug. ***