42 lines
1.1 KiB
Plaintext
42 lines
1.1 KiB
Plaintext
package put
|
|
|
|
import "fmt"
|
|
|
|
type WindowsWallpaperCheckboxData struct {
|
|
Checked bool
|
|
}
|
|
|
|
templ WindowsWallpaperCheckbox(data WindowsWallpaperCheckboxData) {
|
|
<div
|
|
x-data={ fmt.Sprintf(`{checked: %t}`, data.Checked) }
|
|
class="form-control"
|
|
>
|
|
<label
|
|
class="label cursor-pointer input input-bordered"
|
|
:class="{'input-secondary': checked}"
|
|
>
|
|
<span
|
|
class="label-text"
|
|
:class="{'text-secondary': checked}"
|
|
>Windows Wallpaper Mode</span>
|
|
<input
|
|
type="checkbox"
|
|
checked?={ data.Checked }
|
|
class="checkbox"
|
|
:class="{'checkbox-secondary': checked}"
|
|
name="windows_wallpaper_mode"
|
|
@change="checked = !checked"
|
|
value="1"
|
|
/>
|
|
</label>
|
|
<span
|
|
class="label-text pl-1 mt-2"
|
|
:class="{'text-secondary': checked}"
|
|
>
|
|
Windows Wallpaper Mode puts images for this device under one folder instead of split by subreddits.
|
|
This allows the user to target Windows Wallpaper to the whole image collections.
|
|
<span class="text-primary italic font-bold">Windows wallpaper mode cannot be changed after creation.</span>
|
|
</span>
|
|
</div>
|
|
}
|