Commit graph

6 commits

Author SHA1 Message Date
Ivailo Monev
44acb0cbf9 plasma: do not even set preferred size for batterymonitor and devicenotifier applets
once set the hint has to be updated on form factor switch (e.g. when the
applet is moved from the desktop to panel or vice-versa)

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-09-16 06:49:42 +03:00
Ivailo Monev
e695a67ae9 plasma: simplify batterymonitor and devicenotifier size hints management
by getting the preferred size hint from the actual applet widget and
returning the result of Plasma::PopupApplet::sizeHint() otherwise (both
Plasma::PopupApplet::sizeHint() and Plasma::applet::sizeHint() do hints
trickery based on form factor and such) a lot of assumptions other bits
make are fullfilled

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-09-15 13:22:15 +03:00
Ivailo Monev
2dc2d685d3 plasma: set minimum and preferred devicenotifier applet sizes based on form factor
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-09-15 06:50:46 +03:00
Ivailo Monev
fcc96cd259 plasma: implement configuration interface for devicenotifier applet
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-09-07 10:57:44 +03:00
Ivailo Monev
5ab7fa5735 plasma: use scroll widget as base graphics widget for devicenotifier applet
because if non-removable devices are shown things may not fit on the screen

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-09-07 09:30:32 +03:00
Ivailo Monev
d477598c1d generic: device notification reimplementation
how does it look? something like this:
https://ibb.co/1zbDVpk

and because all the SolidUiServer bits are written by me now - copyright
it to me. the actions dialog was not operational btw (not for hotplug
events anyway).

the solidautoeject thing does not even make sense - when the eject
button is pressed it was calling Solid::OpticalDrive::eject() but if the
button is pressed the tray will eject anyway so what was it doing
actually?

solid-device-automounter can be replaced with solid actions but the
devices are mounted for solid actions anyway so dropping it

as for KCM for the solid actions - there can be none but to add features
such as non-interactive actions (e.g. launch the keyboard KCM when a
keyboard is plugged without poping dialog) or actions that do something
on device removal it has to be done anew

note that the action file for opening a file manager was named
"test-predicate-openinwindow" meaning it was a testing thing rather than
a finished thing

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-09-07 05:47:54 +03:00