feat: add featured wallpaper
This commit is contained in:
parent
027ab59ee5
commit
7fb9f3d88d
2 changed files with 6 additions and 2 deletions
BIN
assets/wallpaper.webp
Normal file
BIN
assets/wallpaper.webp
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 5.3 MiB |
|
|
@ -2,6 +2,7 @@ pragma ComponentBehavior: Bound
|
|||
|
||||
import QtQuick
|
||||
import QtQuick.Layouts
|
||||
import Quickshell
|
||||
import Caelestia.Components
|
||||
import Caelestia.Config
|
||||
import Caelestia.Models
|
||||
|
|
@ -71,10 +72,13 @@ PageBase {
|
|||
WallItem {
|
||||
imgHeight: Math.round(width * 0.3)
|
||||
radius: Tokens.rounding.extraLarge
|
||||
source: Wallpapers.current
|
||||
source: Quickshell.shellPath("assets/wallpaper.webp")
|
||||
text: qsTr("Featured wallpaper")
|
||||
fillLabel: false
|
||||
onClicked: ; // TODO
|
||||
onClicked: {
|
||||
Wallpapers.setWallpaper(Quickshell.shellPath("assets/wallpaper.webp"));
|
||||
root.nState.closeSubPage();
|
||||
}
|
||||
}
|
||||
|
||||
StyledText {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue