Skip to content

A lightweight, macOS-style dock for Windows 11, with glass visuals, smooth magnification, and Genie effect.

fix: update Row component to support nested styling and enhance visual hierarchy; adjust default genie setting

CristianOlivera110914093a6ed
diff --git a/apps/settings/src/App.tsx b/apps/settings/src/App.tsx
index a171829..6cdb1ea 100644
--- a/apps/settings/src/App.tsx
+++ b/apps/settings/src/App.tsx
@@ -240,7 +240,7 @@ export function App() {
onChange={(magnification) => update({ magnification })}
/>
</Row>
- <Row label={t.magnifiedSize}>
+ <Row label={t.magnifiedSize} nested>
<Slider
label={t.magnifiedSize}
value={config.magnifiedSize}
@@ -269,7 +269,7 @@ export function App() {
/>
</Row>
{config.menuBar ? (
- <Row label={t.menuBarAutoHide} hint={t.menuBarAutoHideHint}>
+ <Row label={t.menuBarAutoHide} hint={t.menuBarAutoHideHint} nested>
<Toggle
label={t.menuBarAutoHide}
checked={config.menuBarAutoHide}
diff --git a/apps/settings/src/controls.tsx b/apps/settings/src/controls.tsx
index 4f7bf7a..833cde1 100644
--- a/apps/settings/src/controls.tsx
+++ b/apps/settings/src/controls.tsx
@@ -7,12 +7,13 @@ export function Card({ children }: { children: ReactNode }) {
interface RowProps {
label: string;
hint?: string;
+ nested?: boolean;
children: ReactNode;
}
-export function Row({ label, hint, children }: RowProps) {
+export function Row({ label, hint, nested = false, children }: RowProps) {
return (
- <div className="row">
+ <div className={nested ? "row row-nested" : "row"}>
<div className="row-text">
<span className="row-label">{label}</span>
{hint ? <span className="row-hint">{hint}</span> : null}
diff --git a/apps/settings/src/styles.css b/apps/settings/src/styles.css
index 99e2341..aa5ae2f 100644
--- a/apps/settings/src/styles.css
+++ b/apps/settings/src/styles.css
@@ -280,6 +280,33 @@ input:focus-visible {
border-top: 1px solid var(--line);
}
+.row-nested {
+ position: relative;
+ padding-left: 34px;
+ background: var(--hover);
+}
+
+.row-nested::before,
+.row-nested::after {
+ position: absolute;
+ content: "";
+ border-color: var(--line);
+}
+
+.row-nested::before {
+ top: 0;
+ bottom: 50%;
+ left: 21px;
+ border-left: 1px solid;
+}
+
+.row-nested::after {
+ top: 50%;
+ left: 21px;
+ width: 10px;
+ border-top: 1px solid;
+}
+
.row-text {
display: flex;
flex-direction: column;
diff --git a/crates/muelle-config/src/lib.rs b/crates/muelle-config/src/lib.rs
index 7311387..19e6cf4 100644
--- a/crates/muelle-config/src/lib.rs
+++ b/crates/muelle-config/src/lib.rs
@@ -118,7 +118,7 @@ impl Default for Config {
icon_size: 48,
magnification: true,
magnified_size: 77,
- genie: false,
+ genie: true,
menu_bar: true,
menu_bar_auto_hide: false,
active_app_click: ActiveAppClick::Minimize,
diff --git a/muelle/src/data/showcase.ts b/muelle/src/data/showcase.ts
index 18ef92a..f54d8a0 100644
--- a/muelle/src/data/showcase.ts
+++ b/muelle/src/data/showcase.ts
@@ -104,7 +104,7 @@ export const settingsDefaults = {
autoHide: false,
menuBar: true,
menuBarAutoHide: false,
- genie: false,
+ genie: true,
autostart: true,
} as const;