A lightweight, macOS-style dock for Windows 11, with glass visuals, smooth magnification, and Genie effect.
feat(settings): add a toggle for jump lists
lazerLipa98e2088c13ae
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex 65a3f9f..cdc3c35 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -12,14 +12,15 @@ copia la sección de la versión que se publica a la release de GitHub.- Right-clicking an app in the dock shows its jump list, as on the Windowstaskbar: pinned, recent and frequent items, the app's own categories and its- tasks, each with its icon. Files open in that app.+ tasks, each with its icon. Files open in that app. Settings → Dock → *Show+ jump lists* turns it off.### Español- El clic derecho en una app del dock muestra su lista de saltos, como en labarra de Windows: elementos anclados, recientes y frecuentes, las categoríaspropias de la app y sus tareas, cada uno con su icono. Los archivos se abren- en esa app.+ en esa app. Ajustes → Dock → *Mostrar listas de saltos* lo desactiva.## [0.1.19]diff --git a/apps/dock/src/app.rs b/apps/dock/src/app.rsindex 5dc881b..953e350 100644--- a/apps/dock/src/app.rs+++ b/apps/dock/src/app.rs@@ -3697,7 +3697,12 @@ impl App {match role {Role::App => {// The app's jump list first, as on the taskbar.- for group in jumplist::for_dock_item(id, windows) {+ let groups = if self.config.jump_lists {+ jumplist::for_dock_item(id, windows)+ } else {+ Vec::new()+ };+ for group in groups {items.push(MenuItem::Header(match group.section {jumplist::Section::Pinned => t.jump_pinned.to_owned(),jumplist::Section::Frequent => t.jump_frequent.to_owned(),diff --git a/apps/settings/src/App.tsx b/apps/settings/src/App.tsxindex db1f703..658fb0a 100644--- a/apps/settings/src/App.tsx+++ b/apps/settings/src/App.tsx@@ -446,6 +446,13 @@ export function App() {onChange={(showRecents) => update({ showRecents })}/></Row>+ <Row icon={<SettingIcon name="jumpList" />} label={t.jumpLists} hint={t.jumpListsHint}>+ <Toggle+ label={t.jumpLists}+ checked={config.jumpLists}+ onChange={(jumpLists) => update({ jumpLists })}+ />+ </Row></Card><Card><Row icon={<SettingIcon name="folder" />} label={t.shortcutsFolder} hint={config.shortcutsFolder ?? t.shortcutsFolderHint}>diff --git a/apps/settings/src/config.ts b/apps/settings/src/config.tsindex 04ac3f1..95556f8 100644--- a/apps/settings/src/config.ts+++ b/apps/settings/src/config.ts@@ -28,6 +28,7 @@ export interface Config {genieSpeed: GenieSpeed;showMinimized: boolean;showPreviewCloseButton: boolean;+ jumpLists: boolean;menuBar: boolean;menuBarAutoHide: boolean;aiUsage: boolean;diff --git a/apps/settings/src/i18n/en.json b/apps/settings/src/i18n/en.jsonindex 0078a26..fb72ed5 100644--- a/apps/settings/src/i18n/en.json+++ b/apps/settings/src/i18n/en.json@@ -86,6 +86,8 @@"showIndicators": "Show indicators for open apps","showRecents": "Show recent apps","showRecentsHint": "The last three you opened that are not pinned.",+ "jumpLists": "Show jump lists",+ "jumpListsHint": "Right-clicking an app lists its recent files, pinned items and tasks, as on the Windows taskbar.","bounceOnOpen": "Animate opening apps","mascot": "Crab on special moments","mascotHint": "A crab marks AI plan changes, charging and energy saver. Hover over it.",diff --git a/apps/settings/src/i18n/es.json b/apps/settings/src/i18n/es.jsonindex 0ea2e9b..29031bd 100644--- a/apps/settings/src/i18n/es.json+++ b/apps/settings/src/i18n/es.json@@ -86,6 +86,8 @@"showIndicators": "Mostrar indicadores de las apps abiertas","showRecents": "Mostrar apps recientes","showRecentsHint": "Las tres últimas que abriste sin tenerlas fijadas.",+ "jumpLists": "Mostrar listas de saltos",+ "jumpListsHint": "Al hacer clic derecho en una app aparecen sus archivos recientes, elementos anclados y tareas, como en la barra de Windows.","bounceOnOpen": "Animar al abrir apps","mascot": "Cangrejo en momentos especiales","mascotHint": "Un cangrejo te avisa sobre tus planes de IA, la carga y el ahorro de energía. Acércale el cursor.",diff --git a/apps/settings/src/i18n/fr.json b/apps/settings/src/i18n/fr.jsonindex fcd9e06..2324161 100644--- a/apps/settings/src/i18n/fr.json+++ b/apps/settings/src/i18n/fr.json@@ -86,6 +86,8 @@"showIndicators": "Afficher un indicateur sous les apps ouvertes","showRecents": "Afficher les apps récentes","showRecentsHint": "Les trois dernières que vous avez ouvertes sans les avoir épinglées.",+ "jumpLists": "Afficher les listes de raccourcis",+ "jumpListsHint": "Un clic droit sur une app affiche ses fichiers récents, éléments épinglés et tâches, comme dans la barre des tâches de Windows.","bounceOnOpen": "Animer l'ouverture des apps","mascot": "Crabe lors des moments spéciaux","mascotHint": "Un crabe signale les changements des forfaits IA, la charge et l'économie d'énergie. Survolez-le.",diff --git a/apps/settings/src/visuals.tsx b/apps/settings/src/visuals.tsxindex ba04b8c..0951585 100644--- a/apps/settings/src/visuals.tsx+++ b/apps/settings/src/visuals.tsx@@ -9,6 +9,7 @@ const PATHS = {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" /></>,+ jumpList: <><rect x="4" y="3" width="16" height="18" rx="2" /><path d="M8 7h5M8 11h8M8 14.5h8M8 18h8" /></>,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" /></>,diff --git a/crates/muelle-config/src/lib.rs b/crates/muelle-config/src/lib.rsindex 4424409..55c5a73 100644--- a/crates/muelle-config/src/lib.rs+++ b/crates/muelle-config/src/lib.rs@@ -74,6 +74,10 @@ pub struct Config {/// Minimized windows get a live thumbnail in the right section of the/// dock. Off by default: they go into their app's icon instead.pub show_minimized: bool,+ /// An app's right-click menu starts with its jump list (pinned and recent+ /// items, tasks), as on the Windows taskbar. Off, the menu has only the+ /// dock's own items and no jump list is read.+ pub jump_lists: bool,/// macOS-style bar across the top with the clock and status items.pub menu_bar: bool,/// Keep the menu bar off screen until the pointer touches the top edge.@@ -313,6 +317,7 @@ impl Default for Config {genie: true,genie_speed: GenieSpeed::Normal,show_minimized: false,+ jump_lists: true,menu_bar: true,menu_bar_auto_hide: false,ai_usage: true,@@ -637,6 +642,7 @@ mod tests {assert!(config.menu_bar_music);assert!(!config.accessory_battery);assert!(!config.show_minimized);+ assert!(config.jump_lists);}#[test]