Closed geier closed 11 months ago
just wondering if it would be possible to source another config file within the config
many people use both a 'dark' and a 'light' theme (I do myself: catppuccin latte/frappe) and like being able to switch from one to another depending on the time of the day
with the proposed single file config, this requires having both themes within the config, commenting out one or the other depending on which theme should be applied
@tgy for that use case one could write a color theme plugin. I'll upload my first try tonight.
could, we should add documentation for that! i can help
@tgy see here https://github.com/geier/khal_gruvbox
Mostly useful for now for finding parts which are not theme-able yet
could, we should add documentation for that! i can help
we should, but only after we have properly worked out how this is going to work in the long run.
complication: the code highlighting days and events in the calendar's color remoes the foreground/background color. We might also need to add different attributes for calendar days and events.
@geier could you share your part of the config with the color definitions you are testing?
i checked out your version of the code in my local environment and will help you test it!
@tgy it should be enough to follow the instructions here: https://github.com/geier/khal_gruvbox, if not, I forgot to check something in.
I am unsure of what is the current state of this, but I would really love the option to have weekends coloured differently than weekdays. Thanks.
Needs rebase
I have removed the color theme plugin part (and moved it to #1303).
I am unsure of what is the current state of this, but I would really love the option to have weekends coloured differently than weekdays. Thanks.
good point, tracked in https://github.com/pimutils/khal/issues/1304
question i have.
How should be colors with spaces in name be edited? like list focused
?
Did you try wrrapping them like this "list focused"
or 'list focused'
?
This PR allows to override ikhal's color theme with a custom palette. This is useful to style certain elements of ikhal individually.
Palette entries take the form of
key = foreground, background, mono, foreground_high, background_high
where foreground and background are used in "low color mode" and foreground_high and background_high are used in "high color mode" and mono if only monocolor is supported. If you don't want to set a value for a certain color, use an empty string (''
). Valid entries for low color mode are listed on the urwid website. For high color mode you can use any valid 24-bit color value, e.g.'#ff0000'
(Note: 24-bit color values must be enclosed in quotes).Most modern terminals should support high color mode.
Example entry:
header = light red, default, default, '#ff0000', '#ff0011'
See the default palettes inkhal/ui/colors.py
for all available keys. If you can't theme an element in ikhal, please open an issue on github.Example config:
leads to this ugliness:
fixes #1219