Skip to content

Commit

Permalink
feat(controler): add random change mottos and imanges option
Browse files Browse the repository at this point in the history
  • Loading branch information
hooozen committed Aug 13, 2022
1 parent d778942 commit bad5c16
Show file tree
Hide file tree
Showing 5 changed files with 473 additions and 210 deletions.
7 changes: 7 additions & 0 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,10 @@ window.wallpaperPropertyListener = {
if (properties.imageSwitchFrequency) {
images.setImageSwitchFrequency(properties.imageSwitchFrequency.value)
}
if (properties.imageSwitchOrder) {
images.setImageSwitchOrder(properties.imageSwitchOrder.value)
}


if (properties.customMottoEnable) {
mottos.setCustomMottoEnable(properties.customMottoEnable.value)
Expand All @@ -65,6 +69,9 @@ window.wallpaperPropertyListener = {
if (properties.mottoSwitchFrequency) {
mottos.setMottoSwitchFrequency(properties.mottoSwitchFrequency.value)
}
if (properties.mottoSwitchOrder) {
mottos.setMottoSwitchOrder(properties.mottoSwitchOrder.value)
}

if (properties.showClock) {
clock.setClockVisible(properties.showClock.value)
Expand Down
Loading

0 comments on commit bad5c16

Please sign in to comment.