Unify plugin settings container hierarchy (Plugins tab & Desktop Widgets)

Aperta
#4,392 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
15/100
Tipo di issue
Refactoring
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Ambito
design, frontend

Direzione di ricerca

Start by reading PluginSettingsPage and PluginDesktopWidgetSettings alongside the SettingsCard and SettingsGroup components to see the current double-wrapping, and review PR #4391 for the partial Desktop Widgets attempt. The thread is an open design question between auto-wrapping bare rows and requiring plugins to declare their own containers, so the first step is a maintainer decision rather than a patch. Done means both host containers share one layout approach and bare-row plugins still render correctly.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

breaking discussion

Right now both PluginSettingsPage and PluginDesktopWidgetSettings wrap plugin settings inside an outer SettingsCard. That works for plugins with bare rows (ToggleSetting, SliderSetting, etc.), but plugins that define their own SettingsCard / SettingsGroup sections end up double-wrapped and need darker slotColor workarounds.

I opened https://github.com/duxlabs-dev/dux-shell/pull/4391 as a partial fix for Desktop Widgets, though it's still a bit of a workaround and doesn't cover the Plugins tab (PluginSettingsPage).

Since changing the host container could break existing bare-row plugins, I wanted to check what direction maintainers prefer before doing a proper fix (and unifying the settings layout across official dux-plugins):

  1. Auto-wrap bare rows inside PluginSettings and drop the outer SettingsCard from PluginSettingsPage / PluginDesktopWidgetSettings (keeps backwards compatibility).
  2. Require plugins to use SettingsCard / SettingsGroup directly (cleaner, but breaking for bare-row plugins).

For comparison (the after got 1 less container so it is much cleaner)

Before After
Screenshot-2026-11-23_12-11-49 Screenshot-2026-11-23_12-16-11
Lingua principale
QML
Stelle
8.4k
Fork
549
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di AvengeMedia/DankMaterialShell

Tutte le issue di AvengeMedia/DankMaterialShell

Issue simili

Altre issue su Design

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.