From 08ea9ff68d9b544242dfe7f0f4409e90f2f24ebd Mon Sep 17 00:00:00 2001 From: Damon Chaplin Date: Wed, 17 Jan 2001 18:45:40 +0000 Subject: gui/e-week-view*.c don't use the theme colors at all within the graphical 2001-01-17 Damon Chaplin * gui/e-week-view*.c * gui/e-day-view*.c: don't use the theme colors at all within the graphical parts of the widgets, since they may clash with our colors. May make them configurable in future so people can tweak them to go with their theme. At least the calendars are usable in any theme now, even though the colors may not go well with the theme. Also set the font of all the EText items in style_set. * gui/e-week-view-event-item.c (e_week_view_event_item_draw): don't draw the icons if we are editing the event. * gui/e-day-view.c: * gui/e-week-view.c: reinstated the optimizations so we don't do a complete relayout if the event's dates haven't been changed. (Though we still do a re-layout when recurring events change, since comparing all the RDATES/RRULES/EXDATES/EXRULES is too much hassle.) A side-effect of this change is that the EWeekView won't crash so often - only recurring events will be a problem. * cal-util/cal-component.[hc]: added function to check if the start and end dates of a component match. Used for optimizing the updating of the EDayView & EWeekView. svn path=/trunk/; revision=7593 --- calendar/gui/e-day-view.h | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'calendar/gui/e-day-view.h') diff --git a/calendar/gui/e-day-view.h b/calendar/gui/e-day-view.h index b02bcd7710..2379a76b87 100644 --- a/calendar/gui/e-day-view.h +++ b/calendar/gui/e-day-view.h @@ -136,11 +136,20 @@ typedef enum { E_DAY_VIEW_COLOR_BG_WORKING, E_DAY_VIEW_COLOR_BG_NOT_WORKING, - E_DAY_VIEW_COLOR_EVENT_VBAR, + E_DAY_VIEW_COLOR_BG_SELECTED, + E_DAY_VIEW_COLOR_BG_GRID, + + E_DAY_VIEW_COLOR_BG_TOP_CANVAS, + E_DAY_VIEW_COLOR_BG_TOP_CANVAS_SELECTED, + E_DAY_VIEW_COLOR_BG_TOP_CANVAS_GRID, + E_DAY_VIEW_COLOR_EVENT_VBAR, E_DAY_VIEW_COLOR_EVENT_BACKGROUND, E_DAY_VIEW_COLOR_EVENT_BORDER, - + + E_DAY_VIEW_COLOR_LONG_EVENT_BACKGROUND, + E_DAY_VIEW_COLOR_LONG_EVENT_BORDER, + E_DAY_VIEW_COLOR_LAST } EDayViewColors; -- cgit