OSDN Git Service

kde/kde-workspace.git
8 months agoplasma: rename constant in MixerPlotter::paint() to match its meaning master
Ivailo Monev [Sun, 24 Sep 2023 13:55:04 +0000 (16:55 +0300)]
plasma: rename constant in MixerPlotter::paint() to match its meaning

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
8 months agoplasma: implement feature to paint icon from the visualizer
Ivailo Monev [Sun, 24 Sep 2023 13:12:31 +0000 (16:12 +0300)]
plasma: implement feature to paint icon from the visualizer

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
8 months agoplasma: mixer applet optimization
Ivailo Monev [Sun, 24 Sep 2023 12:22:07 +0000 (15:22 +0300)]
plasma: mixer applet optimization

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
8 months agoplasma: correct fog icon matching in kDisplayIcon() function
Ivailo Monev [Sun, 24 Sep 2023 11:59:16 +0000 (14:59 +0300)]
plasma: correct fog icon matching in kDisplayIcon() function

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
8 months agoplasma: set the longitude and latitude values to the custom values when that should...
Ivailo Monev [Sun, 24 Sep 2023 11:47:23 +0000 (14:47 +0300)]
plasma: set the longitude and latitude values to the custom values when that should be the case in weather applet

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
8 months agoplasma: safety-net for the weather applet
Ivailo Monev [Sun, 24 Sep 2023 11:13:22 +0000 (14:13 +0300)]
plasma: safety-net for the weather applet

KIO::StoredTransferJob really should have option for such cases so that the
data is rejected earlier and transfer aborted

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
8 months agoplasma: add reference for the weather applet hack
Ivailo Monev [Sun, 24 Sep 2023 10:49:13 +0000 (13:49 +0300)]
plasma: add reference for the weather applet hack

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
8 months agoplasma: KWeatherData::toString() optimization
Ivailo Monev [Sun, 24 Sep 2023 10:22:29 +0000 (13:22 +0300)]
plasma: KWeatherData::toString() optimization

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
8 months agoplasma: show a message when weather job fails
Ivailo Monev [Sun, 24 Sep 2023 10:18:33 +0000 (13:18 +0300)]
plasma: show a message when weather job fails

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
8 months agoplasma: handle day change in weather applet
Ivailo Monev [Sun, 24 Sep 2023 10:05:56 +0000 (13:05 +0300)]
plasma: handle day change in weather applet

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
8 months agoplasma: remove TODO related to mixer applet
Ivailo Monev [Sun, 24 Sep 2023 09:20:34 +0000 (12:20 +0300)]
plasma: remove TODO related to mixer applet

