-
-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Option for Background Color and Font Colors for each calendar #155
base: main
Are you sure you want to change the base?
Conversation
Added info about showLegend and calendar event background
added calendar var for Background Color on events
@skilly00 Should an option be added for font color at the same time if this pull is allowing for background color change? I know card mod would work but might be easier adding another option. If the user adds a really light background the default font color wont show well. |
Added 2 new Variables for Calendars on Events. primary text + secondary text colors
Add CSS Map to event Title and --primary-text-color
I added that per your request I have tested it with Firefox and Safari and all changes made work. |
Font color
I'd rather keep the number of options, especially for styling, limited where possible. You can already style events for each calendar differently using card_mod, as each event has a card_mod:
style: |
.container .day .events .event[data-entity="calendar.my_calendar"] .title {
color: #ff0000;
} This will change the title color for events from entity |
Small bit of code to add background color for each calendar if desired. Also readme was updated to explain and add function for legend which was missing.