expvarmon icon indicating copy to clipboard operation
expvarmon copied to clipboard

ability to switch color theme

Open astavonin opened this issue 9 years ago • 2 comments

The submission introduces new flag theme. There are to possible values: dark (default value, current helloworld theme) and default (theme based on terminal settings).

astavonin avatar Feb 21 '16 01:02 astavonin

Hi Alex, thanks for PR and sorry for the response delay

I initially dumped themes' support in favor of only one cause it would require some efforts to make UI looks great with all themes (choosing default colors, mainly), and TermUI currently doesn't provide clear theme framework. Taking into account there are only two themes available, I decided it's worth it at all.

Anyway, if there is a demand for it, I don't mind introducing support for themes in expvarmon, but adding new flag option doesn't look justified for me. I doubt this will be used a lot.

So, what do you think if we move configuration part into environment variable, say "EXPVARMON_THEME"?

divan avatar Mar 04 '16 15:03 divan

Personally, I prefer to use key. It bit more flexible and explicit as you always knows your flags and able to change it easily.

astavonin avatar Mar 06 '16 13:03 astavonin