File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -41,15 +41,19 @@ type App struct {
4141 media * MediaServer
4242 widgetMode bool
4343 sliderWidget bool
44+ themesSlider bool
4445 focusTab string
4546}
4647
4748// IsWidgetMode returns true when running in --widget-blueprint mode.
4849func (a * App ) IsWidgetMode () bool { return a .widgetMode }
4950
50- // IsSliderWidget returns true when running in --widget-slider mode.
51+ // IsSliderWidget returns true when running in --widget-wallpaper- slider mode.
5152func (a * App ) IsSliderWidget () bool { return a .sliderWidget }
5253
54+ // IsThemesSlider returns true when running in --widget-themes-slider mode.
55+ func (a * App ) IsThemesSlider () bool { return a .themesSlider }
56+
5357// IsMacOS returns true when running on macOS.
5458func (a * App ) IsMacOS () bool { return runtime .GOOS == "darwin" }
5559
Original file line number Diff line number Diff line change 5858GUI options:
5959 aether --widget-blueprint Launch blueprint widget
6060 aether --widget-wallpaper-slider Launch wallpaper slider widget
61+ aether --widget-themes-slider Launch themes slider widget
6162 aether --tab <name> Open GUI with a specific tab focused
6263
6364Import commands:
Original file line number Diff line number Diff line change 5959 let activeTab = $derived (getActiveTab ());
6060 let widgetMode = $state (false );
6161 let sliderWidget = $state (false );
62+ let themesSlider = $state (false );
6263
6364 onMount (async () => {
6465 try {
65- const {IsWidgetMode, IsSliderWidget} = await import (
66+ const {IsWidgetMode, IsSliderWidget, IsThemesSlider } = await import (
6667 ' ../wailsjs/go/main/App'
6768 );
6869 widgetMode = await IsWidgetMode ();
6970 sliderWidget = await IsSliderWidget ();
71+ themesSlider = await IsThemesSlider ();
7072 } catch {}
71- if (widgetMode || sliderWidget ) return ; // Skip full app setup in widget mode
73+ if (widgetMode || sliderWidget || themesSlider ) return ;
7274
7375 // Focus a specific tab if requested via --tab flag
7476 try {
328330 <BlueprintWidget />
329331{:else if sliderWidget }
330332 <WallpaperSlider
333+ mode =" wallpapers"
334+ onclose ={async () => {
335+ const {Quit} = await import (' ../wailsjs/runtime/runtime' );
336+ Quit ();
337+ }}
338+ />
339+ {:else if themesSlider }
340+ <WallpaperSlider
341+ mode =" themes"
331342 onclose ={async () => {
332343 const {Quit} = await import (' ../wailsjs/runtime/runtime' );
333344 Quit ();
You can’t perform that action at this time.
0 commit comments