Feature: Theme option to make `cmdbar_bg` transparent
- Vorherrschende Sprache
- Rust
- Sterne
- 22.5k
- Forks
- 773
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Beschreibung
When using a terminal with opacity/blur, it would be nice to disable the bg fill of the cmdbar items. Currently, it looks like this:
And this is what I want:
### Solution alternatives
IMO the idiomatic way to do this would be to allow `cmdbar_bg: None` in the theme config file, but since configs are applied via `struct_patch`, it would require turning the field into `Option` and `None` by default (if the default is `Some(Blue)`, patching `None` won't override it).
Another way would be creating a new config option like `disable_cmdbar_bg: bool` (default false).
I implemented the first one in a fork, but don't know if it's the preferred alternative. I'd be happy to make a PR :)
Beitragsleitfaden
Rechercherichtung
Das Issue nennt `cmdbar_bg`, Theme-Konfigurationsdateien und `struct_patch`; beginne damit nachzuverfolgen, wo `cmdbar_bg` definiert und angewendet wird. Vergleiche die vorgeschlagenen Ansätze mit `Option` und Boolean-Optionen und überprüfe anschließend, dass ein Theme die Füllung deaktivieren kann, während das Standard-Erscheinungsbild erhalten bleibt.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- rust
- Bereich
- cli
- Issue-Typ
- Feature
- Schwierigkeit
- 3/5
- Geschätzter Aufwand
- 1-2 Tage
- Aktivitätsstatus
- Ruhig
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 58/100