WIP: Use Feather icons for the settings dialog

Swap the settings nav and button icons to Feather equivalents (settings, clock, link, bell, calendar, info, x). The paint brush and puzzle piece stay Heroicons because Feather has no match. The settings button now uses Feather's sliders glyph.

Icons are stored as arrays of SVG paths so multi-element Feather shapes can render, and the nav renders one path per entry.
This commit is contained in:
raucao committed 2026-11-06 13:51:59 +04:00
1 parent 17e6cbaf89
commit 4f8011647d
3 files changed
+52 -25

No files matched your search

+17 -11
View File
@@ -4,7 +4,20 @@ import { on } from '@ember/modifier';
import { service } from '@ember/service';
import GlobalSettings from './settings/global-settings.gjs';
// Gear button pinned to the bottom left of the dashboard that opens the global
// Feather "sliders" (https://feathericons.com), one path per line segment.
const SLIDERS_ICON = [
'M4 21v-7',
'M4 10V3',
'M12 21v-9',
'M12 8V3',
'M20 21v-5',
'M20 12V3',
'M1 14h6',
'M9 8h6',
'M17 16h6',
];
// Button pinned to the bottom left of the dashboard that opens the global
// settings dialog.
export default class SettingsButtonComponent extends Component {
@service modal;
@@ -30,16 +43,9 @@ export default class SettingsButtonComponent extends Component {
aria-hidden="true"
class="size-5"
>
<path
d="M9.594 3.94c.09-.542.56-.94 1.11-.94h2.593c.55 0 1.02.398 1.11.94l.213 1.281c.063.374.313.686.645.87.074.04.147.083.22.127.325.196.72.257 1.075.124l1.217-.456a1.125 1.125 0 0 1 1.37.49l1.296 2.247a1.125 1.125 0 0 1-.26 1.431l-1.003.827c-.293.241-.438.613-.43.992a7.723 7.723 0 0 1 0 .255c-.008.378.137.75.43.991l1.004.827c.424.35.534.955.26 1.43l-1.298 2.247a1.125 1.125 0 0 1-1.369.491l-1.217-.456c-.355-.133-.75-.072-1.076.124a6.47 6.47 0 0 1-.22.128c-.331.183-.581.495-.644.869l-.213 1.281c-.09.543-.56.94-1.11.94h-2.594c-.55 0-1.019-.398-1.11-.94l-.213-1.281c-.062-.374-.312-.686-.644-.87a6.52 6.52 0 0 1-.22-.127c-.325-.196-.72-.257-1.076-.124l-1.217.456a1.125 1.125 0 0 1-1.369-.49l-1.297-2.247a1.125 1.125 0 0 1 .26-1.431l1.004-.827c.292-.24.437-.613.43-.991a6.932 6.932 0 0 1 0-.255c.007-.38-.138-.751-.43-.992l-1.004-.827a1.125 1.125 0 0 1-.26-1.43l1.297-2.247a1.125 1.125 0 0 1 1.37-.491l1.216.456c.356.133.751.072 1.076-.124.072-.044.146-.086.22-.128.332-.183.582-.495.644-.869l.214-1.28Z"
stroke-linecap="round"
stroke-linejoin="round"
/>
<path
d="M15 12a3 3 0 1 1-6 0 3 3 0 0 1 6 0Z"
stroke-linecap="round"
stroke-linejoin="round"
/>
{{#each SLIDERS_ICON as |d|}}
<path d={{d}} stroke-linecap="round" stroke-linejoin="round" />
{{/each}}
</svg>
</button>
</template>
@@ -30,11 +30,9 @@ export default class SettingsGlobalSettingsNavItem extends Component {
aria-hidden="true"
class="size-5 shrink-0"
>
<path
d={{@item.icon}}
stroke-linecap="round"
stroke-linejoin="round"
/>
{{#each @item.icon as |d|}}
<path d={{d}} stroke-linecap="round" stroke-linejoin="round" />
{{/each}}
</svg>
{{/if}}
<span>{{@item.label}}</span>
+32 -9
View File
@@ -1,8 +1,10 @@
// Global settings dialog navigation. Phase 1 renders placeholder content for
// each section; real forms will replace the placeholders one section at a time.
//
// `icon` values are inline SVG path data (24x24, stroke based) so the nav can
// stay data driven without a separate icon component.
// `icon` is an array of SVG path `d` strings (24x24 viewBox, stroke based) so
// the nav can stay data driven without a separate icon component. Icons come
// from Feather (https://feathericons.com) where an equivalent exists; the
// paint brush and puzzle piece are Heroicons because Feather has no match.
export const SETTINGS_GROUPS = [
{
@@ -12,19 +14,25 @@ export const SETTINGS_GROUPS = [
label: 'Appearance',
description:
'Choose your wallpaper, theme, and how the dashboard looks.',
icon: 'M9.53 16.122a3 3 0 0 0-5.78 1.128 2.25 2.25 0 0 1-2.4 2.245 4.5 4.5 0 0 0 8.4-2.245c0-.399-.078-.78-.22-1.128Zm0 0a15.998 15.998 0 0 0 3.388-1.62m-5.043-.025a15.994 15.994 0 0 1 1.622-3.395m3.42 3.42a15.995 15.995 0 0 0 4.764-4.648l3.876-5.814a1.151 1.151 0 0 0-1.597-1.597L14.146 6.32a15.996 15.996 0 0 0-4.649 4.763m3.42 3.42a6.776 6.776 0 0 0-3.42-3.42',
// Heroicons paint brush (no Feather equivalent).
icon: [
'M9.53 16.122a3 3 0 0 0-5.78 1.128 2.25 2.25 0 0 1-2.4 2.245 4.5 4.5 0 0 0 8.4-2.245c0-.399-.078-.78-.22-1.128Zm0 0a15.998 15.998 0 0 0 3.388-1.62m-5.043-.025a15.994 15.994 0 0 1 1.622-3.395m3.42 3.42a15.995 15.995 0 0 0 4.764-4.648l3.876-5.814a1.151 1.151 0 0 0-1.597-1.597L14.146 6.32a15.996 15.996 0 0 0-4.649 4.763m3.42 3.42a6.776 6.776 0 0 0-3.42-3.42',
],
},
{
id: 'clock',
label: 'Clock',
description: 'Pick how times are displayed across the dashboard.',
icon: 'M12 6v6h4.5m4.5 0a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z',
icon: ['M12 2a10 10 0 1 0 0 20a10 10 0 1 0 0-20z', 'M12 6v6l4 2'],
},
{
id: 'site-links',
label: 'Site Links',
description: 'Manage the quick links shown in the top right corner.',
icon: 'M13.19 8.688a4.5 4.5 0 0 1 1.242 7.244l-4.5 4.5a4.5 4.5 0 0 1-6.364-6.364l1.757-1.757m13.35-.622 1.757-1.757a4.5 4.5 0 0 0-6.364-6.364l-4.5 4.5a4.5 4.5 0 0 0 1.242 7.244',
icon: [
'M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71',
'M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71',
],
},
],
},
@@ -35,13 +43,19 @@ export const SETTINGS_GROUPS = [
id: 'connected',
label: 'Connected Apps',
description: 'Review and configure your connected integrations.',
icon: 'M14.25 6.087c0-.355.186-.676.401-.959.221-.29.349-.634.349-1.003 0-1.036-1.007-1.875-2.25-1.875s-2.25.84-2.25 1.875c0 .369.128.713.349 1.003.215.283.401.604.401.959v0a.64.64 0 0 1-.657.643 48.39 48.39 0 0 1-4.163-.3c.186 1.613.293 3.25.315 4.907a.656.656 0 0 1-.658.663v0c-.355 0-.676-.186-.959-.401a1.647 1.647 0 0 0-1.003-.349c-1.036 0-1.875 1.007-1.875 2.25s.84 2.25 1.875 2.25c.369 0 .713-.128 1.003-.349.283-.215.604-.401.959-.401v0c.31 0 .555.26.532.57a48.039 48.039 0 0 1-.642 5.056c1.518.19 3.058.309 4.616.354a.64.64 0 0 0 .657-.643v0c0-.355-.186-.676-.401-.959a1.647 1.647 0 0 1-.349-1.003c0-1.035 1.008-1.875 2.25-1.875 1.243 0 2.25.84 2.25 1.875 0 .369-.128.713-.349 1.003-.215.283-.4.604-.4.959v0c0 .333.277.599.61.58a48.1 48.1 0 0 0 5.427-.63 48.05 48.05 0 0 0 .582-4.717.532.532 0 0 0-.533-.57v0c-.355 0-.676.186-.959.401-.29.221-.634.349-1.003.349-1.035 0-1.875-1.007-1.875-2.25s.84-2.25 1.875-2.25c.37 0 .713.128 1.003.349.283.215.604.401.96.401v0a.656.656 0 0 0 .658-.663 48.422 48.422 0 0 0-.37-5.36c-1.886.342-3.81.574-5.766.689a.578.578 0 0 1-.61-.58v0Z',
// Heroicons puzzle piece (no Feather equivalent).
icon: [
'M14.25 6.087c0-.355.186-.676.401-.959.221-.29.349-.634.349-1.003 0-1.036-1.007-1.875-2.25-1.875s-2.25.84-2.25 1.875c0 .369.128.713.349 1.003.215.283.401.604.401.959v0a.64.64 0 0 1-.657.643 48.39 48.39 0 0 1-4.163-.3c.186 1.613.293 3.25.315 4.907a.656.656 0 0 1-.658.663v0c-.355 0-.676-.186-.959-.401a1.647 1.647 0 0 0-1.003-.349c-1.036 0-1.875 1.007-1.875 2.25s.84 2.25 1.875 2.25c.369 0 .713-.128 1.003-.349.283-.215.604-.401.959-.401v0c.31 0 .555.26.532.57a48.039 48.039 0 0 1-.642 5.056c1.518.19 3.058.309 4.616.354a.64.64 0 0 0 .657-.643v0c0-.355-.186-.676-.401-.959a1.647 1.647 0 0 1-.349-1.003c0-1.035 1.008-1.875 2.25-1.875 1.243 0 2.25.84 2.25 1.875 0 .369-.128.713-.349 1.003-.215.283-.4.604-.4.959v0c0 .333.277.599.61.58a48.1 48.1 0 0 0 5.427-.63 48.05 48.05 0 0 0 .582-4.717.532.532 0 0 0-.533-.57v0c-.355 0-.676.186-.959.401-.29.221-.634.349-1.003.349-1.035 0-1.875-1.007-1.875-2.25s.84-2.25 1.875-2.25c.37 0 .713.128 1.003.349.283.215.604.401.96.401v0a.656.656 0 0 0 .658-.663 48.422 48.422 0 0 0-.37-5.36c-1.886.342-3.81.574-5.766.689a.578.578 0 0 1-.61-.58v0Z',
],
},
{
id: 'notifications',
label: 'Notifications',
description: 'Decide which events should notify you.',
icon: 'M14.857 17.082a23.848 23.848 0 0 0 5.454-1.31A8.967 8.967 0 0 1 18 9.75V9A6 6 0 0 0 6 9v.75a8.967 8.967 0 0 1-2.312 6.022c1.733.64 3.56 1.085 5.455 1.31m5.714 0a24.255 24.255 0 0 1-5.714 0m5.714 0a3 3 0 1 1-5.714 0',
icon: [
'M18 8A6 6 0 0 0 6 8c0 7-3 9-3 9h18s-3-2-3-9',
'M13.73 21a2 2 0 0 1-3.46 0',
],
},
],
},
@@ -52,7 +66,12 @@ export const SETTINGS_GROUPS = [
id: 'events',
label: 'Events',
description: 'Control the upcoming events widget and its sources.',
icon: 'M6.75 3v2.25M17.25 3v2.25M3 18.75V7.5a2.25 2.25 0 0 1 2.25-2.25h13.5A2.25 2.25 0 0 1 21 7.5v11.25m-18 0A2.25 2.25 0 0 0 5.25 21h13.5A2.25 2.25 0 0 0 21 18.75m-18 0v-7.5A2.25 2.25 0 0 1 5.25 9h13.5A2.25 2.25 0 0 1 21 11.25v7.5',
icon: [
'M5 4h14a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2z',
'M16 2v4',
'M8 2v4',
'M3 10h18',
],
},
],
},
@@ -63,7 +82,11 @@ export const SETTINGS_GROUPS = [
id: 'about',
label: 'About Dashtab',
description: 'Version information and project links.',
icon: 'm11.25 11.25.041-.02a.75.75 0 0 1 1.063.852l-.708 2.836a.75.75 0 0 0 1.063.853l.041-.021M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Zm-9-3.75h.008v.008H12V8.25Z',
icon: [
'M12 2a10 10 0 1 0 0 20a10 10 0 1 0 0-20z',
'M12 16v-4',
'M12 8h.01',
],
},
],
},