Ivailo Monev
f710a828f3
plasma: ensure the lockout dialog icon is always the same size
...
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-09-15 18:52:51 +03:00
Ivailo Monev
e76fb4ff91
plasma: ensure the scroll area of devicenotifier applet does not shrink bellow the preferred size
...
because when to show the popup icon instead of the widget and when not is
decided by the minimum of the widget and Plasma::ScrollWidget is adjustable
(shrinks if minimum size is not set)
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-09-15 17:03:15 +03:00
Ivailo Monev
32438a2240
plasma: remove declaration of non-existing LockoutApplet::updateWidgets() method
...
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-09-15 15:54:26 +03:00
Ivailo Monev
e23cd38582
kioslave: include the correct header for HAVE_NICE definition
...
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-09-15 15:51:48 +03:00
Ivailo Monev
e2981d0cc2
generic: remove unused config-workspace header inclusions
...
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-09-15 15:50:06 +03:00
Ivailo Monev
afa0efd8e7
generic: remove unused configuration checks and definitions
...
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-09-15 15:45:09 +03:00
Ivailo Monev
d186170e48
plasma: disable selective batterymonitor applet layout update when device is added
...
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-09-15 15:16:19 +03:00
Ivailo Monev
a3cfbac5d2
soliduiserver: update the actions before handling the device add event
...
because removing device removes the actions for the device
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-09-15 14:06:09 +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
fb077bf0d5
plasma: lock when checking the free space in devicenotifier applet
...
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-09-15 11:36:58 +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
22fae391ae
libs: always adjust the size of the internal Plasma::WidgetExplorer widget
...
requires the following commit from kdelibs:
581fe4066a64e7c6ce241bfbd6c50f3d041d3c62
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-09-15 04:29:52 +03:00
Ivailo Monev
1dc79c3ddf
plasma: lock while updating devicenotifier applet layout
...
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-09-15 04:16:02 +03:00
Ivailo Monev
66c9071a02
plasma: update batterymonitor applet layout only on when battery device is added or removed
...
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-09-15 04:00:56 +03:00
Ivailo Monev
47ef483381
plasma: remove unused and private Label member
...
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-09-14 18:34:07 +03:00
Ivailo Monev
8bcbea0391
plasma: remove duplicate qgraphicssceneevent header inclusion
...
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-09-14 18:32:48 +03:00
Ivailo Monev
3dac0b99ec
kwin: remove borked window_strip tabbox client
...
requires org.kde.plasma.mobilecomponents import that is not maintainted
as part of Katana and never was
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-09-14 18:18:41 +03:00
Ivailo Monev
5052ae1e95
plasma: remove now redundant import
...
the Title type was merged into the component it is importing
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-09-14 17:32:56 +03:00
Ivailo Monev
ffaec1fb2b
plasma: remove unused plasmacomponents types
...
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-09-14 17:15:22 +03:00
Ivailo Monev
16fee95a8d
plasma: remove redundant IconItem member
...
QVariant holding QPixmap can be converted to QImage meaning the bits are
non-operational
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-09-14 16:52:14 +03:00
Ivailo Monev
87abe426bb
plasma: remove unused private IconItem member
...
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-09-14 16:37:19 +03:00
Ivailo Monev
925f1c4819
plasma: remove unused qtextracomponents type
...
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-09-14 16:16:50 +03:00
Ivailo Monev
27bf4c46cc
plasma: merge plasmaextracomponents declarative imports into plasmacomponents
...
the FallbackComponent type is unused
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-09-14 16:01:02 +03:00
Ivailo Monev
bcd85dcd0a
plasma: remove unused plasmaextracomponents types
...
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-09-14 15:16:33 +03:00
Ivailo Monev
6bab293d34
ksmserver: do not enable focus for the icons of the shutdown dialog
...
I can just say no
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-09-14 14:46:57 +03:00
Ivailo Monev
04e9c83d21
libs: const-ify kSceneWindow() function argument
...
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-09-14 13:54:54 +03:00
Ivailo Monev
e26a1a2986
libs: const-ify Plasma::WidgetExplorer constructor argument
...
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-09-14 13:48:04 +03:00
Ivailo Monev
797a038098
ksmserver: handle key events for icons via event filter in shutdown dialog
...
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-09-14 11:38:04 +03:00
Ivailo Monev
b67914031d
ksmserver: set the title text before starting the timer in the shutdown dialog
...
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-09-14 11:02:40 +03:00
Ivailo Monev
8e96ce1aa8
plasma: tweak lockout applet dialog sizes
...
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-09-14 10:53:25 +03:00
Ivailo Monev
43894f8f20
plasma: use bigger font for panels in keyboard applet
...
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-09-14 10:36:27 +03:00
Ivailo Monev
b783be6185
ksmserver: tweak the shutdown dialog sizes
...
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-09-14 10:08:55 +03:00
Ivailo Monev
33980544b8
ksmserver: animate the shutdown dialog
...
much like the lockout plasma applet (which I implemented)
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-09-14 08:24:57 +03:00
Ivailo Monev
e9fa3491a8
ksmserver: change the shutdown dialog title based on more events
...
fancier than tooltips
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-09-14 08:08:40 +03:00
Ivailo Monev
cb33b2cf11
plasma: delete the lockout applet dialog event loop via event
...
because it is executed and stopped from an event while it is running
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-09-14 07:48:57 +03:00
Ivailo Monev
545ec5fffa
ksmserver: change the shutdown dialog title based on focus
...
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-09-14 07:43:50 +03:00
Ivailo Monev
f2319df5ee
plasma: delay the lockout action by 500ms
...
with the dialog animation in place (which was not a thing in the old
implementation) the action may be triggered before the dialog has finished
the animation (because it is async, e.g. D-Bus call on interface which
involves event loop) and (for example) locking the screen when the dialog
has not dissapeared yet making the animate complete once the screen is
unlocked. to make the transition smooth delaying it by a little is a must
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-09-14 07:25:02 +03:00
Ivailo Monev
3147f9515e
plasma: animate the lockout applet dialog
...
ksmserver uses entirely different effect tho (which is triggered by a
button essentially calling ksmserver method) - the entire screen is
darkened when the ksmserver dialog appears (kwin effect)
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-09-14 06:54:26 +03:00
Ivailo Monev
79accd51c6
plasma: disable mouse events for the icon of the lockout applet dialog
...
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-09-14 06:38:33 +03:00
Ivailo Monev
971af2f5ea
libs: add additional comment about the Plasma::WidgetExplorer sizes
...
design issue of the old implementation that I have to solve at some point
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-09-13 18:33:34 +03:00
Ivailo Monev
0305b44785
plasma: perfect size for lockout applet
...
small for desktop applet but suitable for any theme and any form factor
(desktop-like, panel, etc.)
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-09-13 18:23:37 +03:00
Ivailo Monev
d09ad5f07e
plasma: set the preferred lockout dialog icon size to small one
...
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-09-13 16:19:29 +03:00
Ivailo Monev
10c7e5124e
plasma: ToolTipProxy::updateToolTip() optimization
...
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-09-13 15:57:15 +03:00
Ivailo Monev
71c809af91
plasma: pass correct type to Plasma::IconWidget::setPreferredIconSize() in batterymonitor applet
...
implicit conversion..
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-09-13 15:40:46 +03:00
Ivailo Monev
aca377b5d0
ksmserver: correct comment in shutdowndlg source file
...
the timeout used to be 30 seconds but 10 seconds is more than enough to
cancel the operation
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-09-13 15:36:31 +03:00
Ivailo Monev
b7ebac26ea
plasma: remove unused plasmacomponents types
...
there is a dialog proxy in org.kde.plasma.core, the dialog status type
remains in org.kde.plasma.components tho
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-09-13 14:22:35 +03:00
Ivailo Monev
15f45fdc81
ksmserver: remove debug bits in KSMShutdownDlg::confirmShutdown()
...
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-09-13 12:50:24 +03:00
Ivailo Monev
87b03e5336
libs: send arrow key events to the scroll widget from Plasma::WidgetExplorer
...
note that the key events that Plasma::WidgetExplorer handles are events
when neither the internal filter widget nor the scroll widget has focus
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-09-13 12:44:34 +03:00
Ivailo Monev
84cc8bfdd0
ksmserver: setup keyboard shortcuts for the shutdown dialog buttons
...
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-09-13 12:34:05 +03:00
Ivailo Monev
33c98fb7df
plasma: setup keyboard shortcuts for the lockout applet dialog buttons
...
same as the shortcuts of KStandardGuiItem
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-09-13 12:28:30 +03:00