Commit graph

582 commits

Author SHA1 Message Date
Ivailo Monev
17b5ffc92c plasma: deal with TODO related to sessions runner
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-08-31 20:51:02 +03:00
Ivailo Monev
97fd36efbd plasma: remove unused interface and declaration of non-existing Image::suspendStartup() method
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-08-31 19:39:17 +03:00
Ivailo Monev
9e65f09172 plasma: call KWindowListMenu constructor in WindowList::init()
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-08-31 18:24:48 +03:00
Ivailo Monev
0dc8347c49 generic: adjust to kparts changes
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-08-31 04:10:49 +03:00
Ivailo Monev
d53f503cad plasma: remove non-operational kickoff applet bits
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-08-31 03:02:55 +03:00
Ivailo Monev
e230b4cbc7 plasma: remove bogus opaque shutdowndialog image
whoever made that image from the source (see
plasma/desktoptheme/oxygen/dialogs/shutdowndialog.source.svgz
and plasma/desktoptheme/oxygen/dialogs/shutdowndialog.svgz) did not
remove everything but the moon and the moon picture object covers
the text in the shutdown dialog

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-08-30 19:58:28 +03:00
Ivailo Monev
66f6104da4 generic: replace QLabel with the new KPixmapWidget class
or how to optimize painting of pixmaps and icons

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-08-30 05:10:09 +03:00
Ivailo Monev
0d32557a65 plasma: QImageItem and QPixmapItem size getters optimizations
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-08-30 04:07:24 +03:00
Ivailo Monev
07c018707e plasma: CalendarApplet::paintIcon() optimization
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-08-30 04:05:21 +03:00
Ivailo Monev
5949b572bc khotkeys: drop it
the only use case is to launch ksnapshot which can be done by
plasma-desktop, some of the actions code is borked (notably window
matching, global and menu actions were working) and I have no
intention to fix it. even if fixed when a window (and thus possibly
application) key is grabbed there is a chance the window (application)
may want to grab the grabbed key and fail (i.e. grab conflict) so it
shall be left to the application to set what keys shall be global
(grabbed) hence the bits to start ksnapshot are moved to plasma-desktop

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-08-29 23:04:14 +03:00
Ivailo Monev
0121acd1ab klipper: set global shortctut for the "Open Klipper at Mouse Position" action
if it is not full Katana session neither plasma-desktop nor its systemtray
applet will setup the shortcut so its better done by klipper itself

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-08-29 03:53:02 +03:00
Ivailo Monev
5606f97af8 plasma: minor SystemTray::DBusSystemTrayProtocol::initRegisteredServices() optimization
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-08-28 04:35:31 +03:00
Ivailo Monev
5ce06c488b plasma: X11EmbedContainer::setBackgroundPixmap() optimization
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-08-26 21:29:11 +03:00
Ivailo Monev
f47177f876 generic: adjust to KNotification changes
some notification files, such as the style KCM one, were not even used

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-08-25 08:07:58 +03:00
Ivailo Monev
69f7efcce1 plasma: adjust batterymonitor applet to solid changes
there were solid enum changes and then some in this repo, see the
following commit in the kdelibs repo:
2e1544537da02c8e89bc08c59fd3d6e1d146ef8c

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-08-23 21:12:39 +03:00
Ivailo Monev
4584fab20b libs: remove non-operational TaskManager::GroupManager::TaskSortingStrategy::ActivitySorting enum
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-08-22 23:57:15 +03:00
Ivailo Monev
0104dd678a plasma: default to manual sorting in tasks applet
see:
bd84219d6a

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-08-22 23:51:30 +03:00
Ivailo Monev
186a7702e8 generic: adjust to KGlobalSettings changes
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-08-22 04:29:13 +03:00
Ivailo Monev
bd84219d6a plasma: default to manual sorting in tasks applet
like the icontasks applet

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-08-22 08:43:33 +03:00
Ivailo Monev
f00420a34a generic: preperations for kdelibs changes
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-08-19 19:47:34 +03:00
Ivailo Monev
ee10c1a6c3 plasma: add binding for KLocale::toLocale() method
requires e4a7b266fe5a266c76b00513314540b2172927d6 from kdelibs to function
properly

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-08-18 19:33:03 +03:00
Ivailo Monev
efe25546a1 plasma: remove unused battermonitor applet import
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-08-18 17:55:15 +03:00
Ivailo Monev
f1f6ae7a3e generic: replace X-KDE-StartupNotify with StartupNotify
X-KDE-StartupNotify is for compatibility and used as fallback (in case
StartupNotify is not set)

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-08-18 05:11:16 +03:00
Ivailo Monev
789d354b81 kcontrol: use BorderlessMaximizedWindows config key to decide the workspace form factor
disabling plasma-desktop should never be done for Katana session even tho
it can be done because it is started from XDG autostart file

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-08-16 14:21:07 +03:00
Ivailo Monev
340eaa77ef plasma: do not translate the wind directions from IonInterface::getWindDirectionIcon()
fixes weatherstation plasma applet not showing the wind image (wind_arrows)
when the locale is set to be one other than the default (C/en_US). note
that "N/A" is matched as untranslated string (e.g. in
kdeplasma-addons/applets/weather/weatherapplet.cpp) meaning more changes
may be required to fix other minor issues because "N/A" is translated in
several places

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-08-15 19:22:04 +03:00
Ivailo Monev
09744d81a3 generic: adjust to KDateTime removal
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-08-14 22:55:43 +03:00
Ivailo Monev
c68613d00b plasma: remove reference to non-existing source file
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-08-14 20:42:00 +03:00
Ivailo Monev
7b1e4b6b49 plasma: minor PanelAppletOverlay::paintEvent() optimization
only for the case when the m_applet member is null

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-08-14 19:40:42 +03:00
Ivailo Monev
197af45155 plasma: use KImageIO::isSupported() to check if dropped URL can be set as wallpaper in folderview applet
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-08-14 16:49:15 +03:00
Ivailo Monev
dffe7d406d plasma: setup the system-monitor Kelvin limit based on the Celsius and Fahrenheit limits
the upper limit (384) is the Celsius upper limit (110) converted to Kelvin,
the lower limit is chosen such that it is twice the Fahrenheit lower
limit

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-08-12 21:38:44 +03:00
Ivailo Monev
e661a0c257 plasma: implement configuration interface for the system-monitor applet temperature unit
includes support for Kelvin unit

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-08-12 21:00:12 +03:00
Ivailo Monev
dd9b34f470 plasma: initialize SM::Plotter::m_showAnalogValue member
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-08-12 19:52:32 +03:00
Ivailo Monev
75c054d307 plasma: sync status notifier image serialization bits
with:
kdelibs/kdeui/notifications/kstatusnotifieritem.cpp

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-08-12 01:36:15 +03:00
Ivailo Monev
e6478758f6 plasma: use QImageReader to find the wallpaper image size, fallback to the actual image size
fixes thread-safety issue and reduces the memory usage slightly

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-08-12 01:00:36 +03:00
Ivailo Monev
4cd80db371 plasma: remove unused variable in PlacesEngine::sendData()
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-08-11 19:44:41 +03:00
Ivailo Monev
baf804e80b plasma: remove activities documentation
acitivities feature was dropped long ago

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-08-11 19:40:07 +03:00
Ivailo Monev
742415a699 plasma: avoid temporaries in ToolTipProxy::updateToolTip()
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-08-11 19:36:44 +03:00
Ivailo Monev
ce92bf96ed plasma: remove unused imports in tasks qml files
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-08-11 19:32:43 +03:00
Ivailo Monev
9ecc9988da plasma: remove non-operational ScriptEnv methods
the package structure for Plasma/JavascriptAddon is bogus - nothing
provides such files

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-08-11 19:09:46 +03:00
Ivailo Monev
cf6a2620c6 generic: remove dead and irrelevant links references
consider the mail references just as dead

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-08-10 15:44:43 +03:00
Ivailo Monev
ac19d657ae kwin: ensure there are no duplicate rules
because KStandardDirs::findAllResources() will return local and global
rules thus if there is a global and local rule file with the same name
there would be duplicates, using KStandardDirs::NoDuplicates flag will
not solve that because the rules are merged into the main kwinrulesrc
config

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-08-10 11:29:10 +03:00
Ivailo Monev
f254c44f7d Revert "plasma: use QColor::name() in Pager::updatePagerStyle()"
This reverts commit 3bb3d55a72.
2023-08-07 22:29:20 +03:00
Ivailo Monev
fa797f7dcd plasma: do not deep-copy the QMimeData formats in DeclarativeMimeData constructor
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-08-07 22:14:56 +03:00
Ivailo Monev
3bb3d55a72 plasma: use QColor::name() in Pager::updatePagerStyle()
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-08-07 22:13:19 +03:00
Ivailo Monev
d02e8c10af generic: log backtrace when applications that are automatically restarted crash
previously the KCrash::AutoRestart flag was overriding all other flags -
that is no longer the case

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-08-07 21:32:05 +03:00
Ivailo Monev
44970b29d8 plasma: partially revert f058709ed6
the systemtray applet automatically adds the applets that have
configuration entry in plasma-desktoprc but the applets configuration is
not saved by the systemtray applet

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-08-05 19:11:18 +03:00
Ivailo Monev
f058709ed6 plasma: create wallpaper containments for each screen by default
for reference:
https://github.com/fluxer/katana/issues/41

note that the config affects only new configurations (the config is
copied to the user config directory once layout is saved), also a logout
may be required when a screen is removed (that includes setting up extra
monitor to be copy of the primary display)

as for why it is done - a image and panel containment was created by the
default layout script (00-defaultLayout.js) which is no longer since
772d9ff219

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-08-05 17:41:18 +03:00
Ivailo Monev
6bff25a7b0 plasma: adjust notifications applet to KLocale changes
KLocale::formatDuration() does pretty much the same as what
KLocale::prettyFormatDuration() used to do

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-08-05 17:08:29 +03:00
Ivailo Monev
fb3c9c7b28 plasma: someone's typos
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-08-05 16:16:55 +03:00
Ivailo Monev
9c2fb0b928 plasma: match the untranslated terms as fallback in runners
see the previous commit

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-08-04 05:42:16 +03:00