feat(wallpaper): use dropdown and image button widgets

This commit is contained in:
Michael Aaron Murphy 2023-11-13 12:26:38 +01:00 • committed by Michael Murphy
parent 8175e8df97
commit dc9db64592
5 changed files with 184 additions and 117 deletions

View file

@ -30,7 +30,7 @@ desktop := appid + '.desktop'
desktop-src := 'resources' / desktop
desktop-dest := clean(rootdir / prefix) / 'share' / 'applications' / desktop
iconsdir := clean(rootdir / prefix) / 'share' / 'icons' / 'hicolor'
iconsdir := clean(rootdir / prefix) / 'share' / 'icons' / 'hicolor'
[private]
default: build-release
@ -75,11 +75,11 @@ install-file src dest: (install-cmd '-Dm0644' src dest)
install: (install-bin bin-src bin-dest) (install-file desktop-src desktop-dest)
find 'resources'/'default_schema' -type f -exec echo {} \; | rev | cut -d'/' -f-3 | rev | xargs -d '\n' -I {} install -Dm0644 'resources'/'default_schema'/{} {{default-schema-target}}/{}
find 'resources'/'icons' -type f -exec echo {} \; | rev | cut -d'/' -f-3 | rev | xargs -d '\n' -I {} install -Dm0644 'resources'/'icons'/{} {{iconsdir}}/{}
# Run the application for testing purposes
run *args:
env RUST_LOG=debug RUST_BACKTRACE=full cargo run --release {{args}}
@just resources/icons/install
# Run `cargo test`
test:
cargo test
@ -89,7 +89,7 @@ uninstall:
rm -rf {{bin-dest}} {{desktop-dest}}
find 'resources'/'default_schema' -type f -exec echo {} \; | rev | cut -d'/' -f-3 | rev | xargs -d '\n' -I {} rm -rf {{default-schema-target}}/{}
find 'resources'/'icons' -type f -exec echo {} \; | rev | cut -d'/' -f-3 | rev | xargs -d '\n' -I {} rm {{iconsdir}}/{}
# Vendor Cargo dependencies locally
vendor:
mkdir -p .cargo