Fushan Wen
523936395d
shell: add new property `usedInAccentColor`
...
It will be used to indicate whether the desktop is used in accent color
extraction.
CCBUG: 456038
4 years ago
Fushan Wen
17774bc4c6
Revert "Prevent panel going out of screen boundaries"
...
After the culprit has been found, the hack is not needed anymore.
This reverts commit 8cfd0464c1 .
CCBUG: 438114
(cherry picked from commit 68ed1677ac )
4 years ago
Fushan Wen
0742227e82
shell: avoid crash after waking up from sleep
...
The panel was removed by a timer, which can cause null QScreen pointer.
BUG: 455328
FIXED-IN: 5.25.3
(cherry picked from ffadcb3428 )
4 years ago
Fushan Wen
45b2bc87a7
shell: add more mimetypes in WallpaperPackage
4 years ago
Fushan Wen
fd3ef7c318
shell: add images_dark definition in WallpaperPackage
4 years ago
Fushan Wen
b9a3005f39
Restore old applet configuration after switching to alternative
...
In task manager, switching between icon task manager and text task manager
loses the old settings, which is inconvenient. This copies the old
configuration to the new applet to fix that behavior.
BUG: 355588
FIXED-IN: 5.26
4 years ago
Fushan Wen
871d6104d3
shell/scripting: call `flushPendingConstraintsEvents` in `setLocation`
...
After location is set, one layout script will usually start adding widgets.
It's required to emit formFactorChanged() to update plasmoid.formFactor bindings
in QML side to avoid Layout issues.
See isHorizontal in plasma-desktop/containments/panel/contents/ui/main.qml
4 years ago
Fushan Wen
a5165fb6e6
shell: preserve wallpaper type after changing desktop layout
...
restore(...) will set the wallpaper type from the value of key "wallpaperplugin".
BUG: 454597
FIXED-IN: 5.24.6
4 years ago
Fushan Wen
234d69b3d5
shell: pass hint by const reference
...
Function parameter 'hint' should be passed by const reference. (CWE-398)
4 years ago
Fushan Wen
cd4c0f450b
shell: adjust available edge order to match the default layout.js
4 years ago
Fushan Wen
3ff3cea11b
shell/scripting: don't set formFactor again
...
The formFactor has been set, either by `ShellCorona::addPanel` or the
ctor of `ContainmentPrivate::ContainmentPrivate`, so it's redundant to
set the default value here again, or the panel will be added to the top
edge again and again.
4 years ago
Xaver Hugl
401165921c
port to C++ smart pointers where possible
4 years ago
Fushan Wen
47acfaff51
shell: fix pressing enter not activating the new window
...
In panelview.cpp, the old window focus is restored when switching to
Passive status. This fixes the behavior by setting the panel status to a
status that is not AcceptingInputStatus.
BUG: 454729
CCBUG: 352476
FIXED-IN: 5.25
4 years ago
Fushan Wen
53fdac77ec
shell/panelview: restore old window focus when panel loses focus
...
CCBUG: 453166
CCBUG: 352476
4 years ago
Fushan Wen
6eac53b6d0
shell/panelview: set passive status when pressing Escape key
...
CCBUG: 453166
CCBUG: 352476
4 years ago
Fushan Wen
3a16cbe7b0
shell/panelview: unfocus on the panel when clicking outside
...
When the panel is focused, clicking outside should make the panel
unfocused.
CCBUG: 453166
CCBUG: 352476
4 years ago
Fushan Wen
d2057d7174
shell/panelview: press shortcut to unfocus on the panel when it's in focused state
...
The second time pressing Meta+Alt+P, the panel should be unfocused.
CCBUG: 453166
CCBUG: 352476
4 years ago
Fushan Wen
bad07cde13
shell: move keyboard focus code from frontend to backend
...
It makes the code easier to be maintained across different platforms.
CCBUG: 453166
CCBUG: 352476
4 years ago
Fushan Wen
7761926a1b
shell: disconnect old `accentColorChanged` signal when primary screen is changed
...
Otherwise there will be many redundant signal bindings.
4 years ago
Fushan Wen
c6b01d7f9e
shell: use `std::find_if` in `ShellCorona::setContainmentTypeForScreen`
...
Consider using std::find_if algorithm instead of a raw loop. (CWE-398)
in shell/shellcorona.cpp:1614
4 years ago
Fushan Wen
470dcc511b
shell: use `std::copy_if` in `ShellCorona::panelsForScreen`
...
Consider using std::accumulate algorithm instead of a raw loop. (CWE-398)
in shell/shellcorona.cpp:1148
4 years ago
Fushan Wen
6f96fab365
Use `std::accumulate` in `ShellCorona::_availableScreenRegion`
...
Consider using std::accumulate algorithm instead of a raw loop. (CWE-398) in shell/shellcorona.cpp:1051
4 years ago
Volker Krause
74614801ae
Add various missing includes and link libraries
...
Those are no longer pulled in indirectly with KF deprecation level 5.94.
4 years ago
Alexander Lohnau
f3f8b5dcfc
Remove author data, name and description from package metadata files
...
We do not display this data anywhere and do not use it internally either.
Task: https://phabricator.kde.org/T15452
4 years ago
Niccolò Venerandi
a3943400d5
Implement floating panel support
...
Please refer to https://invent.kde.org/plasma/plasma-desktop/-/merge_requests/714
for explanation and discussion.
4 years ago
Laurent Montel
9756b911da
REmove duplicate header between header/file
4 years ago
Fushan Wen
cef441e467
shell: Fix memory leak after changing wallpaper plugin
...
KConfigLoader doesn't have a parent, and will cause memory leak after
the wallpaper plugin is changed.
4 years ago
l10n daemon script
a09776c06c
SVN_SILENT made messages (.desktop file) - always resolve ours
...
In case of conflict in i18n, keep the version of the branch "ours"
To resolve a particular conflict, "git checkout --ours path/to/file.desktop"
4 years ago
Tanbir Jishan
6eb2b52945
kcms/colors: Add an option to apply accent color from wallpaper
...
This adds an option to set the accent color from the current wallpaper.
The way it works is that it exposes some DBus calls; if a wallpaper plugin
supports wallpaper accent colors then it should say so by this DBus call
when starting up and also should say which wallpaper is being currently
used (for the purpose of extracting an accent color from it) or set an
accent color itself. After that it should keep declaring the wallpaper or
set accent color whenever wallpaper changes or whenever the plugin author
thinks it is appropriate to say so.
There is already an implementation of the color extracting algorithm which
the plugin can either use, or else set whatever accent color it wants. The
necessary DBus calls for the official image and wallpaper plugin are
implemented, so they should work out of the box.
BUG: 444676
FIXED-IN: 5.25
4 years ago
Fushan Wen
f994e1301f
shell/scripting: Consider current activity in `desktopForScreen`
...
This fixes "Change Wallpaper..." in System Settings unable to open the
config dialog when the current activity is not the default one.
BUG: 452561
4 years ago
l10n daemon script
100aa732fa
SVN_SILENT made messages (.desktop file) - always resolve ours
...
In case of conflict in i18n, keep the version of the branch "ours"
To resolve a particular conflict, "git checkout --ours path/to/file.desktop"
4 years ago
Fushan Wen
6a754b17a5
shell: Remove m_positionPaneltimer to avoid the toolbar from getting lost.
...
The delay causes the toolbar being unable to follow the panel sometimes.
CCBUG: 435240
4 years ago
Fushan Wen
9d08b9979f
shell: Fix panel sometimes getting shortened when dragging
...
`positionPanel()` must be called first to make sure formFactor is
updated, or `maxSize` will be incorrect.
BUG: 435240
4 years ago
Alexander Lohnau
b68b59dac6
Remove explicit QuickSettings init method call
...
This is now done as part of the plasma integration plugin.
Task: https://phabricator.kde.org/T12135
4 years ago
l10n daemon script
0024939c7a
SVN_SILENT made messages (.desktop file) - always resolve ours
...
In case of conflict in i18n, keep the version of the branch "ours"
To resolve a particular conflict, "git checkout --ours path/to/file.desktop"
4 years ago
Laurent Montel
d09854cbc0
Use directly std::chrono_literals
4 years ago
Fushan Wen
fa2241e24a
shell: Follow `ActivateWhenTypingOnDesktop` from KRunner
...
When the option is unchecked, typing on the desktop will not activate
KRunner.
FEATURE: 318538
FIXED-IN: 5.25
4 years ago
Alexander Lohnau
0de1ccf53e
Port away from KDeclarative::ConfigPropertyMap where possible
...
Because of the wallpaper interface from plasma-frameworks, we can not change
this during KF5. However we can use QQmlPropertyMap as the type, when we do not care
about the KConfig specific bits. Both KConfigPropertyMap and KDeclarative::ConfigPropertyMap
extend from this class.
Task: https://phabricator.kde.org/T12126
4 years ago
Volker Krause
aed2855844
Deal with QXcbWindowFunctions being gone in Qt6
...
This uses the same magic property approach as KCompletion and
Plasma Frameworks use instead.
4 years ago
Alexander Lohnau
248067fa5e
scriptengine: Port away from KServiceTypeTrader
...
Task: https://phabricator.kde.org/T15368
4 years ago
Volker Krause
c2576f8a1f
Adapt to Qt6's removal of Qt::X11Extras
4 years ago
l10n daemon script
1f3a932c5e
SVN_SILENT made messages (.desktop file) - always resolve ours
...
In case of conflict in i18n, keep the version of the branch "ours"
To resolve a particular conflict, "git checkout --ours path/to/file.desktop"
4 years ago
Laurent Montel
734f3084cf
Fix some clazy warnings
4 years ago
Volker Krause
a8006e8b0b
Adapt build system to also support building against Qt6
4 years ago
Volker Krause
0e0086a22e
QGuiApplication::setFallbackSessionManagementEnabled is gone in Qt6
...
There seems to be no equivalent for this.
4 years ago
Volker Krause
38c723e596
Use version-less Qt targets, variables and macros
...
Prepares for building against Qt6.
4 years ago
Volker Krause
fde7564493
Remove QQuickWindow::setClearBeforeRendering calls, gone in Qt6
...
We only set the default value anyway, so nothing lost here.
4 years ago
Volker Krause
b307cfeace
Add additional includes needed by Qt6
...
Also remove two unused includes gone in Qt6.
4 years ago
Volker Krause
bed81d6476
Adapt to Qt6 nativeEventFilter changes
4 years ago
Aleix Pol
eb98f01df6
ShellCorona: Use qCDebug(PLASMASHELL)
4 years ago