Skip to content

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

feat: add repository link and enhance UI components

CristianOlivera13ea54ab7c920
diff --git a/CHANGELOG.md b/CHANGELOG.md
index eada9d3..f036a2c 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -10,6 +10,9 @@ copia la sección de la versión que se publica a la release de GitHub.
### English
+- Settings now illustrate Dock placement, island styles and Genie speeds, with
+ native keyboard-selectable options, clearer icons and shorter descriptions.
+ A permanent sidebar link opens Muelle on GitHub to explore and star the project.
- Settings → Dock → Position on screen: Left, Bottom or Right, as on macOS.
Bottom stays the default. On a side the dock runs top to bottom below the
menu bar, icons grow and show their names inward, menus, groups and window
@@ -77,6 +80,10 @@ copia la sección de la versión que se publica a la release de GitHub.
### Español
+- Ajustes incorpora vistas de la posición del Dock, los estilos de isla y la
+ velocidad del genio, con selección por teclado, iconos y textos más breves.
+ Un enlace fijo al pie del sidebar abre Muelle en GitHub para conocer y apoyar
+ el proyecto con una estrella.
- Ajustes → Dock → Posición en la pantalla: Izquierda, Abajo o Derecha, como
en macOS. Abajo sigue siendo la predeterminada. En un lateral el dock va de
arriba abajo bajo la barra superior, los iconos crecen y muestran su nombre
diff --git a/apps/settings/src-tauri/src/main.rs b/apps/settings/src-tauri/src/main.rs
index b99c86e..2eb0000 100644
--- a/apps/settings/src-tauri/src/main.rs
+++ b/apps/settings/src-tauri/src/main.rs
@@ -170,6 +170,17 @@ fn open_release_notes(url: String) -> Result<(), String> {
launcher::open(&url).map_err(|error| error.to_string())
}
+/// A fixed destination: this command cannot launch arbitrary frontend input.
+#[tauri::command]
+async fn open_repository() -> Result<(), String> {
+ tauri::async_runtime::spawn_blocking(|| {
+ launcher::open("https://github.com/crafter-station/Muelle")
+ .map_err(|error| error.to_string())
+ })
+ .await
+ .map_err(|error| error.to_string())?
+}
+
/// Downloads the signed installer and runs it; the installer stops the dock,
/// replaces both apps and starts the dock again. This process exits.
#[tauri::command]
@@ -286,7 +297,8 @@ fn main() {
pick_folder,
check_update,
install_update,
- open_release_notes
+ open_release_notes,
+ open_repository
])
.run(tauri::generate_context!());
if let Err(error) = result {
diff --git a/apps/settings/src/App.tsx b/apps/settings/src/App.tsx
index 977d756..e1c2f17 100644
--- a/apps/settings/src/App.tsx
+++ b/apps/settings/src/App.tsx
@@ -19,11 +19,13 @@ import {
installUpdate,
loadConfig,
openReleaseNotes,
+ openRepository,
pickFolder,
saveConfig,
setAutostart,
} from "./config";
-import { Card, Row, Segmented, Slider, SubRow, Toggle } from "./controls";
+import { Card, Row, Segmented, Slider, SubRow, Toggle, VisualChoices } from "./controls";
+import { DockPreview, IslandPreview, SettingIcon, SpeedPreview } from "./visuals";
import { type SectionId, SectionIcon } from "./icons";
import { UpdateBanner } from "./UpdateBanner";
import en from "./i18n/en.json";
@@ -91,6 +93,7 @@ export function App() {
const [version, setVersion] = useState("");
const [updateState, setUpdateState] = useState<UpdateState>({ kind: "checking" });
const [confirmingReset, setConfirmingReset] = useState(false);
+ const [projectError, setProjectError] = useState(false);
/** "Later" hides the banner until Settings is opened again. */
const [bannerDismissed, setBannerDismissed] = useState(false);
const pending = useRef<Partial<Config> | null>(null);
@@ -197,6 +200,10 @@ export function App() {
if (info.notes) openReleaseNotes(info.notes).catch(() => {});
}, []);
+ const showProject = useCallback(() => {
+ openRepository().then(() => setProjectError(false)).catch(() => setProjectError(true));
+ }, []);
+
// Two clicks: the first arms the button, the second resets. Pinned and
// recent apps stay; they belong to the user, not to the settings.
const reset = useCallback(() => {
@@ -215,6 +222,7 @@ export function App() {
if (!config) return <div className="window" />;
const t = textsFor(config.language);
+ const durationFormat = new Intl.NumberFormat(config.language === "auto" ? navigator.language : config.language);
const chooseFolder = () => {
pickFolder(config.shortcutsFolder)
.then((folder) => folder && update({ shortcutsFolder: folder }))
@@ -262,6 +270,15 @@ export function App() {
</NavItem>
))}
</nav>
+ <footer className="sidebar-footer">
+ <button type="button" className="project-link" onClick={showProject}>
+ <SettingIcon name="star" size={20} />
+ <span><strong>{t.githubTitle}</strong><span>{t.githubStar}</span></span>
+ <SettingIcon name="external" size={12} />
+ </button>
+ {projectError ? <p className="project-error" role="alert">{t.githubError}</p> : null}
+ <div className="sidebar-version"><span>Muelle</span><span>{version ? `v${version}` : ""}</span></div>
+ </footer>
</aside>
<main className="content">
@@ -283,79 +300,77 @@ export function App() {
<div className="content-body">
{section === "dock" ? (
<>
- <Card>
- <Row label={t.size}>
+ <Card title={t.groupAppearance}>
+ <VisualChoices<DockPosition>
+ label={t.dockPosition}
+ value={config.dockPosition}
+ options={[
+ { value: "left", label: t.dockPositionLeft, preview: <DockPreview position="left" iconSize={config.iconSize} /> },
+ { value: "bottom", label: t.dockPositionBottom, preview: <DockPreview position="bottom" iconSize={config.iconSize} /> },
+ { value: "right", label: t.dockPositionRight, preview: <DockPreview position="right" iconSize={config.iconSize} /> },
+ ]}
+ onChange={(dockPosition) => update({ dockPosition })}
+ />
+ <Row icon={<SettingIcon name="size" />} label={t.size}>
<Slider
label={t.size}
value={config.iconSize}
min={ICON_SIZE.min}
max={ICON_SIZE.max}
- before={t.small}
- after={t.large}
+ before={<SettingIcon name="indicators" size={14} />}
+ after={<SettingIcon name="indicators" size={22} />}
onChange={(iconSize) => update({ iconSize })}
/>
</Row>
- <Row label={t.magnification} hint={t.magnificationHint}>
+ <Row icon={<SettingIcon name="magnification" />} label={t.magnification} hint={t.magnificationHint}>
<Toggle
label={t.magnification}
checked={config.magnification}
onChange={(magnification) => update({ magnification })}
/>
</Row>
- <SubRow label={t.magnifiedSize} open={config.magnification}>
+ <SubRow icon={<SettingIcon name="magnification" />} label={t.magnifiedSize} open={config.magnification}>
<Slider
label={t.magnifiedSize}
value={config.magnifiedSize}
min={config.iconSize}
max={MAX_MAGNIFIED_SIZE}
- before={t.small}
- after={t.large}
+ before={<SettingIcon name="indicators" size={14} />}
+ after={<SettingIcon name="indicators" size={22} />}
onChange={(magnifiedSize) => update({ magnifiedSize })}
/>
</SubRow>
- <Row label={t.dockPosition}>
- <Segmented<DockPosition>
- label={t.dockPosition}
- value={config.dockPosition}
- options={[
- { value: "left", label: t.dockPositionLeft },
- { value: "bottom", label: t.dockPositionBottom },
- { value: "right", label: t.dockPositionRight },
- ]}
- onChange={(dockPosition) => update({ dockPosition })}
- />
- </Row>
</Card>
<Card title={t.groupBehavior}>
- <Row label={t.autoHide} hint={t.autoHideHint}>
+ <Row icon={<SettingIcon name="hide" />} label={t.autoHide} hint={t.autoHideHint}>
<Toggle
label={t.autoHide}
checked={config.autoHide}
onChange={(autoHide) => update({ autoHide })}
/>
</Row>
- <Row label={t.bounceOnOpen}>
+ <Row icon={<SettingIcon name="bounce" />} label={t.bounceOnOpen}>
<Toggle
label={t.bounceOnOpen}
checked={config.bounceOnOpen}
onChange={(bounceOnOpen) => update({ bounceOnOpen })}
/>
</Row>
- <Row label={t.mascot} hint={t.mascotHint}>
+ <Row icon={<SettingIcon name="mascot" />} label={t.mascot} hint={t.mascotHint}>
<Toggle
label={t.mascot}
checked={config.mascot}
onChange={(mascot) => update({ mascot })}
/>
</Row>
- <Row label={t.showIndicators}>
+ <Row icon={<SettingIcon name="indicators" />} label={t.showIndicators}>
<Toggle
label={t.showIndicators}
checked={config.showIndicators}
onChange={(showIndicators) => update({ showIndicators })}
/>
</Row>
- <Row label={t.showRecents} hint={t.showRecentsHint}>
+ <Row icon={<SettingIcon name="recents" />} label={t.showRecents} hint={t.showRecentsHint}>
<Toggle
label={t.showRecents}
checked={config.showRecents}
@@ -364,7 +379,7 @@ export function App() {
</Row>
</Card>
<Card>
- <Row label={t.shortcutsFolder} hint={config.shortcutsFolder ?? t.shortcutsFolderHint}>
+ <Row icon={<SettingIcon name="folder" />} label={t.shortcutsFolder} hint={config.shortcutsFolder ?? t.shortcutsFolderHint}>
<div className="push-group">
{config.shortcutsFolder ? (
<button type="button" className="push" onClick={() => update({ shortcutsFolder: null })}>
@@ -381,21 +396,22 @@ export function App() {
) : section === "windows" ? (
<>
<Card title={t.groupMinimize}>
- <Row label={t.genie} hint={t.genieHint}>
+ <Row icon={<SettingIcon name="genie" />} label={t.genie} hint={t.genieHint}>
<Toggle
label={t.genie}
checked={config.genie}
onChange={(genie) => update({ genie })}
/>
</Row>
- <SubRow label={t.genieSpeed} hint={t.genieSpeedHint} open={config.genie}>
- <Segmented<GenieSpeed>
+ <SubRow label={t.genieSpeed} open={config.genie} stacked>
+ <VisualChoices<GenieSpeed>
label={t.genieSpeed}
+ hideLabel
value={config.genieSpeed}
options={[
- { value: "normal", label: t.genieSpeedNormal },
- { value: "fast", label: t.genieSpeedFast },
- { value: "faster", label: t.genieSpeedFaster },
+ { value: "normal", label: t.genieSpeedNormal, preview: <SpeedPreview speed="normal" />, detail: `${durationFormat.format(0.5)} s` },
+ { value: "fast", label: t.genieSpeedFast, preview: <SpeedPreview speed="fast" />, detail: `${durationFormat.format(0.35)} s` },
+ { value: "faster", label: t.genieSpeedFaster, preview: <SpeedPreview speed="faster" />, detail: `${durationFormat.format(0.25)} s` },
]}
onChange={(genieSpeed) => update({ genieSpeed })}
/>
@@ -405,7 +421,7 @@ export function App() {
{t.genieOffAction}
</button>
</SubRow>
- <Row label={t.showMinimized} hint={t.showMinimizedHint}>
+ <Row icon={<SettingIcon name="windows" />} label={t.showMinimized} hint={t.showMinimizedHint}>
<Toggle
label={t.showMinimized}
checked={config.showMinimized}
@@ -417,28 +433,28 @@ export function App() {
) : section === "menubar" ? (
<>
<Card>
- <Row label={t.menuBarShow} hint={t.menuBarHint}>
+ <Row icon={<SettingIcon name="menu" />} label={t.menuBarShow} hint={t.menuBarHint}>
<Toggle
label={t.menuBarShow}
checked={config.menuBar}
onChange={(menuBar) => update({ menuBar })}
/>
</Row>
- <SubRow label={t.menuBarAutoHide} hint={t.menuBarAutoHideHint} open={config.menuBar}>
+ <SubRow icon={<SettingIcon name="hide" />} label={t.menuBarAutoHide} hint={t.menuBarAutoHideHint} open={config.menuBar}>
<Toggle
label={t.menuBarAutoHide}
checked={config.menuBarAutoHide}
onChange={(menuBarAutoHide) => update({ menuBarAutoHide })}
/>
</SubRow>
- <SubRow label={t.menuBarMusic} hint={t.menuBarMusicHint} open={config.menuBar}>
+ <SubRow icon={<SettingIcon name="music" />} label={t.menuBarMusic} hint={t.menuBarMusicHint} open={config.menuBar}>
<Toggle
label={t.menuBarMusic}
checked={config.menuBarMusic}
onChange={(menuBarMusic) => update({ menuBarMusic })}
/>
</SubRow>
- <SubRow label={t.aiUsage} hint={t.aiUsageHint} open={config.menuBar}>
+ <SubRow icon={<SettingIcon name="ai" />} label={t.aiUsage} hint={t.aiUsageHint} open={config.menuBar}>
<Toggle
label={t.aiUsage}
checked={config.aiUsage}
@@ -447,20 +463,21 @@ export function App() {
</SubRow>
<SubRow
label={t.islandStyle}
- hint={t.islandStyleHint}
+ stacked
open={config.menuBar && (config.menuBarMusic || config.aiUsage)}
>
- <Segmented<IslandStyle>
+ <VisualChoices<IslandStyle>
label={t.islandStyle}
+ hideLabel
value={config.menuBarIslandStyle}
options={[
- { value: "notch", label: t.islandStyleNotch },
- { value: "bubble", label: t.islandStyleBubble },
+ { value: "notch", label: t.islandStyleNotch, preview: <IslandPreview style="notch" /> },
+ { value: "bubble", label: t.islandStyleBubble, preview: <IslandPreview style="bubble" /> },
]}
onChange={(menuBarIslandStyle) => update({ menuBarIslandStyle })}
/>
</SubRow>
- <SubRow label={t.accessoryBattery} hint={t.accessoryBatteryHint} open={config.menuBar}>
+ <SubRow icon={<SettingIcon name="headphones" />} label={t.accessoryBattery} hint={t.accessoryBatteryHint} open={config.menuBar}>
<Toggle
label={t.accessoryBattery}
checked={config.accessoryBattery}
@@ -470,35 +487,35 @@ export function App() {
</Card>
{config.menuBar && (
<Card title={t.menuBarItems}>
- <Row label={t.menuBarBluetooth} hint={t.menuBarBluetoothHint}>
+ <Row icon={<SettingIcon name="bluetooth" />} label={t.menuBarBluetooth} hint={t.menuBarBluetoothHint}>
<Toggle
label={t.menuBarBluetooth}
checked={config.menuBarBluetooth}
onChange={(menuBarBluetooth) => update({ menuBarBluetooth })}
/>
</Row>
- <Row label={t.menuBarBatteryPercent} hint={t.menuBarBatteryPercentHint}>
+ <Row icon={<SettingIcon name="battery" />} label={t.menuBarBatteryPercent} hint={t.menuBarBatteryPercentHint}>
<Toggle
label={t.menuBarBatteryPercent}
checked={config.menuBarBatteryPercent ?? false}
onChange={(menuBarBatteryPercent) => update({ menuBarBatteryPercent })}
/>
</Row>
- <Row label={t.menuBarSearch} hint={t.menuBarSearchHint}>
+ <Row icon={<SettingIcon name="search" />} label={t.menuBarSearch} hint={t.menuBarSearchHint}>
<Toggle
label={t.menuBarSearch}
checked={config.menuBarSearch ?? true}
onChange={(menuBarSearch) => update({ menuBarSearch })}
/>
</Row>
- <Row label={t.menuBarTaskView} hint={t.menuBarTaskViewHint}>
+ <Row icon={<SettingIcon name="windows" />} label={t.menuBarTaskView} hint={t.menuBarTaskViewHint}>
<Toggle
label={t.menuBarTaskView}
checked={config.menuBarTaskView ?? true}
onChange={(menuBarTaskView) => update({ menuBarTaskView })}
/>
</Row>
- <Row label={t.menuBarWidgets} hint={t.menuBarWidgetsHint}>
+ <Row icon={<SettingIcon name="widgets" />} label={t.menuBarWidgets} hint={t.menuBarWidgetsHint}>
<Toggle
label={t.menuBarWidgets}
checked={config.menuBarWidgets ?? true}
@@ -511,10 +528,10 @@ export function App() {
) : (
<>
<Card>
- <Row label={t.autostart}>
+ <Row icon={<SettingIcon name="start" />} label={t.autostart}>
<Toggle label={t.autostart} checked={autostart} onChange={changeAutostart} />
</Row>
- <Row label={t.language}>
+ <Row icon={<SettingIcon name="language" />} label={t.language}>
<Segmented<Language>
label={t.language}
value={config.language}
@@ -529,21 +546,21 @@ export function App() {
</Row>
</Card>
<Card title={t.updates}>
- <Row label={t.checkUpdates} hint={t.checkUpdatesHint}>
+ <Row icon={<SettingIcon name="updates" />} label={t.checkUpdates} hint={t.checkUpdatesHint}>
<Toggle
label={t.checkUpdates}
checked={config.checkUpdates}
onChange={(checkUpdates) => update({ checkUpdates })}
/>
</Row>
- <SubRow label={t.autoUpdate} hint={t.autoUpdateHint} open={config.checkUpdates}>
+ <SubRow icon={<SettingIcon name="updates" />} label={t.autoUpdate} hint={t.autoUpdateHint} open={config.checkUpdates}>
<Toggle
label={t.autoUpdate}
checked={config.autoUpdate}
onChange={(autoUpdate) => update({ autoUpdate })}
/>
</SubRow>
- <Row label={t.updatesNow} hint={updateHint(t, updateState, version)}>
+ <Row icon={<SettingIcon name="updates" />} label={t.updatesNow} hint={updateHint(t, updateState, version)}>
{waiting && updateState.kind !== "installing" ? (
<button type="button" className="push push-primary" onClick={() => install(waiting)}>
{t.updatesInstall}
@@ -561,7 +578,7 @@ export function App() {
</Row>
</Card>
<Card>
- <Row label={t.reset} hint={confirmingReset ? t.resetConfirmHint : t.resetHint}>
+ <Row icon={<SettingIcon name="reset" />} label={t.reset} hint={confirmingReset ? t.resetConfirmHint : t.resetHint}>
<button
type="button"
className={confirmingReset ? "push push-danger" : "push"}
diff --git a/apps/settings/src/config.ts b/apps/settings/src/config.ts
index 144dddb..e1f2e28 100644
--- a/apps/settings/src/config.ts
+++ b/apps/settings/src/config.ts
@@ -63,4 +63,6 @@ export interface UpdateInfo {
/** Resolves to the newer version available, or null when up to date. */
export const checkUpdate = () => invoke<UpdateInfo | null>("check_update");
export const openReleaseNotes = (url: string) => invoke<void>("open_release_notes", { url });
+/** Fixed project URL, opened only when the user asks. */
+export const openRepository = () => invoke<void>("open_repository");
export const installUpdate = () => invoke<void>("install_update");
diff --git a/apps/settings/src/controls.tsx b/apps/settings/src/controls.tsx
index b07356c..0ff15df 100644
--- a/apps/settings/src/controls.tsx
+++ b/apps/settings/src/controls.tsx
@@ -1,4 +1,4 @@
-import type { ReactNode } from "react";
+import { useId, type ReactNode } from "react";
interface CardProps {
/** Heading above the group, as macOS System Settings labels its groups. */
@@ -19,12 +19,15 @@ export function Card({ title, children }: CardProps) {
interface RowProps {
label: string;
hint?: string;
+ icon?: ReactNode;
+ stacked?: boolean;
children: ReactNode;
}
-export function Row({ label, hint, children }: RowProps) {
+export function Row({ label, hint, icon, stacked, children }: RowProps) {
return (
- <div className="row">
+ <div className={stacked ? "row row-stacked" : "row"}>
+ {icon ? <span className="row-icon">{icon}</span> : null}
<div className="row-text">
<span className="row-label">{label}</span>
{hint ? <span className="row-hint">{hint}</span> : null}
@@ -80,8 +83,8 @@ interface SliderProps {
min: number;
max: number;
label: string;
- before?: string;
- after?: string;
+ before?: ReactNode;
+ after?: ReactNode;
disabled?: boolean;
onChange: (value: number) => void;
}
@@ -97,15 +100,51 @@ export function Slider({ value, min, max, label, before, after, disabled, onChan
min={min}
max={max}
value={value}
+ aria-valuetext={`${value} px`}
disabled={disabled}
style={{ "--filled": `${filled}%` } as React.CSSProperties}
onChange={(event) => onChange(Number(event.target.value))}
/>
{after ? <span className="slider-edge">{after}</span> : null}
+ <output className="slider-value" aria-hidden="true">{value} px</output>
</div>
);
}
+interface VisualChoicesProps<T extends string> {
+ label: string;
+ value: T;
+ hideLabel?: boolean;
+ options: readonly { value: T; label: string; preview: ReactNode; detail?: string }[];
+ onChange: (value: T) => void;
+}
+
+/** Native radios provide arrow-key navigation without extra listeners or state. */
+export function VisualChoices<T extends string>({ label, value, hideLabel, options, onChange }: VisualChoicesProps<T>) {
+ const name = useId();
+ return (
+ <fieldset className="visual-setting">
+ <legend className={hideLabel ? "sr-only" : "visual-legend"}>{label}</legend>
+ <div className="visual-choices" style={{ gridTemplateColumns: `repeat(${options.length}, minmax(0, 1fr))` }}>
+ {options.map((option) => (
+ <label className="visual-choice" key={option.value}>
+ <input type="radio" name={name} value={option.value} checked={value === option.value}
+ onChange={() => onChange(option.value)} />
+ <span className="visual-choice-body">
+ <span className="visual-preview" aria-hidden="true">{option.preview}</span>
+ <span className="visual-choice-label">{option.label}</span>
+ {option.detail ? <span className="visual-choice-detail">{option.detail}</span> : null}
+ <span className="visual-check" aria-hidden="true">
+ <svg viewBox="0 0 16 16" width="12" height="12"><path d="m4 8 2.5 2.5L12 5" fill="none" stroke="currentColor" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round" /></svg>
+ </span>
+ </span>
+ </label>
+ ))}
+ </div>
+ </fieldset>
+ );
+}
+
interface SegmentedProps<T extends string> {
value: T;
label: string;
@@ -114,19 +153,15 @@ interface SegmentedProps<T extends string> {
}
export function Segmented<T extends string>({ value, label, options, onChange }: SegmentedProps<T>) {
+ const name = useId();
return (
<div className="segmented" role="radiogroup" aria-label={label}>
{options.map((option) => (
- <button
- key={option.value}
- type="button"
- role="radio"
- aria-checked={option.value === value}
- className="segment"
- onClick={() => onChange(option.value)}
- >
- {option.label}
- </button>
+ <label key={option.value} className="segment">
+ <input type="radio" className="sr-only" name={name} value={option.value}
+ checked={option.value === value} onChange={() => onChange(option.value)} />
+ <span>{option.label}</span>
+ </label>
))}
</div>
);
diff --git a/apps/settings/src/i18n/en.json b/apps/settings/src/i18n/en.json
index f061558..3bc9e54 100644
--- a/apps/settings/src/i18n/en.json
+++ b/apps/settings/src/i18n/en.json
@@ -11,8 +11,8 @@
"dockPositionLeft": "Left",
"dockPositionBottom": "Bottom",
"dockPositionRight": "Right",
- "autoHide": "Automatically hide and show the Dock",
- "autoHideHint": "Rest the pointer at the screen edge where the Dock sits to reveal it, on any display.",
+ "autoHide": "Automatically hide",
+ "autoHideHint": "Rest the pointer at the Dock's edge to reveal it, on any display.",
"genie": "Genie effect",
"genieHint": "While it is on, windows do not use the Windows animations for maximizing or closing.",
"genieSpeed": "Genie speed",
@@ -21,24 +21,24 @@
"genieSpeedFast": "Fast",
"genieSpeedFaster": "Faster",
"genieOff": "Windows animations are off",
- "genieOffHint": "The genie follows Windows' \"Animation effects\" setting, as every app should, so it does not play. Choosing \"Adjust for best performance\" in Windows turns it off too.",
+ "genieOffHint": "Turn on Animation effects in Windows to play this effect.",
"genieOffAction": "Open Windows settings",
"showMinimized": "Show minimized windows",
- "showMinimizedHint": "As thumbnails on the right side of the Dock, instead of inside their app's icon.",
+ "showMinimizedHint": "Thumbnails separate from app icons.",
"menuBar": "Menu bar",
"menuBarHint": "Time, battery, and access to the Windows quick settings and notifications.",
- "menuBarAutoHide": "Automatically hide and show the menu bar",
- "menuBarAutoHideHint": "It appears when the pointer rests on the top edge of the screen, never over a window's close buttons.",
+ "menuBarAutoHide": "Automatically hide",
+ "menuBarAutoHideHint": "Rest the pointer at the top edge to reveal it.",
"menuBarMusic": "Show what's playing",
- "menuBarMusicHint": "Title and controls of the music or video playing. With this and AI usage off, the menu bar shows no island.",
- "aiUsage": "Show AI provider usage",
+ "menuBarMusicHint": "Music and video, with controls. With music and AI off, the island disappears.",
+ "aiUsage": "AI usage",
"islandStyle": "Indicator style",
"islandStyleHint": "Choose between the centered notch or a compact bubble next to the status indicators.",
"islandStyleNotch": "Notch",
"islandStyleBubble": "Bubble",
"accessoryBattery": "Show accessory battery",
- "accessoryBatteryHint": "Detects supported mice and headsets and shows their battery levels. While off, no accessories are monitored or queried.",
- "aiUsageHint": "Reads your existing sessions. Queries each provider directly every five minutes and does not save credentials.",
+ "accessoryBatteryHint": "Supported mice and headsets. No device queries while off.",
+ "aiUsageHint": "Uses your existing sessions; checks every 5 min. Never saves credentials.",
"menuBarItems": "Status items",
"menuBarBluetooth": "Bluetooth",
"menuBarBluetoothHint": "Show Bluetooth status and open settings beside Wi-Fi.",
@@ -59,7 +59,7 @@
"checkUpdates": "Check for updates automatically",
"checkUpdatesHint": "Settings asks GitHub whether there is a newer version when it opens.",
"autoUpdate": "Install updates automatically",
- "autoUpdateHint": "Once a day, a couple of minutes after you turn on the computer (or every 24 hours if it stays on), Muelle installs new versions by itself.",
+ "autoUpdateHint": "Installs new versions once a day.",
"updatesOff": "Automatic checks are off.",
"updates": "Updates",
"updatesChecking": "Checking for updates…",
@@ -74,7 +74,7 @@
"showRecentsHint": "The last three you opened that are not pinned.",
"bounceOnOpen": "Animate opening apps",
"mascot": "Crab on special moments",
- "mascotHint": "A pixel crab comes out when an AI plan resets or runs out, when you plug in the charger, or when energy saver starts. Hover over it.",
+ "mascotHint": "A crab marks AI plan changes, charging and energy saver. Hover over it.",
"reset": "Restore defaults",
"resetHint": "Back to the out-of-the-box look and behavior. Your pinned apps stay.",
"resetConfirmHint": "Click again to confirm.",
@@ -97,7 +97,11 @@
"zoom": "Zoom",
"updatesNow": "This version",
"shortcutsFolder": "Shortcuts folder",
- "shortcutsFolderHint": "A folder at the right of the Dock: its contents open as a menu, with a submenu for each folder inside.",
+ "shortcutsFolderHint": "Open a folder's contents from the Dock.",
"shortcutsFolderChoose": "Choose…",
- "shortcutsFolderRemove": "Remove"
+ "shortcutsFolderRemove": "Remove",
+ "groupAppearance": "Appearance",
+ "githubTitle": "Muelle on GitHub",
+ "githubStar": "Support with a star",
+ "githubError": "Could not open GitHub. Try again."
}
diff --git a/apps/settings/src/i18n/es.json b/apps/settings/src/i18n/es.json
index 796eb43..ab23a91 100644
--- a/apps/settings/src/i18n/es.json
+++ b/apps/settings/src/i18n/es.json
@@ -11,8 +11,8 @@
"dockPositionLeft": "Izquierda",
"dockPositionBottom": "Abajo",
"dockPositionRight": "Derecha",
- "autoHide": "Ocultar y mostrar el Dock automáticamente",
- "autoHideHint": "Deja el puntero en el borde de la pantalla donde está el Dock para mostrarlo; con varias pantallas, en cualquiera de ellas.",
+ "autoHide": "Ocultar automáticamente",
+ "autoHideHint": "Deja el puntero en el borde del Dock para mostrarlo, en cualquier pantalla.",
"genie": "Efecto genio",
"genieHint": "Mientras está activo, las ventanas no usan las animaciones de Windows al maximizar ni al cerrar.",
"genieSpeed": "Velocidad del genio",
@@ -21,24 +21,24 @@
"genieSpeedFast": "Rápida",
"genieSpeedFaster": "Muy rápida",
"genieOff": "Las animaciones de Windows están desactivadas",
- "genieOffHint": "El genio sigue el ajuste «Efectos de animación» de Windows, como debe hacer toda app, así que no se reproduce. La opción «Ajustar para obtener el mejor rendimiento» también lo apaga.",
+ "genieOffHint": "Activa «Efectos de animación» en Windows para reproducir este efecto.",
"genieOffAction": "Abrir la configuración de Windows",
"showMinimized": "Mostrar ventanas minimizadas",
- "showMinimizedHint": "Como miniaturas a la derecha del Dock, en lugar de dentro del icono de su app.",
+ "showMinimizedHint": "Miniaturas separadas de los iconos de las apps.",
"menuBar": "Barra superior",
"menuBarHint": "Hora, batería y acceso a los ajustes rápidos y las notificaciones de Windows.",
- "menuBarAutoHide": "Ocultar y mostrar la barra superior automáticamente",
- "menuBarAutoHideHint": "Aparece cuando el puntero se detiene en el borde superior de la pantalla, nunca encima de los botones de cerrar de una ventana.",
+ "menuBarAutoHide": "Ocultar automáticamente",
+ "menuBarAutoHideHint": "Deja el puntero en el borde superior para mostrarla.",
"menuBarMusic": "Mostrar lo que se reproduce",
- "menuBarMusicHint": "Título y controles de la música o el vídeo en reproducción. Si lo desactivas junto con el uso de IA, la barra superior no muestra ninguna isla.",
- "aiUsage": "Mostrar uso de proveedores de IA",
+ "menuBarMusicHint": "Música y vídeo, con controles. Sin música ni IA, la isla desaparece.",
+ "aiUsage": "Uso de IA",
"islandStyle": "Estilo del indicador",
"islandStyleHint": "Elige entre la muesca centrada o una burbuja compacta junto a los indicadores de estado.",
"islandStyleNotch": "Muesca",
"islandStyleBubble": "Burbuja",
"accessoryBattery": "Mostrar batería de accesorios",
- "accessoryBatteryHint": "Detecta ratones y auriculares compatibles y muestra su batería. Desactivado, no detecta ni consulta accesorios.",
- "aiUsageHint": "Lee la cuota de las sesiones que ya tienes abiertas. Consulta directamente a cada proveedor cada cinco minutos y no guarda credenciales.",
+ "accessoryBatteryHint": "Ratones y auriculares compatibles. Apagado, no los consulta.",
+ "aiUsageHint": "Usa tus sesiones abiertas; consulta cada 5 min. No guarda credenciales.",
"menuBarItems": "Elementos de estado",
"menuBarBluetooth": "Bluetooth",
"menuBarBluetoothHint": "Muestra el estado de Bluetooth y abre sus ajustes junto al Wi-Fi.",
@@ -59,7 +59,7 @@
"checkUpdates": "Buscar actualizaciones automáticamente",
"checkUpdatesHint": "Ajustes pregunta a GitHub si hay una versión nueva al abrirse.",
"autoUpdate": "Instalar actualizaciones automáticamente",
- "autoUpdateHint": "Una vez al día, un par de minutos después de encender el ordenador (o cada 24 horas si sigue encendido), Muelle instala las versiones nuevas por sí solo.",
+ "autoUpdateHint": "Instala las nuevas versiones una vez al día.",
"updatesOff": "La búsqueda automática está desactivada.",
"updates": "Actualizaciones",
"updatesChecking": "Buscando actualizaciones…",
@@ -74,7 +74,7 @@
"showRecentsHint": "Las tres últimas que abriste sin tenerlas fijadas.",
"bounceOnOpen": "Animar al abrir apps",
"mascot": "Cangrejo en momentos especiales",
- "mascotHint": "Un cangrejo pixelado aparece cuando un plan de IA se reinicia o se agota, al enchufar el cargador o al activarse el ahorro de energía. Pasa el puntero por encima.",
+ "mascotHint": "Un cangrejo te avisa sobre tus planes de IA, la carga y el ahorro de energía. Acércale el cursor.",
"reset": "Restablecer valores",
"resetHint": "Vuelve al aspecto y comportamiento de fábrica. Tus apps fijadas se mantienen.",
"resetConfirmHint": "Pulsa otra vez para confirmar.",
@@ -97,7 +97,11 @@
"zoom": "Ampliar",
"updatesNow": "Esta versión",
"shortcutsFolder": "Carpeta de accesos directos",
- "shortcutsFolderHint": "Una carpeta a la derecha del Dock: su contenido se abre como un menú, con un submenú por cada carpeta que contiene.",
+ "shortcutsFolderHint": "Abre el contenido de una carpeta desde el Dock.",
"shortcutsFolderChoose": "Elegir…",
- "shortcutsFolderRemove": "Quitar"
+ "shortcutsFolderRemove": "Quitar",
+ "groupAppearance": "Aspecto",
+ "githubTitle": "Muelle en GitHub",
+ "githubStar": "Apoya con una estrella",
+ "githubError": "No se pudo abrir GitHub. Inténtalo otra vez."
}
diff --git a/apps/settings/src/i18n/fr.json b/apps/settings/src/i18n/fr.json
index 844ea2b..f4ac412 100644
--- a/apps/settings/src/i18n/fr.json
+++ b/apps/settings/src/i18n/fr.json
@@ -11,8 +11,8 @@
"dockPositionLeft": "Gauche",
"dockPositionBottom": "Bas",
"dockPositionRight": "Droite",
- "autoHide": "Masquer et afficher automatiquement le Dock",
- "autoHideHint": "Laissez le pointeur sur le bord de l'écran où se trouve le Dock pour l'afficher, sur n'importe quel écran.",
+ "autoHide": "Masquer automatiquement",
+ "autoHideHint": "Laissez le pointeur sur le bord du Dock pour l'afficher, sur tout écran.",
"genie": "Effet génie",
"genieHint": "Tant qu'il est activé, les fenêtres n'utilisent pas les animations de Windows pour l'agrandissement et la fermeture.",
"genieSpeed": "Vitesse du génie",
@@ -21,24 +21,24 @@
"genieSpeedFast": "Rapide",
"genieSpeedFaster": "Très rapide",
"genieOff": "Les animations de Windows sont désactivées",
- "genieOffHint": "L'effet génie suit le réglage « Effets d'animation » de Windows, comme toute app devrait le faire : il ne se joue donc pas. L'option « Ajuster afin d'obtenir les meilleures performances » le désactive aussi.",
+ "genieOffHint": "Activez les effets d'animation dans Windows pour jouer cet effet.",
"genieOffAction": "Ouvrir les paramètres de Windows",
"showMinimized": "Afficher les fenêtres réduites",
- "showMinimizedHint": "Sous forme de miniatures à droite du Dock, plutôt que dans l'icône de leur app.",
+ "showMinimizedHint": "Des miniatures séparées des icônes des apps.",
"menuBar": "Barre de menus",
"menuBarHint": "Heure, batterie et accès aux paramètres rapides et aux notifications de Windows.",
- "menuBarAutoHide": "Masquer et afficher automatiquement la barre de menus",
- "menuBarAutoHideHint": "Elle apparaît quand le pointeur s'arrête sur le bord supérieur de l'écran, jamais par-dessus les boutons de fermeture d'une fenêtre.",
+ "menuBarAutoHide": "Masquer automatiquement",
+ "menuBarAutoHideHint": "Laissez le pointeur sur le bord supérieur pour l'afficher.",
"menuBarMusic": "Afficher la lecture en cours",
- "menuBarMusicHint": "Titre et commandes de la musique ou de la vidéo en cours. Désactivé avec l'utilisation de l'IA, la barre des menus n'affiche plus d'îlot.",
- "aiUsage": "Afficher l'utilisation des fournisseurs d'IA",
+ "menuBarMusicHint": "Musique et vidéo, avec commandes. Sans musique ni IA, l'îlot disparaît.",
+ "aiUsage": "Utilisation de l'IA",
"islandStyle": "Style de l'indicateur",
"islandStyleHint": "Choisissez entre l'encoche centrée ou une bulle compacte à côté des indicateurs d'état.",
"islandStyleNotch": "Encoche",
"islandStyleBubble": "Bulle",
"accessoryBattery": "Afficher la batterie des accessoires",
- "accessoryBatteryHint": "Détecte les souris et casques compatibles et affiche leur batterie. Désactivé, aucun accessoire n’est surveillé ni interrogé.",
- "aiUsageHint": "Lit le quota des sessions que vous avez déjà ouvertes. Interroge directement chaque fournisseur toutes les cinq minutes et n'enregistre aucun identifiant.",
+ "accessoryBatteryHint": "Souris et casques compatibles. Aucune interrogation si désactivé.",
+ "aiUsageHint": "Utilise vos sessions existantes ; vérifie toutes les 5 min. Aucun identifiant enregistré.",
"menuBarItems": "Éléments d'état",
"menuBarBluetooth": "Bluetooth",
"menuBarBluetoothHint": "Affiche le statut Bluetooth et ouvre ses paramètres à côté du Wi-Fi.",
@@ -59,7 +59,7 @@
"checkUpdates": "Rechercher automatiquement les mises à jour",
"checkUpdatesHint": "À son ouverture, Réglages demande à GitHub si une nouvelle version existe.",
"autoUpdate": "Installer automatiquement les mises à jour",
- "autoUpdateHint": "Une fois par jour, quelques minutes après l'allumage de l'ordinateur (ou toutes les 24 heures s'il reste allumé), Muelle installe lui-même les nouvelles versions.",
+ "autoUpdateHint": "Installe les nouvelles versions une fois par jour.",
"updatesOff": "La recherche automatique est désactivée.",
"updates": "Mises à jour",
"updatesChecking": "Recherche de mises à jour…",
@@ -74,7 +74,7 @@
"showRecentsHint": "Les trois dernières que vous avez ouvertes sans les avoir épinglées.",
"bounceOnOpen": "Animer l'ouverture des apps",
"mascot": "Crabe lors des moments spéciaux",
- "mascotHint": "Un crabe en pixels apparaît quand un forfait d'IA se réinitialise ou s'épuise, quand vous branchez le chargeur ou quand l'économiseur d'énergie s'active. Passez le pointeur dessus.",
+ "mascotHint": "Un crabe signale les changements des forfaits IA, la charge et l'économie d'énergie. Survolez-le.",
"reset": "Rétablir les valeurs par défaut",
"resetHint": "Retour à l'apparence et au comportement d'origine. Vos apps épinglées sont conservées.",
"resetConfirmHint": "Cliquez à nouveau pour confirmer.",
@@ -97,7 +97,11 @@
"zoom": "Agrandir",
"updatesNow": "Cette version",
"shortcutsFolder": "Dossier de raccourcis",
- "shortcutsFolderHint": "Un dossier à droite du Dock : son contenu s'ouvre en menu, avec un sous-menu pour chaque dossier qu'il contient.",
+ "shortcutsFolderHint": "Ouvrez le contenu d'un dossier depuis le Dock.",
"shortcutsFolderChoose": "Choisir…",
- "shortcutsFolderRemove": "Retirer"
+ "shortcutsFolderRemove": "Retirer",
+ "groupAppearance": "Apparence",
+ "githubTitle": "Muelle sur GitHub",
+ "githubStar": "Soutenir avec une étoile",
+ "githubError": "Impossible d'ouvrir GitHub. Réessayez."
}
diff --git a/apps/settings/src/styles.css b/apps/settings/src/styles.css
index 0a34406..e077981 100644
--- a/apps/settings/src/styles.css
+++ b/apps/settings/src/styles.css
@@ -10,6 +10,8 @@
--track: rgba(0, 0, 0, 0.16);
--hover: rgba(0, 0, 0, 0.06);
--segment: #ffffff;
+ --preview-sky: #c7d8ed;
+ --preview-land: #b9b3e6;
font-family: "Segoe UI Variable Text", "Segoe UI", system-ui, sans-serif;
font-size: 13px;
}
@@ -25,6 +27,8 @@
--track: rgba(255, 255, 255, 0.2);
--hover: rgba(255, 255, 255, 0.08);
--segment: rgba(255, 255, 255, 0.22);
+ --preview-sky: #283d59;
+ --preview-land: #4b3e66;
}
}
@@ -68,12 +72,48 @@ input:focus-visible {
/* The sidebar lets the window's acrylic blur show through. */
.sidebar {
+ display: flex;
+ flex-direction: column;
+ min-height: 0;
background: var(--sidebar);
border-right: 1px solid var(--line);
padding: 14px 10px;
}
+.sidebar nav {
+ min-height: 0;
+ overflow-y: auto;
+}
+
+.sidebar-footer {
+ margin-top: auto;
+ padding-top: 18px;
+ flex-shrink: 0;
+}
+
+.project-link {
+ display: grid;
+ grid-template-columns: 20px minmax(0, 1fr) 12px;
+ align-items: center;
+ gap: 8px;
+ width: 100%;
+ padding: 10px 8px;
+ border: 1px solid var(--line);
+ border-radius: 9px;
+ text-align: left;
+ transition: background 0.16s ease;
+}
+
+.project-link:hover { background: var(--hover); }
+.project-link > svg:first-child { color: var(--accent); }
+.project-link > svg:last-child { color: var(--text-dim); }
+.project-link strong { display: block; font-size: 12px; font-weight: 600; }
+.project-link span span { display: block; margin-top: 3px; font-size: 10.5px; color: var(--text-dim); }
+.sidebar-version { display: flex; justify-content: space-between; padding: 10px 8px 0; font-size: 11px; color: var(--text-dim); }
+.project-error { margin: 8px; color: var(--text-dim); font-size: 11px; }
+
.traffic {
+ flex-shrink: 0;
display: flex;
gap: 8px;
padding: 2px 6px 18px;
@@ -287,7 +327,16 @@ input:focus-visible {
padding: 8px 14px;
}
+.row-icon { display: flex; flex: none; color: var(--text-dim); }
+.row:has(> .row-icon) { column-gap: 10px; }
+.row-text { flex: 1; }
+.row-stacked { flex-wrap: wrap; gap: 10px; }
+.row-stacked > .row-control { flex-basis: 100%; max-width: none; }
+.row-stacked .visual-setting { padding: 0 0 4px; }
+.row-stacked:has(> .row-icon) > .row-control { padding-left: 28px; }
+
.row + .row,
+.visual-setting + .row,
.row-sub + .row {
border-top: 1px solid var(--line);
}
@@ -377,22 +426,95 @@ input:focus-visible {
display: flex;
align-items: center;
gap: 8px;
+ width: 240px;
+ max-width: 100%;
}
.slider-edge {
+ display: flex;
+ flex: none;
color: var(--text-dim);
font-size: 11px;
}
.slider input {
appearance: none;
- width: 200px;
+ width: 100%;
+ min-width: 48px;
+ flex: 1;
height: 4px;
border-radius: 2px;
margin: 0;
background: linear-gradient(to right, var(--accent) var(--filled), var(--track) var(--filled));
}
+.slider-value { flex: none; min-width: 38px; text-align: right; font-size: 11px; color: var(--text-dim); font-variant-numeric: tabular-nums; }
+
+.sr-only,
+.visual-choice input {
+ position: absolute;
+ width: 1px;
+ height: 1px;
+ padding: 0;
+ margin: -1px;
+ overflow: hidden;
+ clip-path: inset(50%);
+ white-space: nowrap;
+ border: 0;
+}
+
+.visual-setting { min-width: 0; margin: 0; padding: 14px; border: 0; }
+.visual-legend { float: left; width: 100%; padding: 0 0 12px; font-weight: 600; font-size: 12px; }
+.visual-choices { clear: both; display: grid; gap: 10px; }
+.visual-choice { position: relative; min-width: 0; cursor: default; }
+.visual-choice-body {
+ position: relative;
+ display: flex;
+ flex-direction: column;
+ align-items: center;
+ gap: 8px;
+ height: 100%;
+ padding: 8px 8px 10px;
+ border: 1px solid var(--line);
+ border-radius: 9px;
+ background: var(--card);
+ transition: border-color 0.16s ease, background 0.16s ease;
+}
+.visual-choice:hover .visual-choice-body { background: var(--hover); }
+.visual-choice input:checked + .visual-choice-body { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 8%, var(--card)); box-shadow: 0 0 0 1px var(--accent); }
+.visual-choice input:focus-visible + .visual-choice-body { outline: 2px solid var(--accent); outline-offset: 4px; }
+.visual-choice-label { font-size: 12px; font-weight: 500; text-align: center; overflow-wrap: anywhere; }
+.visual-choice-detail { margin-top: -4px; font-size: 11px; color: var(--text-dim); font-variant-numeric: tabular-nums; }
+.visual-preview { display: flex; justify-content: center; width: 100%; pointer-events: none; }
+.visual-check { position: absolute; top: 5px; right: 5px; display: grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; background: var(--accent); color: white; opacity: 0; }
+.visual-choice input:checked + .visual-choice-body .visual-check { opacity: 1; }
+
+.preview-screen { display: block; position: relative; width: 100%; height: 72px; overflow: hidden; border: 1px solid var(--line); border-radius: 5px; background: linear-gradient(155deg, var(--preview-sky) 20%, var(--preview-land)); }
+.preview-topbar { position: absolute; inset: 0 0 auto; height: 8px; display: flex; align-items: center; gap: 3px; padding: 0 5px; background: var(--sidebar); }
+.preview-topbar i { width: 7px; height: 2px; border-radius: 2px; background: var(--text-dim); opacity: .5; }
+.preview-window { position: absolute; left: 28%; top: 24%; width: 48%; height: 43%; border-radius: 3px; background: var(--content); box-shadow: 0 2px 5px #0001; padding: 4px; display: flex; gap: 2px; align-items: start; }
+.preview-window i { width: 2px; height: 2px; border-radius: 50%; background: var(--text-dim); opacity: .6; }
+.preview-dock { position: absolute; display: flex; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 5px; background: var(--sidebar); box-shadow: 0 1px 3px #0002; }
+.preview-dock[data-position="bottom"] { bottom: 4px; left: 50%; transform: translateX(-50%); }
+.preview-dock[data-position="left"] { left: 4px; top: 50%; transform: translateY(-50%); flex-direction: column; }
+.preview-dock[data-position="right"] { right: 4px; top: 50%; transform: translateY(-50%); flex-direction: column; }
+.preview-dock i { width: var(--mini-icon); height: var(--mini-icon); border-radius: 2px; background: #338fe9; }
+.preview-dock i:nth-child(2) { background: #f0b249; }
+.preview-dock i:nth-child(3) { background: #a488d5; }
+.preview-dock i:nth-child(4) { background: #70bfa4; }
+.preview-dock i:nth-child(5) { background: #d68093; }
+.preview-screen-island { height: 66px; }
+.preview-screen-island .preview-window { top: 40%; height: 44%; }
+.preview-island { position: absolute; top: 0; color: var(--text); }
+.preview-island[data-style="notch"] { left: 50%; transform: translateX(-50%); width: 62px; height: 17px; }
+.preview-island > svg { width: 100%; height: 100%; }
+.preview-island[data-style="bubble"] { right: 8px; top: 2px; width: 35px; height: 12px; background: currentColor; border-radius: 10px; }
+.preview-island-content { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 3px; }
+.preview-island-content i { width: 3px; height: 5px; border-radius: 2px; background: var(--content); }
+.preview-island-content i:nth-child(2) { width: 10px; height: 2px; }
+.preview-island-content i:nth-child(3) { height: 7px; }
+.preview-speed { width: 100%; max-width: 120px; height: 48px; color: var(--text-dim); }
+
.slider input:disabled {
opacity: 0.4;
}
@@ -415,15 +537,28 @@ input:focus-visible {
}
.segment {
- padding: 4px 12px;
+ cursor: default;
+ padding: 5px 9px;
border-radius: 5px;
}
-.segment[aria-checked="true"] {
+@media (max-width: 740px) {
+ .window { grid-template-columns: 180px minmax(0, 1fr); }
+ .content-title { padding-left: 18px; padding-right: 18px; }
+ .content-body { padding-left: 18px; padding-right: 18px; }
+ .slider { width: 210px; }
+ .row-control { max-width: 70%; }
+ .segmented { flex-wrap: wrap; }
+ .segment { flex: 1; }
+}
+
+.segment:has(input:checked) {
background: var(--segment);
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.18);
}
+.segment:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
+
.push {
padding: 4px 14px;
border-radius: 6px;
@@ -461,6 +596,8 @@ input:focus-visible {
.toggle,
.toggle-knob,
.row-sub,
+ .project-link,
+ .visual-choice-body,
.update-progress span {
transition: none;
}
diff --git a/apps/settings/src/visuals.tsx b/apps/settings/src/visuals.tsx
new file mode 100644
index 0000000..95ffb58
--- /dev/null
+++ b/apps/settings/src/visuals.tsx
@@ -0,0 +1,66 @@
+import type { CSSProperties, ReactNode } from "react";
+import type { DockPosition, GenieSpeed, IslandStyle } from "./config";
+
+const PATHS = {
+ size: <><rect x="3" y="9" width="6" height="6" rx="1.5" /><rect x="13" y="5" width="9" height="14" rx="2" /></>,
+ magnification: <><circle cx="10" cy="10" r="6" /><path d="m15 15 5 5M7 10h6m-3-3v6" /></>,
+ hide: <><path d="M3 9V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2v4M3 15v4a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-4M8 12h8m-3-3 3 3-3 3" /></>,
+ bounce: <><rect x="8" y="9" width="8" height="8" rx="2" /><path d="m9 5 3-3 3 3M12 2v5M6 21h12" /></>,
+ mascot: <><path d="M6 13a6 6 0 0 0 12 0v-2H6zM8 11V7m8 4V7M4 9l-2-3m18 3 2-3M6 13H3m15 0h3M6 16l-3 3m15-3 3 3" /><circle cx="8" cy="6" r="1" /><circle cx="16" cy="6" r="1" /></>,
+ indicators: <><rect x="3" y="4" width="7" height="10" rx="2" /><rect x="14" y="4" width="7" height="10" rx="2" /><circle cx="6.5" cy="19" r="1" fill="currentColor" /><circle cx="17.5" cy="19" r="1" fill="currentColor" /></>,
+ recents: <><path d="M4 10a8 8 0 1 1 1 8M4 4v6h6m2-3v5l3 2" /></>,
+ folder: <path d="M3 7V5a2 2 0 0 1 2-2h5l2 3h7a2 2 0 0 1 2 2v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V7Z" />,
+ windows: <><rect x="3" y="3" width="13" height="11" rx="2" /><path d="M8 17v2a2 2 0 0 0 2 2h9a2 2 0 0 0 2-2v-9a2 2 0 0 0-2-2" /><path d="M6 7h7" /></>,
+ genie: <><path d="M4 4h16v9c0 4-8 3-8 7M4 4v9c0 4 8 3 8 7M9 21h6M7 8h10" /></>,
+ menu: <><rect x="3" y="4" width="18" height="16" rx="2" /><path d="M3 9h18m-5-3h2M6 6h1" /></>,
+ music: <><path d="M9 17V5l12-2v12M9 9l12-2" /><ellipse cx="6" cy="18" rx="3" ry="2" /><ellipse cx="18" cy="16" rx="3" ry="2" /></>,
+ ai: <><path d="m12 2 2.6 7.4L22 12l-7.4 2.6L12 22l-2.6-7.4L2 12l7.4-2.6z" /></>,
+ headphones: <><path d="M4 14v-3a8 8 0 0 1 16 0v3" /><rect x="3" y="12" width="4" height="8" rx="2" /><rect x="17" y="12" width="4" height="8" rx="2" /></>,
+ bluetooth: <path d="m7 7 10 10-5 4V3l5 4L7 17" />,
+ battery: <><rect x="2" y="6" width="18" height="12" rx="2" /><path d="M23 10v4M6 10v4m4-4v4m4-4v4" /></>,
+ search: <><circle cx="10" cy="10" r="7" /><path d="m15 15 6 6" /></>,
+ widgets: <><rect x="3" y="3" width="7" height="18" rx="2" /><rect x="14" y="3" width="7" height="7" rx="2" /><rect x="14" y="14" width="7" height="7" rx="2" /></>,
+ start: <><path d="M12 3v9M6 5a9 9 0 1 0 12 0" /></>,
+ language: <><circle cx="12" cy="12" r="10" /><ellipse cx="12" cy="12" rx="4" ry="10" /><path d="M2 12h20" /></>,
+ updates: <><path d="M20 8a8 8 0 0 0-14-3L3 8m0-5v5h5m-4 8a8 8 0 0 0 14 3l3-3m-5 0h5v5" /></>,
+ reset: <><path d="M3 10a9 9 0 1 1 1 8M3 4v6h6" /></>,
+ star: <path d="m12 3 2.8 5.7 6.2.9-4.5 4.4 1 6.2-5.5-2.9-5.5 2.9 1-6.2L3 9.6l6.2-.9z" />,
+ external: <><path d="M14 3h7v7m0-7L10 14M10 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-5" /></>,
+} satisfies Record<string, ReactNode>;
+
+export function SettingIcon({ name, size = 18 }: { name: keyof typeof PATHS; size?: number }) {
+ return <svg viewBox="0 0 24 24" width={size} height={size} fill="none" stroke="currentColor" strokeWidth="1.6" strokeLinecap="round" strokeLinejoin="round" aria-hidden="true">{PATHS[name]}</svg>;
+}
+
+const MINI_ICONS = <><i /><i /><i /><i /><i /></>;
+
+/** Illustrations only: no window capture, network, timers or animation loop. */
+export function DockPreview({ position, iconSize }: { position: DockPosition; iconSize: number }) {
+ return <span className="preview-screen">
+ <span className="preview-topbar"><i /><i /><i /></span>
+ <span className="preview-window"><i /><i /><i /></span>
+ <span className="preview-dock" data-position={position}
+ style={{ "--mini-icon": `${6 + (iconSize - 32) / 16}px` } as CSSProperties}>{MINI_ICONS}</span>
+ </span>;
+}
+
+export function IslandPreview({ style }: { style: IslandStyle }) {
+ return <span className="preview-screen preview-screen-island">
+ <span className="preview-topbar"><i /><i /><i /></span>
+ <span className="preview-island" data-style={style}>
+ {style === "notch" ? <svg viewBox="0 0 72 18"><path d="M0 0h72c-12 0-6 18-20 18H20C6 18 12 0 0 0" fill="currentColor" /></svg> : null}
+ <span className="preview-island-content"><i /><i /><i /></span>
+ </span>
+ <span className="preview-window"><i /><i /><i /></span>
+ </span>;
+}
+
+export function SpeedPreview({ speed }: { speed: GenieSpeed }) {
+ return <svg className="preview-speed" viewBox="0 0 120 48" fill="none" stroke="currentColor" strokeWidth="1.5" strokeLinecap="round" strokeLinejoin="round">
+ <rect x="20" y="4" width="36" height="24" rx="4" opacity=".65" /><path d="M20 11h36" opacity=".35" />
+ <path d="M63 16c17 0 7 23 23 23m-5-4 5 4-5 3" stroke="var(--accent)" />
+ {speed !== "normal" ? <path d="M12 12H5m7 6H2m10 6H5" opacity=".4" /> : null}
+ {speed === "faster" ? <path d="M8 6H3m5 24H3" opacity=".25" /> : null}
+ <rect x="88" y="34" width="16" height="10" rx="2" fill="var(--accent)" stroke="none" />
+ </svg>;
+}