see the following commit in kdelibs repo:
4f56e99b9a0c33153f4a3de49d50236ba80500ee

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
8 months agoplasma: do not warn from KWeatherData::fromString() when the data is empty
Ivailo Monev [Sun, 24 Sep 2023 08:51:24 +0000 (11:51 +0300)]
plasma: do not warn from KWeatherData::fromString() when the data is empty

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
8 months agoplasma: credit myself for the weather applet
Ivailo Monev [Sat, 23 Sep 2023 23:19:44 +0000 (02:19 +0300)]
plasma: credit myself for the weather applet

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
8 months agoplasma: hack for incomplete day-zero weather data
Ivailo Monev [Sat, 23 Sep 2023 22:58:07 +0000 (01:58 +0300)]
plasma: hack for incomplete day-zero weather data

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
8 months agoplasma: set the minimum size and size policy of the mixer applet information label
Ivailo Monev [Sat, 23 Sep 2023 20:34:52 +0000 (23:34 +0300)]
plasma: set the minimum size and size policy of the mixer applet information label

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
8 months agoplasma: rename variable weather applet variable for consistency
Ivailo Monev [Sat, 23 Sep 2023 20:34:05 +0000 (23:34 +0300)]
plasma: rename variable weather applet variable for consistency

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
8 months agoplasma: kill geo and weather jobs before starting one
Ivailo Monev [Sat, 23 Sep 2023 19:46:14 +0000 (22:46 +0300)]
plasma: kill geo and weather jobs before starting one

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
8 months agoplasma: separate country with dash in weather applet
Ivailo Monev [Sat, 23 Sep 2023 19:11:04 +0000 (22:11 +0300)]
plasma: separate country with dash in weather applet

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
8 months agoplasma: check if the icon is empty first in kDisplayCondition() function
Ivailo Monev [Sat, 23 Sep 2023 19:07:27 +0000 (22:07 +0300)]
plasma: check if the icon is empty first in kDisplayCondition() function

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
8 months agoplasma: set the mixer applet tab widgets contents margins to zero
Ivailo Monev [Sat, 23 Sep 2023 18:55:13 +0000 (21:55 +0300)]
plasma: set the mixer applet tab widgets contents margins to zero

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
8 months agoplasma: hide the weather applet latitude and longitude configuration widgets conditio...
Ivailo Monev [Sat, 23 Sep 2023 18:39:11 +0000 (21:39 +0300)]
plasma: hide the weather applet latitude and longitude configuration widgets conditionally

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
8 months agoplasma: tweak the minimum weather applet size
Ivailo Monev [Sat, 23 Sep 2023 18:34:17 +0000 (21:34 +0300)]
plasma: tweak the minimum weather applet size

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
8 months agoplasma: display links for the used services
Ivailo Monev [Sat, 23 Sep 2023 18:18:29 +0000 (21:18 +0300)]
plasma: display links for the used services

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
8 months agoplasma: setup tooltip for the weather applet
Ivailo Monev [Sat, 23 Sep 2023 17:56:02 +0000 (20:56 +0300)]
plasma: setup tooltip for the weather applet

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
8 months agoplasma: setup the location widget when creating weather applet configuration interface
Ivailo Monev [Sat, 23 Sep 2023 17:15:07 +0000 (20:15 +0300)]
plasma: setup the location widget when creating weather applet configuration interface

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
8 months agoplasma: implement location based on timezone option for weather applet
Ivailo Monev [Sat, 23 Sep 2023 16:35:44 +0000 (19:35 +0300)]
plasma: implement location based on timezone option for weather applet

continuation of the fix for:
https://github.com/fluxer/katana/issues/26

except this time the fix is to do it from scratch

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
8 months agoplasma: correct WeatherWidget method naming
Ivailo Monev [Sat, 23 Sep 2023 15:12:53 +0000 (18:12 +0300)]
plasma: correct WeatherWidget method naming

oh, yes - I coded that till the early morning, half-asleep..

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
8 months agoplasma: implement configuration interface for weather applet
Ivailo Monev [Sat, 23 Sep 2023 14:49:46 +0000 (17:49 +0300)]
plasma: implement configuration interface for weather applet

the position (latitude and longitude) configuration interface while
working as intended has to be a bit less advanced tho and is something I
am thinking how to design (i.e. subject to change)

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
8 months agoplasma: add script to extract translations for the weather applet
Ivailo Monev [Sat, 23 Sep 2023 13:50:07 +0000 (16:50 +0300)]
plasma: add script to extract translations for the weather applet

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
8 months agoplasma: merge graphicswidgets into plasmacomponents
Ivailo Monev [Sat, 23 Sep 2023 13:25:14 +0000 (16:25 +0300)]
plasma: merge graphicswidgets into plasmacomponents

the widgets that graphicswidgets provides are actually all based on
plasma classes (e.g. Plasma::BusyWidget) so having yet another import
for that does not benefit much

as for the Label type - Plasma::Label is registered

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
8 months agoplasma: remove unused plasmacomponents types
Ivailo Monev [Sat, 23 Sep 2023 13:01:51 +0000 (16:01 +0300)]
plasma: remove unused plasmacomponents types

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
8 months agoplasma: remove unused plasmacomponents types
Ivailo Monev [Sat, 23 Sep 2023 12:54:45 +0000 (15:54 +0300)]
plasma: remove unused plasmacomponents types

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
8 months agoplasma: weather applet reimplementation
Ivailo Monev [Fri, 22 Sep 2023 21:06:34 +0000 (00:06 +0300)]
plasma: weather applet reimplementation

moved from kde-extraapps (the desktop file was salvaged for the
translations), shows icons for both night and day unlike the old
applet:
https://ibb.co/0VsNKjV

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
8 months agoplasma: add spacer to the mixer applet when visualizer is disabled
Ivailo Monev [Fri, 22 Sep 2023 20:39:07 +0000 (23:39 +0300)]
plasma: add spacer to the mixer applet when visualizer is disabled

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
8 months agoplasma: update mixer applet sliders only on value change event
Ivailo Monev [Fri, 22 Sep 2023 18:30:51 +0000 (21:30 +0300)]
plasma: update mixer applet sliders only on value change event

