Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Plasma
Plasma Desktop
Commits
ac3467a7
Commit
ac3467a7
authored
Apr 22, 2022
by
Tanbir Jishan
💬
Committed by
Nate Graham
Apr 22, 2022
Browse files
Notify about the current accent color
Required for
plasma-workspace!1325
parent
fc13ffb8
Pipeline
#166917
passed with stage
in 12 minutes and 12 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
desktoppackage/contents/views/Desktop.qml
View file @
ac3467a7
...
...
@@ -13,7 +13,7 @@ import org.kde.plasma.activityswitcher 1.0 as ActivitySwitcher
import
org
.
kde
.
plasma
.
shell
2.0
as
Shell
import
"
../activitymanager
"
import
"
../explorer
"
import
org
.
kde
.
kirigami
2.15
as
Kirigami
Item
{
id
:
root
...
...
@@ -63,6 +63,28 @@ Item {
id
:
kwindowsystem
}
Kirigami.ImageColors
{
id
:
wallpaperColors
source
:
root
.
containment
.
wallpaper
}
Connections
{
target
:
root
.
containment
.
wallpaper
function
onConfigurationChanged
()
{
colorsTimer
.
restart
()
}
function
onRepaintNeeded
()
{
colorsTimer
.
restart
();
}
}
Timer
{
id
:
colorsTimer
onTriggered
:
{
Qt
.
callLater
(
wallpaperColors
.
update
)
}
}
Timer
{
id
:
pendingUninstallTimer
// keeps track of the applets the user wants to uninstall
...
...
@@ -261,4 +283,10 @@ Item {
//configure the view behavior
desktop
.
windowType
=
Shell
.
Desktop
.
Desktop
;
}
Binding
{
target
:
desktop
property
:
"
accentColor
"
value
:
wallpaperColors
.
highlight
}
}
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment