DietPi icon indicating copy to clipboard operation
DietPi copied to clipboard

DietPi-Globals | Implement support for whiptail theming

Open guillaumeraffi opened this issue 8 months ago • 3 comments

Describe the solution you'd like:

  • Use the website color scheme in the whiptail menus

guillaumeraffi avatar May 03 '25 23:05 guillaumeraffi

Oh wow, I was not aware that it is even possible to color, but it is, via NEWT_COLORS environment variable: https://pagure.io/newt/blob/master/f/newt.h

Here some examples: https://gist.github.com/ymkins/bb0885326f3e38850bc444d89291987a Here the defaults: https://pagure.io/newt/blob/master/f/newt.c

One problem is that for any defaults we're bound to at least the 4-bit ANSI color codes, to assure it works on all terminals: https://en.wikipedia.org/wiki/ANSI_escape_code#3-bit_and_4-bit Though I see also "brown" in the source code in one place, which is not 4-bit ANSI color 🤔. Generally the question is how these color names are applied, and whether also other codes are possible than the ones we see in the source code/examples.

MichaIng avatar May 05 '25 11:05 MichaIng

I guess some general whiptail theming would be great: #7528

We would provide a default color palette, the mono colors and implement some whiptail-based UI to adjust element colors individually, applying the result right away.

MichaIng avatar May 11 '25 21:05 MichaIng

Image have also been playing with some logos, let me know if you are interested

guillaumeraffi avatar May 13 '25 20:05 guillaumeraffi