-
Notifications
You must be signed in to change notification settings - Fork 230
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
luci-app-argon-config: adapt to theme changes
- Loading branch information
Showing
3 changed files
with
57 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 14 additions & 4 deletions
18
applications/luci-app-argon-config/root/etc/uci-defaults/luci-argon-config
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,24 @@ | ||
#!/bin/sh | ||
|
||
bing_background="$(uci -q get "argon.@global[0].bing_background")" | ||
[ -n "$bing_background" ] || exit 0 | ||
[ $(uci -q get "argon.@global[0].bg_mode") ] && exit 0 | ||
|
||
bing_background="$(uci -q get "argon.@global[0].bing_background")" | ||
if [ "$bing_background" = "1" ]; then | ||
uci -q set "argon.@global[0].online_wallpaper"="bing" | ||
uci -q del "argon.@global[0].bing_background" | ||
elif [ "$bing_background" = "0" ]; then | ||
uci -q del "argon.@global[0].bing_background" | ||
fi | ||
|
||
online_wallpaper="$(uci -q get "argon.@global[0].online_wallpaper")" | ||
if [ ! "$online_wallpaper" ]; then | ||
uci -q set "argon.@global[0].bg_mode"="local_media" | ||
elif [ "$online_wallpaper" = "none" ]; then | ||
uci -q set "argon.@global[0].bg_mode"="local_media" | ||
uci -q del "argon.@global[0].online_wallpaper" | ||
else | ||
uci -q set "argon.@global[0].online_wallpaper"="none" | ||
uci -q set "argon.@global[0].bg_mode"="online_wallpaper" | ||
fi | ||
uci -q delete "argon.@global[0].bing_background" | ||
uci -q commit "argon" | ||
|
||
exit 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters