gitui-org / gitui-org/gitui

Feature: Theme option to make `cmdbar_bg` transparent

Aperta
#3,011 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub
feature-request
Lingua principale
Rust
Stelle
22.5k
Fork
773
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

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:

Image

And this is what I want:

Image

### 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 :)

Guida per i contributori

Apri la guida per i contributori

Direzione di ricerca

La issue cita `cmdbar_bg`, i file di configurazione dei temi e `struct_patch`; inizia tracciando dove `cmdbar_bg` viene definito e applicato. Confronta gli approcci proposti basati su `Option` e su un’opzione booleana, quindi verifica che un tema possa disabilitare il riempimento mantenendo l’aspetto predefinito.

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

Valutazione

Stack tecnologico
rust
Ambito
cli
Tipo di issue
Funzionalità
Difficoltà
3/5
Tempo stimato
1-2 giorni
Stato di attività
Tranquilla
Chiarezza
Abbastanza chiara
Idoneità per principianti
58/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.