feat(settings): organize system preferences by category
This commit is contained in:
1 parent
cf0327fcaf
commit
a88a7f550f
16 files changed
+110
-21
No files matched your search
@@ -137,7 +137,7 @@
|
||||
originalSystemApp(container);
|
||||
const panel = container.querySelector('.settings');
|
||||
if (!panel) return;
|
||||
panel.insertAdjacentHTML('beforeend', `<section class="widget-preferences"><div class="eyebrow">${label('heading')}</div><p>${label('hint')}</p><div class="desktop-app-choices">${widgetIds.map(id => `<button type="button" class="chip ${selected().includes(id) ? 'selected' : ''}" aria-pressed="${selected().includes(id)}" onclick="toggleDesktopWidget('${id}')">${label(id)}</button>`).join('')}</div><button class="desktop-text-button" onclick="resetWidgetLayout()">${label('reset')}</button></section>`);
|
||||
panel.insertAdjacentHTML('beforeend', `<section class="widget-preferences" data-settings-group="appearance"><div class="eyebrow">${label('heading')}</div><p>${label('hint')}</p><div class="desktop-app-choices">${widgetIds.map(id => `<button type="button" class="chip ${selected().includes(id) ? 'selected' : ''}" aria-pressed="${selected().includes(id)}" onclick="toggleDesktopWidget('${id}')">${label(id)}</button>`).join('')}</div><button class="desktop-text-button" onclick="resetWidgetLayout()">${label('reset')}</button></section>`);
|
||||
};
|
||||
setInterval(renderWidgets, 60000);
|
||||
window.addEventListener('resize', () => wrappers.forEach((_, id) => place(id)));
|
||||
|
||||
Reference in new issue
Block a user