feature/IO-3255-simplified-parts-management - Beef Up Change Request Parser, add Change Request documentation data
This commit is contained in:
@@ -424,6 +424,9 @@ export function ScheduleEventComponent({
|
||||
|
||||
// Adjust event color for dark mode if needed
|
||||
const getEventBackground = () => {
|
||||
if (event?.block) {
|
||||
return "var(--event-block-bg)"; // Use a specific color for dark mode
|
||||
}
|
||||
const baseColor = event.color && event.color.hex ? event.color.hex : event.color || "var(--event-bg-fallback)";
|
||||
// Optionally adjust color for dark mode (e.g., lighten if too dark)
|
||||
return baseColor;
|
||||
|
||||
Reference in New Issue
Block a user