Commit ac3467a7 authored by Tanbir Jishan's avatar Tanbir Jishan 💬 Committed by Nate Graham
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
......@@ -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
}
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment