mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2026-06-21 18:45:20 -04:00
feat(wallpaper): support configurable background color (#2671)
* feat(wallpaper): support configurable background color * chore(translations): update settings search index * revert(wallpaper): keep Pad naming instead of Center
This commit is contained in:
@@ -43,6 +43,11 @@ Variants {
|
||||
id: root
|
||||
anchors.fill: parent
|
||||
|
||||
Rectangle {
|
||||
anchors.fill: parent
|
||||
color: SettingsData.effectiveWallpaperBackgroundColor
|
||||
}
|
||||
|
||||
function encodeFileUrl(path) {
|
||||
if (!path)
|
||||
return "";
|
||||
@@ -137,6 +142,12 @@ Variants {
|
||||
function onWallpaperFillModeChanged() {
|
||||
root.invalidate();
|
||||
}
|
||||
function onWallpaperBackgroundColorModeChanged() {
|
||||
root.invalidate();
|
||||
}
|
||||
function onWallpaperBackgroundCustomColorChanged() {
|
||||
root.invalidate();
|
||||
}
|
||||
}
|
||||
|
||||
Connections {
|
||||
|
||||
Reference in New Issue
Block a user