Commit graph

628 commits

Author SHA1 Message Date
Ivailo Monev
fb686dc3c1 plasma: implement session manager
comes along with plenty of other changes

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2024-05-09 08:33:28 +03:00
Ivailo Monev
3e5dfaa22b ksmserver: drop it and move session initialization to plasma-desktop
everything except the actual session management, second time ksmserver
starts crashing as I work on something for no reason and is time for it
to be done anew as there were quite some unsafe bits in it

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2024-05-07 02:33:19 +03:00
Ivailo Monev
bb574694b1 plasma: delay launcher applet initial layout updates by one second
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2024-05-06 05:50:16 +03:00
Ivailo Monev
cabf785eb5 plasma: scale the calculator applet widgets fonts to the width too
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2024-05-06 04:40:47 +03:00
Ivailo Monev
b4a526ef3a plasma: use the paint text for calculations in calculator applet
now that the previous commit happened..

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2024-05-06 04:30:15 +03:00
Ivailo Monev
4ed371f5de plasma: scale the calculator widgets fonts
that makes one of the applets that will not use the point size set in
configs, on purpose. it is like automatic DPI effect, real scalable fonts
but done programatically

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2024-05-06 04:14:32 +03:00
Ivailo Monev
aacbd1dbdd plasma: limit everything that calculator applet displays
after testing it with significant digits rounding it turned out it displays
undesirable results tho so the feature to increment/decrement was dropped

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2024-05-06 01:54:10 +03:00
Ivailo Monev
89773cc69c plasma: implement number increment/decrement on mouse wheel event for calculator applet
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2024-05-06 01:20:43 +03:00
Ivailo Monev
0250ec678e plasma: fix size hints recursion issue in pager applet
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2024-05-06 00:23:32 +03:00
Ivailo Monev
14f22124af plasma: rework pager applet size hints to base it on the form factor, text width and applet size
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2024-05-05 22:20:05 +03:00
Ivailo Monev
32e9d58d95 generic: compiler warning fixes
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2024-05-03 20:53:39 +03:00
Ivailo Monev
e4aae07e96 plasma: delay the query of dict applet instead of doing it on return/enter key
to be consistent with the launcher applet, it is also a bit of unexpected
behaviour

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2024-05-02 11:51:31 +03:00
Ivailo Monev
5d5c792226 generic: adjust to KIO changes
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2024-05-02 02:38:25 +03:00
Ivailo Monev
1dfcde2841 plasma: set the opacity of TasksSvg to zero before showing it
to smooth the transition

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2024-05-01 07:41:47 +03:00
Ivailo Monev
b5901bd578 plasma: animate the hover of tasks applet
same bits as for the pager applet

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2024-05-01 07:37:09 +03:00
Ivailo Monev
2a2e7d649f plasma: animate the hover of pager applet
beauty!

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2024-05-01 07:21:50 +03:00
Ivailo Monev
10db75714d plasma: return the animation pointer from LauncherWidget::animateFadeIn()
otherwise the animation pointers remain null and a new animation is created
every time

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2024-04-30 09:53:10 +03:00
Ivailo Monev
d961875421 kdialog: remove unused notification data
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2024-04-30 06:44:45 +03:00
Ivailo Monev
f6c8ee983d plasma: tweak the system-monitor applet size
now that it is fixed size the widgets have to have space to fit text in

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2024-04-30 00:43:09 +03:00
Ivailo Monev
4f255a3da6 plasma: automatically manage the size of system-monitor applet
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2024-04-29 13:41:15 +03:00
Ivailo Monev
aef7f6c1c3 plasma: take the dots into account when painting text in system-monitor applet
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2024-04-29 13:10:57 +03:00
Ivailo Monev
cafb6f2160 plasma: hide or show the tasks applet icons when task visibility on desktops changes
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2024-04-26 03:49:07 +03:00
Ivailo Monev
36bc690df1 generic: adjust to shortcut changes
notice how the use of primary shortcut only disappears

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2024-04-24 10:25:20 +03:00
Ivailo Monev
f4cec56a9c plasma: check if the plain text is empty in notes applet
because there may be rich-text (even if not visible) in the widget

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2024-04-24 01:08:05 +03:00
Ivailo Monev
cc803d408c plasma: paint text with the plasma theme color in pager applet
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2024-04-23 07:11:20 +03:00
Ivailo Monev
514c7eb0f1 plasma: implement drop for notes applet
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2024-04-23 06:04:39 +03:00
Ivailo Monev
4cdf2661ea plasma: different take on user icon update
this make it rely on the modification time of the face icon for detecting
a change in the icon

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2024-04-21 17:52:17 +03:00
Ivailo Monev
5f2df7ae2c plasma: set the preferred size of lockout applet widgets
because the panel containment, for example, resizes the applet to the
preferred size when the sizeHintChanged() signal is emitted. this makes the
applet stretch well in panels

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2024-04-21 06:21:36 +03:00
Ivailo Monev
16ce0e0ea5 plasma: adjust the font point size based on form factor in digital-clock applet
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2024-04-21 02:37:31 +03:00
Ivailo Monev
3fc2864950 plasma: pass the layout orientation to constructors instead of settting it in launcher applet
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2024-04-21 01:32:56 +03:00
Ivailo Monev
48be88b942 plasma: enable actions animation based on actions count in launcher applet
to make the LauncherWidget class more suitable for (potentially)
exporting it as part of libplasma

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2024-04-20 16:46:50 +03:00
Ivailo Monev
91f8438ebb plasma: deep-copy the KPluginInfo object in kAllowedRunners() function
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2024-04-20 16:38:06 +03:00
Ivailo Monev
b3cca47cd8 plasma: implement remove action for recent documents in launcher applet
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2024-04-20 16:36:25 +03:00
Ivailo Monev
a247ec40c2 plasma: update calendar and digital-clock applet tooltips conditionally
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2024-04-20 06:59:41 +03:00
Ivailo Monev
cc32c51f05 plasma: connect digital-clock applet to the KGlobalSettings::localeChanged() signal
because QEvent::LocaleChange or QEvent::LanguageChange may not be received,
also for the hints to be calculated correctly the clock string has to be
updated first

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2024-04-20 06:34:27 +03:00
Ivailo Monev
accd8f09c3 generic: drop support for locking
first thing first - that feature was not in the spec and still is not,
people fucked up at some level and now things like gnome-screensaver are
just deprecated, that is the bottom line

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2024-04-20 03:20:39 +03:00
Ivailo Monev
2cb0db0559 plasma: delay lock and switch actions by 500ms in launcher applet
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2024-04-19 21:01:14 +03:00
Ivailo Monev
3b86c8487a plasma: do not use global static for the notifications applet adaptors
because the adaptors are parented to the application instance for object
registration purpose the global static deleter double-deletes them

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2024-04-19 19:38:22 +03:00
Ivailo Monev
a01e20938e plasma: remove declaration of non-existing notifications applet widget signal
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2024-04-19 17:57:11 +03:00
Ivailo Monev
6098751eac plasma: remove unused members in notifications applet
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2024-04-19 17:28:17 +03:00
Ivailo Monev
6fa4b89140 plasma: remove unused variable in notifications applet
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2024-04-19 17:25:23 +03:00
Ivailo Monev
4a48518a00 plasma: remove unused member
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2024-04-19 17:19:55 +03:00
Ivailo Monev
07e7d318a7 plasma: implement drag for favorites in launcher applet
piece of cake with the custom widget class

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2024-04-19 09:02:12 +03:00
Ivailo Monev
6bdd5f3d39 plasma: delay launcher applet widget creation
for the scene to kick-in, otherwise even filters may not be installable

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2024-04-19 08:56:00 +03:00
Ivailo Monev
efac4d97cd plasma: implement drag for applications in launcher applet
also plugged leaks

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2024-04-19 07:39:50 +03:00
Ivailo Monev
dd0beee071 plasma: reload the runners configuration when setting the allowed runners from launcher applet
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2024-04-19 07:29:22 +03:00
Ivailo Monev
08b8a2fa84 plasma: reset the launcher applet state before leave action
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2024-04-19 03:53:57 +03:00
Ivailo Monev
0acb711df7 plasma: sync menu-related bits
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2024-04-19 03:43:43 +03:00
Ivailo Monev
4d240b63e4 plasma: launcher applet optimization
KServiceGroup has internal optimization for such cases

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2024-04-19 03:37:36 +03:00
Ivailo Monev
fc70ea0817 plasma: convert launcher applet method to static function
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2024-04-19 03:08:59 +03:00