Repository navigation
How to disable theming of TUIs like nmtui? #2524
|
My theme makes it unusable (light gray text on a light cyan background). Is there a way to stop stylix from theming it and other TUI applications? |
Replies: 1 comment
|
Stylix doesn't theme nmtui itself, so there's no per-app switch. nmtui (newt underneath) draws with your terminal's basic 16 colours, which your terminal's stylix target sets from the scheme. newt's Easiest fix is telling newt to skip colour. Try environment.sessionVariables.NEWT_MONO = "1"; # or home.sessionVariables if home-manager manages your shellLog out and back in. nmtui (and whiptail, anything on newt) then uses your terminal's default text and background, with the focused item in reverse video, so it's readable whatever the sceme. Tested on stylix master (7c065d1) with nmtui 1.56.0. The stylix-side route is Sources: stylix's colour mapping (ghostty), newt's default palette and |
Stylix doesn't theme nmtui itself, so there's no per-app switch. nmtui (newt underneath) draws with your terminal's basic 16 colours, which your terminal's stylix target sets from the scheme. newt's
lightgrayis base05 andblueis base0D, and nmtui's entry fields arelightgrayonblue- so a light base0D gets you light on light.Easiest fix is telling newt to skip colour. Try
NEWT_MONO=1 nmtui, then make it stick:Log out and back in. nmtui (and whiptail, anything on newt) then uses your terminal's default text and background, with the focused item in reverse video, so it's readable…