again - the callback is only for external events so performance of the code
in it is not high priority!

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
8 months agoplasma: optimize mixer applet visualizer by allocating the buffer once, as a member
Ivailo Monev [Fri, 22 Sep 2023 18:18:48 +0000 (21:18 +0300)]
plasma: optimize mixer applet visualizer by allocating the buffer once, as a member

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
8 months agoplasma: stretch the visualizer to the available space of the mixer applet
Ivailo Monev [Fri, 22 Sep 2023 18:06:41 +0000 (21:06 +0300)]
plasma: stretch the visualizer to the available space of the mixer applet

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
8 months agoplasma: don't overuse "visualizer" in the mixer applet configuration
Ivailo Monev [Fri, 22 Sep 2023 17:27:38 +0000 (20:27 +0300)]
plasma: don't overuse "visualizer" in the mixer applet configuration

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
8 months agoplasma: add note about the mixer applet callback
Ivailo Monev [Fri, 22 Sep 2023 17:05:24 +0000 (20:05 +0300)]
plasma: add note about the mixer applet callback

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
8 months agoplasma: implement scale-factor option for the mixer applet visualizer
Ivailo Monev [Fri, 22 Sep 2023 17:03:16 +0000 (20:03 +0300)]
plasma: implement scale-factor option for the mixer applet visualizer

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
8 months agoplasma: the mixer visualizer is no longer experimental
Ivailo Monev [Fri, 22 Sep 2023 13:06:38 +0000 (16:06 +0300)]
plasma: the mixer visualizer is no longer experimental

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
8 months agoplasma: expand applet widgets from the minimum
Ivailo Monev [Fri, 22 Sep 2023 12:51:10 +0000 (15:51 +0300)]
plasma: expand applet widgets from the minimum

that does it

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
8 months agoplasma: pass the samples to the plotter in chunks in mixer applet
Ivailo Monev [Fri, 22 Sep 2023 12:05:52 +0000 (15:05 +0300)]
plasma: pass the samples to the plotter in chunks in mixer applet

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
8 months agoplasma: frame the mixer applet visualizer
Ivailo Monev [Fri, 22 Sep 2023 11:51:59 +0000 (14:51 +0300)]
plasma: frame the mixer applet visualizer

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
8 months agoplasma: use theme-agnostic color for the mixer applet visualization by default
Ivailo Monev [Fri, 22 Sep 2023 11:26:59 +0000 (14:26 +0300)]
plasma: use theme-agnostic color for the mixer applet visualization by default

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
8 months agoplasma: tweak the mixer applet poll interval for visualization
Ivailo Monev [Fri, 22 Sep 2023 11:20:11 +0000 (14:20 +0300)]
plasma: tweak the mixer applet poll interval for visualization

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
8 months agoplasma: implement options for the mixer applet visualizer
Ivailo Monev [Fri, 22 Sep 2023 11:05:56 +0000 (14:05 +0300)]
plasma: implement options for the mixer applet visualizer

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
8 months agoplasma: tweak mixer applet visualization
Ivailo Monev [Fri, 22 Sep 2023 01:42:11 +0000 (04:42 +0300)]
plasma: tweak mixer applet visualization

to show realtime data all the data from the PCM has to be drained (read
until there is no more), there is also the no real data quirck - when no
sound goes trough the PCM the samples are all 0.0 but sometimes when there
is data the samples are negative so as a special case a second list is
used to handle that

the nearly complete mixer applet now looks like this:
https://ibb.co/RyTbnzH

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
8 months agoplasma: experimental PCM visualization for mixer applet
Ivailo Monev [Thu, 21 Sep 2023 23:59:02 +0000 (02:59 +0300)]
plasma: experimental PCM visualization for mixer applet

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
8 months agoplasma: add dummy tab in mixer applet when there are no sound cards
Ivailo Monev [Thu, 21 Sep 2023 20:09:23 +0000 (23:09 +0300)]
plasma: add dummy tab in mixer applet when there are no sound cards

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
8 months agoplasma: do not set mixer applet as "failed to launch" when there are no sound cards
Ivailo Monev [Thu, 21 Sep 2023 19:30:56 +0000 (22:30 +0300)]
plasma: do not set mixer applet as "failed to launch" when there are no sound cards

