Skip to content

Commit e9fd7be

Browse files
committed
add show menu bar option
1 parent 42f4b4a commit e9fd7be

1 file changed

Lines changed: 12 additions & 1 deletion

File tree

frontend/preview/previews/tabbar.preview.tsx

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,7 @@ function TabBarPreviewInner({ platform, setPlatform }: TabBarPreviewInnerProps)
186186
const loadBadgesEnv = useWaveEnv<LoadBadgesEnv>();
187187
const [showConfigErrors, setShowConfigErrors] = useState(true);
188188
const [hideAiButton, setHideAiButton] = useState(false);
189+
const [showMenuBar, setShowMenuBar] = useState(false);
189190
const [isFullScreen, setIsFullScreen] = useAtom(env.atoms.isFullScreen);
190191
const [zoomFactor, setZoomFactor] = useAtom(env.atoms.zoomFactorAtom);
191192
const [fullConfig, setFullConfig] = useAtom(env.atoms.fullConfigAtom);
@@ -202,10 +203,11 @@ function TabBarPreviewInner({ platform, setPlatform }: TabBarPreviewInnerProps)
202203
settings: {
203204
...(prev?.settings ?? {}),
204205
"app:hideaibutton": hideAiButton,
206+
"window:showmenubar": showMenuBar,
205207
},
206208
configerrors: showConfigErrors ? MockConfigErrors : [],
207209
}));
208-
}, [hideAiButton, setFullConfig, showConfigErrors]);
210+
}, [hideAiButton, showMenuBar, setFullConfig, showConfigErrors]);
209211

210212
return (
211213
<div className="flex w-full flex-col gap-6">
@@ -254,6 +256,15 @@ function TabBarPreviewInner({ platform, setPlatform }: TabBarPreviewInnerProps)
254256
/>
255257
Hide Wave AI button
256258
</label>
259+
<label className="flex items-center gap-2 text-xs text-muted">
260+
<input
261+
type="checkbox"
262+
checked={showMenuBar}
263+
onChange={(event) => setShowMenuBar(event.target.checked)}
264+
className="cursor-pointer"
265+
/>
266+
Show menu bar
267+
</label>
257268
<label className="flex items-center gap-2 text-xs text-muted">
258269
<input
259270
type="checkbox"

0 commit comments

Comments
 (0)