Commit graph

690 commits

Author SHA1 Message Date
Ivailo Monev
6dc51d6c3e plasma: make tasks blink when tasks demand attention
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2024-05-19 04:37:53 +03:00
Ivailo Monev
e7ee7dde56 plasma: set notifications applet status before showing the popup
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2024-05-19 01:58:07 +03:00
Ivailo Monev
b22f41cdf6 plasma: adjust the notifications applet job widget size conditionally
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2024-05-18 03:37:11 +03:00
Ivailo Monev
23410fc396 plasma: focus the search widget whenever the launcher applet widget gains focus
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2024-05-17 07:25:06 +03:00
Ivailo Monev
ac98f37023 plasma: use system-run icon for the widget that opens the job destination in notifications applet
because the destination may or may not be a directory

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2024-05-16 03:10:28 +03:00
Ivailo Monev
62e3280048 plasma: disengage the sensor manager in system-monitor applet
KSGRD::SensorMgr does not do it automatically

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2024-05-12 12:01:05 +03:00
Ivailo Monev
957da2bb43 generic: adjust to KRun changes
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2024-05-12 03:22:02 +03:00
Ivailo Monev
6058479e6f generic: preperations for KRun changes
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2024-05-11 04:03:33 +03:00
Ivailo Monev
2538f86984 plasma: position multiple net monitors correctly in system-monitor applet
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2024-05-10 13:25:39 +03:00
Ivailo Monev
67bbb46469 plasma: handle numbered loopback interfaces in system-monitor applet
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2024-05-10 13:16:07 +03:00
Ivailo Monev
7a09a3a652 plasma: temporary disconnect bookmark manager signals the first time launcher applet is created
fixes deadlock since bb574694b1

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2024-05-10 12:39:39 +03:00
Ivailo Monev
063f5e745e plasma: use Plasma::ToolTipManager for the lockout applet tooltips
because regular tooltips are not shown when the applet is in panel for
example

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2024-05-10 11:52:19 +03:00
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