setting it as "failed to launch" deletes child items and bad stuff happens

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
8 months agoplasma: setup tooltip for the mixer applet
Ivailo Monev [Thu, 21 Sep 2023 18:21:40 +0000 (21:21 +0300)]
plasma: setup tooltip for the mixer applet

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
8 months agoplasma: set notifications applet popup icon before creating the widget
Ivailo Monev [Thu, 21 Sep 2023 17:52:05 +0000 (20:52 +0300)]
plasma: set notifications applet popup icon before creating the widget

because the notifications widget (NotificationsWidget) may set the popup
icon

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
8 months agoplasma: better Plasma::TabBar hack for mixer applet
Ivailo Monev [Thu, 21 Sep 2023 17:37:53 +0000 (20:37 +0300)]
plasma: better Plasma::TabBar hack for mixer applet

one that does not break applet size restoration

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
8 months agoplasma: compare the element name too when changing volume in mixer applet
Ivailo Monev [Thu, 21 Sep 2023 16:28:31 +0000 (19:28 +0300)]
plasma: compare the element name too when changing volume in mixer applet

just in case, sliders carry channel info anyway

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
8 months agoplasma: k_alsa_element_callback() function optimization
Ivailo Monev [Thu, 21 Sep 2023 14:21:19 +0000 (17:21 +0300)]
plasma: k_alsa_element_callback() function optimization

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
8 months agoplasma: setup events callback for mixer applet
Ivailo Monev [Thu, 21 Sep 2023 14:11:16 +0000 (17:11 +0300)]
plasma: setup events callback for mixer applet

to update sliders when the volume is changed by means other than changing
the slider values (e.g. via `alsamixer`)

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
8 months agoplasma: set icons for the mixer applet tabs
Ivailo Monev [Thu, 21 Sep 2023 12:50:40 +0000 (15:50 +0300)]
plasma: set icons for the mixer applet tabs

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
8 months agoplasma: set mixer applet popup icon before creating its widget
Ivailo Monev [Thu, 21 Sep 2023 12:43:30 +0000 (15:43 +0300)]
plasma: set mixer applet popup icon before creating its widget

because MixerWidget may override the popup icon

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
8 months agoplasma: minor mixer applet optimization
Ivailo Monev [Thu, 21 Sep 2023 12:28:53 +0000 (15:28 +0300)]
plasma: minor mixer applet optimization

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
8 months agoplasma: filter duplicate mixers in mixer applet
Ivailo Monev [Thu, 21 Sep 2023 12:17:21 +0000 (15:17 +0300)]
plasma: filter duplicate mixers in mixer applet

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
8 months agoplasma: map more element names to icons in mixer applet
Ivailo Monev [Thu, 21 Sep 2023 11:56:46 +0000 (14:56 +0300)]
plasma: map more element names to icons in mixer applet

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
8 months agoMerge branch 'mixer'
Ivailo Monev [Thu, 21 Sep 2023 01:03:46 +0000 (04:03 +0300)]
Merge branch 'mixer'

8 months agoplasma: new mixer applet
Ivailo Monev [Wed, 20 Sep 2023 15:17:36 +0000 (18:17 +0300)]
plasma: new mixer applet

kmix replacement, most importantly - multi-channel!

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
8 months agoplasma: correct notifications applet author
Ivailo Monev [Wed, 20 Sep 2023 15:09:28 +0000 (18:09 +0300)]
plasma: correct notifications applet author

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
8 months agoplasma: setup calculator applet main layout contents margins
Ivailo Monev [Wed, 20 Sep 2023 11:23:53 +0000 (14:23 +0300)]
plasma: setup calculator applet main layout contents margins

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
8 months agoplasma: set the keyboard applet text font point-size according to the content size...
Ivailo Monev [Wed, 20 Sep 2023 11:03:13 +0000 (14:03 +0300)]
plasma: set the keyboard applet text font point-size according to the content size even for panels

