Skip to content

Commit a232d4a

Browse files
committed
Clean up
1 parent 49d2f1f commit a232d4a

4 files changed

Lines changed: 11 additions & 11 deletions

File tree

frontend/src/App.svelte

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,15 @@
7070
sliderWidget = await IsSliderWidget();
7171
themesSlider = await IsThemesSlider();
7272
} catch {}
73+
74+
// Show window now that the DOM is ready (started hidden to avoid white flash)
75+
if (!sliderWidget && !themesSlider) {
76+
try {
77+
const {WindowShow} = await import('../wailsjs/runtime/runtime');
78+
WindowShow();
79+
} catch {}
80+
}
81+
7382
if (widgetMode || sliderWidget || themesSlider) return;
7483
7584
// Focus a specific tab if requested via --tab flag
@@ -362,8 +371,6 @@
362371
<div class="h-full overflow-y-auto p-3">
363372
<OmarchyThemes />
364373
</div>
365-
{:else if activeTab === 'slider'}
366-
<WallpaperSlider />
367374
{/if}
368375
</main>
369376
<ActionBar />

frontend/src/lib/components/layout/HeaderBar.svelte

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -63,12 +63,6 @@
6363
// Paintbrush / Brush
6464
icon: '<path d="M18.37 2.63a2.12 2.12 0 0 1 3 3L14 13l-4 1 1-4z"/><path d="M9 14.5A3.5 3.5 0 0 0 5.5 18c-1.2 0-2.5.7-2.5 2 2 0 4.5-1 5.5-3.5"/>',
6565
},
66-
{
67-
id: 'slider',
68-
label: 'Slider',
69-
// Two parallel panels (/ /)
70-
icon: '<rect x="2" y="3" width="8" height="18" transform="skewX(-6)"/><rect x="14" y="3" width="8" height="18" transform="skewX(-6)"/>',
71-
},
7266
];
7367
</script>
7468

frontend/src/lib/stores/ui.svelte.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,7 @@ export type Tab =
44
| 'local'
55
| 'favorites'
66
| 'blueprints'
7-
| 'system'
8-
| 'slider';
7+
| 'system';
98

109
// --- Reactive state ---
1110
let activeTab = $state<Tab>('editor');

main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ func main() {
9696
Title: title,
9797
Width: width,
9898
Height: height,
99-
StartHidden: isSliderMode,
99+
StartHidden: true,
100100
Frameless: frameless,
101101
AlwaysOnTop: alwaysOnTop,
102102
AssetServer: &assetserver.Options{

0 commit comments

Comments
 (0)