fix: hide nexus wall preview when wall disabled

This commit is contained in:
2 * r + 2 * t 2026-06-05 01:39:36 +10:00
parent ab3f3e2376
commit eed3c712da

View file

@ -43,6 +43,46 @@ ColumnLayout {
color: Colours.tPalette.m3surfaceContainer color: Colours.tPalette.m3surfaceContainer
radius: Tokens.rounding.large radius: Tokens.rounding.large
Loader {
anchors.centerIn: parent
opacity: Config.background.wallpaperEnabled ? 0 : 1
active: opacity > 0
sourceComponent: ColumnLayout {
spacing: Tokens.spacing.extraSmall
MaterialIcon {
Layout.alignment: Qt.AlignHCenter
text: "hide_image"
color: Colours.palette.m3onSurfaceVariant
font: Tokens.font.icon.extraLarge
}
StyledText {
Layout.alignment: Qt.AlignHCenter
text: qsTr("Wallpaper disabled")
color: Colours.palette.m3onSurfaceVariant
font: Tokens.font.body.large
}
}
Behavior on opacity {
Anim {
type: Anim.SlowEffects
}
}
}
Item {
anchors.fill: parent
opacity: Config.background.wallpaperEnabled ? 1 : 0
Behavior on opacity {
Anim {
type: Anim.SlowEffects
}
}
Loader { Loader {
id: wallIndicatorLoader id: wallIndicatorLoader
@ -103,6 +143,7 @@ ColumnLayout {
} }
} }
} }
}
ButtonRow { ButtonRow {
Layout.alignment: Qt.AlignHCenter Layout.alignment: Qt.AlignHCenter