because panels can be stretched to (more or less) half-desktop size

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
8 months agoplasma: set the minimum size of keyboard applet to twice the desktop icon size for...
Ivailo Monev [Wed, 20 Sep 2023 10:29:55 +0000 (13:29 +0300)]
plasma: set the minimum size of keyboard applet to twice the desktop icon size for non-panel form factor

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
8 months agoktouchpadenable: drop it
Ivailo Monev [Wed, 20 Sep 2023 09:23:43 +0000 (12:23 +0300)]
ktouchpadenable: drop it

the X11 synaptics driver is deprecated

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
8 months agoplasma: disallow calculator operators for zero
Ivailo Monev [Tue, 19 Sep 2023 19:19:06 +0000 (22:19 +0300)]
plasma: disallow calculator operators for zero

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
8 months agoplasma: remove redundant virtual NotificationsEngine::init() method
Ivailo Monev [Tue, 19 Sep 2023 17:52:40 +0000 (20:52 +0300)]
plasma: remove redundant virtual NotificationsEngine::init() method

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
8 months agokcrash: scratch the details dialog
Ivailo Monev [Tue, 19 Sep 2023 15:06:54 +0000 (18:06 +0300)]
kcrash: scratch the details dialog

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
8 months agoplasma: enable opening of external links for notifications applet
Ivailo Monev [Tue, 19 Sep 2023 14:54:32 +0000 (17:54 +0300)]
plasma: enable opening of external links for notifications applet

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
8 months agolibs: fix fallback in KDisplayManager::newSession()
Ivailo Monev [Mon, 18 Sep 2023 22:26:38 +0000 (01:26 +0300)]
libs: fix fallback in KDisplayManager::newSession()

SwitchToGreeter is method on the org.freedesktop.DisplayManager.Seat
interface not org.freedesktop.DisplayManager.Session

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
8 months agoplasma: update calculator applet font based on KGlobalSettings::kdisplayFontChanged...
Ivailo Monev [Mon, 18 Sep 2023 21:03:39 +0000 (00:03 +0300)]
plasma: update calculator applet font based on KGlobalSettings::kdisplayFontChanged() signal

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
8 months agoplasma: disallow adding more than one decimal in calculator applet
Ivailo Monev [Mon, 18 Sep 2023 20:58:04 +0000 (23:58 +0300)]
plasma: disallow adding more than one decimal in calculator applet

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
8 months agoplasma: reset calculator applet operator on equal operation
Ivailo Monev [Mon, 18 Sep 2023 20:54:59 +0000 (23:54 +0300)]
plasma: reset calculator applet operator on equal operation

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
8 months agoplasma: calculator applet reimplementation
Ivailo Monev [Mon, 18 Sep 2023 18:20:31 +0000 (21:20 +0300)]
plasma: calculator applet reimplementation

the old applet was in the kde-extraapps but it is so simple to and with
zero dependencies so I've decided to move it to the kde-workspace repo
while at it. the locale import will not be used (the old implementation
was using it so it is simply dropped)

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
8 months agoplasma: remove unused plasmacomponents types
Ivailo Monev [Mon, 18 Sep 2023 18:00:28 +0000 (21:00 +0300)]
plasma: remove unused plasmacomponents types

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
8 months agoplasma: break once the UDI has been found in BatteryMonitorWidget::slotUpdateIcon()
Ivailo Monev [Mon, 18 Sep 2023 17:43:54 +0000 (20:43 +0300)]
plasma: break once the UDI has been found in BatteryMonitorWidget::slotUpdateIcon()

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
8 months agoplasma: different take on job control for notifications applet
Ivailo Monev [Mon, 18 Sep 2023 17:04:35 +0000 (20:04 +0300)]
plasma: different take on job control for notifications applet

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
8 months agoplasma: implement job stop for notifications applet
Ivailo Monev [Mon, 18 Sep 2023 16:35:33 +0000 (19:35 +0300)]
plasma: implement job stop for notifications applet

the widget servers 3 things now - stop a job, open the destination and if
job error occures serve as indicator that it happened (the job error thing
being something the old implementation did not had)

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
8 months agoplasma: set Qt::X11BypassWindowManagerHint for the notifications applet widget
Ivailo Monev [Mon, 18 Sep 2023 15:40:09 +0000 (18:40 +0300)]
plasma: set Qt::X11BypassWindowManagerHint for the notifications applet widget

