Bug 447516 - Add better options for chart sizes
Summary: Add better options for chart sizes
Status: REPORTED
Alias: None
Product: plasma-systemmonitor
Classification: Applications
Component: general (show other bugs)
Version: 5.23.4
Platform: Other Linux
: NOR wishlist
Target Milestone: ---
Assignee: KSysGuard Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-12-25 22:16 UTC by bomiyr
Modified: 2022-05-12 23:17 UTC (History)
4 users (show)

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


Attachments
example for equally heighted rows (144.02 KB, image/jpeg)
2021-12-25 22:16 UTC, bomiyr
Details
Sizing modes (179.45 KB, image/png)
2022-05-07 13:25 UTC, popov895
Details

Note You need to log in before you can comment on or make changes to this bug.
Description bomiyr 2021-12-25 22:16:33 UTC
Created attachment 144866 [details]
example for equally heighted rows

Plasma system monitor is good and flexible, but still it is not possible to create really cool pages. 
Right now all rows have equal height, and all widgets in row have equal width. This might be a problem in many cases. For example, if you want to add some text info at first row and graph at the second, they will have same size, which looks very odd (see attachment).
Ideally, it would be great to have grid layout with column/row-spans, but this solution might be over too complicated. 
Maybe simpler solution will be having relative sizes for rows and widgets. For example, if we have two rows, set row1Height=25%, row2Height=75%. And the same for widgets in row, if we have three widgets, widget1Width=25%, widget2Width=50%, widget3Width=25%
Comment 1 Arjen Hiemstra 2022-01-12 11:46:34 UTC
System Monitor in 5.24 will have a feature where you can specify three different sizing modes for rows - minimal, equal or maximum height. This should already provide some of what you're asking for. More layout options are something that I've been thinking about but they're tricky implementation wise.
Comment 2 popov895 2022-05-07 13:25:02 UTC
Created attachment 148635 [details]
Sizing modes

Actually, the sizing modes for rows (what I now see in the KDE neon Developer Edition) don't solve the problem: the "maximum" mode makes the row height unreasonably huge, and the "minimum" mode makes the row height so small that it eventually becomes unusable.

Ideally, it would be great to be able to change the row height by dragging its bottom border with the mouse. But I don't know if it's possible to do it somehow.
Comment 3 popov895 2022-05-07 13:35:58 UTC
Something like size grip for a row, or maybe splitters between rows (https://doc.qt.io/qt-5/qml-qtquick-controls2-splitview.html).
Comment 4 popov895 2022-05-12 23:17:27 UTC
Here's what it might look like.: https://invent.kde.org/epopov/plasma-systemmonitor/-/tree/resizable_faces