khal
khal copied to clipboard
Change ikhal's color theme through config file
Colors color theme should be changeable through the color theme.
This should be easily doable by literal_eval
ing a string and adding it to the selected color theme (as urwid iterates over the palette list and later attributes overwrite earlier ones with the same name).
Proper documentation might be an issue.
I am Looking for creating a 256colors theme with few variables to change defbgcolor = 'h0' defcolor = 'h2' defcolor2 = 'h11' colors256 = [ ('header', '', '', '', defcolor, defbgcolor, ), ('footer', '', '','', defcolor2, defbgcolor, ), (...) ] I like use 256 color code because urwid & the console's parameters does not impact my choices (I ask for h11 and have it) Is a 256colors theme looking good for a future pull request ?
For my understood I've made an ascii draw in my color.py
+header---------------------------------------------------
| dayname date header focused/selected
|mon
|th td date header focused/selected
|name
|
+footer-----------------------------------------------------
Is that look good for documentation in that file ?
N.B. I am still searching how does khal's working for 'list', 'list focused' and well, the most part of the others parameters ^^
fixed with #1279