as documented in Plasma::PopupApplet documentation

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
8 months agoplasma: show the notifications applet popup only on new notification
Ivailo Monev [Mon, 18 Sep 2023 15:24:38 +0000 (18:24 +0300)]
plasma: show the notifications applet popup only on new notification

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
8 months agoplasma: remove newspaper containment
Ivailo Monev [Mon, 18 Sep 2023 13:31:58 +0000 (16:31 +0300)]
plasma: remove newspaper containment

I drop widget in one cell the containment puts it in other event tho
the correct cell is highlighted - ok..

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
8 months agoplasma: remove redundant NotificationsWidget destructor
Ivailo Monev [Mon, 18 Sep 2023 13:28:25 +0000 (16:28 +0300)]
plasma: remove redundant NotificationsWidget destructor

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
8 months agoplasma: do not call Plasma::PopupApplet::showPopup() if the popup was shown before...
Ivailo Monev [Mon, 18 Sep 2023 12:44:57 +0000 (15:44 +0300)]
plasma: do not call Plasma::PopupApplet::showPopup() if the popup was shown before the ping

because Plasma::PopupApplet::showPopup() starts internal timer that will
hide it

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
8 months agoplasma: use image with less colors for the notifications applet popup icon
Ivailo Monev [Mon, 18 Sep 2023 12:40:47 +0000 (15:40 +0300)]
plasma: use image with less colors for the notifications applet popup icon

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
8 months agoplasma: set the _k_desturl property for the open widget of the notifications applet
Ivailo Monev [Mon, 18 Sep 2023 11:43:20 +0000 (14:43 +0300)]
plasma: set the _k_desturl property for the open widget of the notifications applet

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
8 months agoplasma: connect the notifications applet animations directly to QObject::deleteLater...
Ivailo Monev [Mon, 18 Sep 2023 11:38:45 +0000 (14:38 +0300)]
plasma: connect the notifications applet animations directly to QObject::deleteLater() slot

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
8 months agoplasma: fade the notifications applet frames on removal
Ivailo Monev [Mon, 18 Sep 2023 11:17:05 +0000 (14:17 +0300)]
plasma: fade the notifications applet frames on removal

geometry may be animated aswell in the future

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
8 months agoplasma: manually delete the buttons for applications actions on frame removal
Ivailo Monev [Mon, 18 Sep 2023 10:23:33 +0000 (13:23 +0300)]
plasma: manually delete the buttons for applications actions on frame removal

to prevent signals delivery mostly

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
8 months agoplasma: parent the notifications services to the widgets
Ivailo Monev [Mon, 18 Sep 2023 10:07:00 +0000 (13:07 +0300)]
plasma: parent the notifications services to the widgets

because the frames may be deleted at any time

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
8 months agoplasma: trigger the notifications actions on button release
Ivailo Monev [Mon, 18 Sep 2023 10:06:15 +0000 (13:06 +0300)]
plasma: trigger the notifications actions on button release

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
8 months agoplasma: invoke the application notifications remove widget signal via single-shot...
Ivailo Monev [Mon, 18 Sep 2023 09:37:50 +0000 (12:37 +0300)]
plasma: invoke the application notifications remove widget signal via single-shot timer

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
8 months agoplasma: notifications applet review
Ivailo Monev [Mon, 18 Sep 2023 09:11:44 +0000 (12:11 +0300)]
plasma: notifications applet review

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
8 months agoplasma: adjust the widgets too after frames size adjustment in notifications applet
Ivailo Monev [Mon, 18 Sep 2023 08:39:02 +0000 (11:39 +0300)]
plasma: adjust the widgets too after frames size adjustment in notifications applet

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
8 months agoplasma: use sunken frame shadow for the frames in devicenotifier and notifications...
Ivailo Monev [Mon, 18 Sep 2023 08:16:10 +0000 (11:16 +0300)]
plasma: use sunken frame shadow for the frames in devicenotifier and notifications applet

to match the shadow of Plasma::WidgetExplorer

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
8 months agoplasma: devicenotifier applet optimization
Ivailo Monev [Sun, 17 Sep 2023 18:48:35 +0000 (21:48 +0300)]
plasma: devicenotifier applet optimization

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
8 months agoplasma: notifications applet optimizations
Ivailo Monev [Sun, 17 Sep 2023 18:43:13 +0000 (21:43 +0300)]
plasma: notifications applet optimizations

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>