#
# The PipCalendar theme.
#
pixmap_path "/usr/share/calendar/pixmaps"
gtk-icon-sizes="gtk-button=42,42"

style "calendar-style" {
	fg[NORMAL]    = "White"
	fg[ACTIVE]    = "White"
	fg[PRELIGHT]  = "White"
	
	bg[NORMAL]    = "Black"
	bg[ACTIVE]    = "Black"
	bg[PRELIGHT]  = "Black"
	
	text[NORMAL]    = "Gray"
	text[ACTIVE]    = "Gray"
	text[PRELIGHT]  = "Gray"
	
	PipCalendar::week-label-xalign = 0.5
	PipCalendar::week-label-yalign = 0.5

	PipCalendar::font-color-other = "#808080"
	engine "sapwood" {
		#
		# Red entries
		#
		image {
			function        = BOX
			state           = NORMAL
			detail          = "hbar-red"
			file            = "../../icons/hicolor/scalable/hildon/calendar_event_red.png"
			border          = { 3, 3, 3, 3}
			stretch         = TRUE
		}
		image {
			function        = BOX
			state           = NORMAL
			detail          = "hbar-red-dim"
			file            = "../../icons/hicolor/scalable/hildon/calendar_event_red_dim.png"
			border          = { 3, 3, 3, 3}
			stretch         = TRUE
		}
		#
		# Green entries.
		#
		image {
			function        = BOX
			state           = NORMAL
			detail          = "hbar-green"
			file            = "../../icons/hicolor/scalable/hildon/calendar_event_green.png"
			border          = { 3, 3, 3, 3 }
			stretch         = TRUE
		}
		image {
			function        = BOX
			state           = NORMAL
			detail          = "hbar-green-dim"
			file            = "../../icons/hicolor/scalable/hildon/calendar_event_green_dim.png"
			border          = { 3, 3, 3, 3 }
			stretch         = TRUE
		}
		#
		# Blue entries.
		#
		image {
			function        = BOX
			state           = NORMAL
			detail          = "hbar-blue"
			file            = "../../icons/hicolor/scalable/hildon/calendar_event_blue.png"
			border          = { 3, 3, 3, 3 }
			stretch         = TRUE
		}
		image {
			function        = BOX
			state           = NORMAL
			detail          = "hbar-blue-dim"
			file            = "../../icons/hicolor/scalable/hildon/calendar_event_blue_dim.png"
			border          = { 3, 3, 3, 3 }
			stretch         = TRUE
		}
		#
		# White entries
		#
		image {
			function        = BOX
			state           = NORMAL
			detail          = "hbar-white"
			file            = "../../icons/hicolor/scalable/hildon/calendar_event_white.png"
			border          = { 3, 3, 3, 3 }
			stretch         = TRUE
		}
		image {
			function        = BOX
			state           = NORMAL
			detail          = "hbar-white-dim"
			file            = "../../icons/hicolor/scalable/hildon/calendar_event_white_dim.png"
			border          = { 3, 3, 3, 3 }
			stretch         = TRUE
		}
		#
		# Yellow entries
		#
		image {
			function        = BOX
			state           = NORMAL
			detail          = "hbar-yellow"
			file            = "../../icons/hicolor/scalable/hildon/calendar_event_yellow.png"
			border          = { 3, 3, 3, 3 }
			stretch         = TRUE
		}
		image {
			function        = BOX
			state           = NORMAL
			detail          = "hbar-yellow-dim"
			file            = "../../icons/hicolor/scalable/hildon/calendar_event_yellow_dim.png"
			border          = { 3, 3, 3, 3 }
			stretch         = TRUE
		}
		
		#
		# DarkRed entries
		#
		image {
			function        = BOX
			state           = NORMAL
			detail          = "hbar-darkred"
			file            = "../../icons/hicolor/scalable/hildon/calendar_event_darkred.png"
			border          = { 3, 3, 3, 3 }
			stretch         = TRUE
		}
		image {
			function        = BOX
			state           = NORMAL
			detail          = "hbar-darkred-dim"
			file            = "../../icons/hicolor/scalable/hildon/calendar_event_darkred_dim.png"
			border          = { 3, 3, 3, 3 }
			stretch         = TRUE
		}
		#
		# Darkblue entries
		#
		image {
			function        = BOX
			state           = NORMAL
			detail          = "hbar-darkblue"
			file            = "../../icons/hicolor/scalable/hildon/calendar_event_darkblue.png"
			border          = { 3, 3, 3, 3 }
			stretch         = TRUE
		}
		image {
			function        = BOX
			state           = NORMAL
			detail          = "hbar-darkblue-dim"
			file            = "../../icons/hicolor/scalable/hildon/calendar_event_darkblue_dim.png"
			border          = { 3, 3, 3, 3 }
			stretch         = TRUE
		}
		#
		# Darkgreen entries
		#
		image {
			function        = BOX
			state           = NORMAL
			detail          = "hbar-darkgreen"
			file            = "../../icons/hicolor/scalable/hildon/calendar_event_darkgreen.png"
			border          = { 3, 3, 3, 3 }
			stretch         = TRUE
		}
		image {
			function        = BOX
			state           = NORMAL
			detail          = "hbar-darkgreen-dim"
			file            = "../../icons/hicolor/scalable/hildon/calendar_event_darkgreen_dim.png"
			border          = { 3, 3, 3, 3 }
			stretch         = TRUE
		}
		#
		# Orange entries
		#
		image {
			function        = BOX
			state           = NORMAL
			detail          = "hbar-orange"
			file            = "../../icons/hicolor/scalable/hildon/calendar_event_orange.png"
			border          = { 3, 3, 3, 3 }
			stretch         = TRUE
		}
		image {
			function        = BOX
			state           = NORMAL
			detail          = "hbar-orange-dim"
			file            = "../../icons/hicolor/scalable/hildon/calendar_event_orange_dim.png"
			border          = { 3, 3, 3, 3 }
			stretch         = TRUE
		}
		#
		# Violet entries
		#
		image {
			function        = BOX
			state           = NORMAL
			detail          = "hbar-violet"
			file            = "../../icons/hicolor/scalable/hildon/calendar_event_violet.png"
			border          = { 3, 3, 3, 3 }
			stretch         = TRUE
		}
		image {
			function        = BOX
			state           = NORMAL
			detail          = "hbar-violet-dim"
			file            = "../../icons/hicolor/scalable/hildon/calendar_event_violet_dim.png"
			border          = { 3, 3, 3, 3 }
			stretch         = TRUE
		}
   	}
}
widget_class "*PipCalendar" style "calendar-style"

#
# The PipWeekView theme.
#
style "week-view-style" {
	fg[NORMAL]    = "White"
	fg[ACTIVE]    = "White"
	fg[PRELIGHT]  = "White"
	
	#bg[NORMAL]    = "Black"
	bg[ACTIVE]    = "Black"
	bg[PRELIGHT]  = "Black"
	
	text[NORMAL]    = "White"
	text[ACTIVE]    = "Black"
	text[PRELIGHT]  = "White"
	
	engine "sapwood" {
		#
		# Entry images for every calendar color.
		#
		
		# Red events
		image {
			function        = BOX
			state           = NORMAL
			detail          = "hbar-red"
			file            = "../../icons/hicolor/24x24/hildon/calendar_event_hour_red.png"
			border          = { 10, 10, 10, 10 }
			stretch         = TRUE
		}
		image {
			function        = BOX
			state           = NORMAL
			detail          = "allday-red"
			file            = "../../icons/hicolor/scalable/hildon/calendar_colors_allday_red.png"
			border          = { 10, 10, 10, 10 }
			stretch         = TRUE
		}
		
		# Green events
		image {
			function        = BOX
			state           = NORMAL
			detail          = "hbar-green"
			file            = "../../icons/hicolor/24x24/hildon/calendar_event_hour_green.png"
			border          = { 10, 10, 10, 10 }
			stretch         = TRUE
		}
		image {
			function        = BOX
			state           = NORMAL
			detail          = "allday-green"
			file            = "../../icons/hicolor/scalable/hildon/calendar_colors_allday_green.png"
			border          = { 10, 10, 10, 10 }
			stretch         = TRUE
		}

		# Blue events
		image {
			function        = BOX
			state           = NORMAL
			detail          = "hbar-blue"
			file            = "../../icons/hicolor/24x24/hildon/calendar_event_hour_blue.png"
			border          = { 10, 10, 10, 10 }
			stretch         = TRUE
		}
		image {
			function        = BOX
			state           = NORMAL
			detail          = "allday-blue"
			file            = "../../icons/hicolor/scalable/hildon/calendar_colors_allday_blue.png"
			border          = { 10, 10, 10, 10 }
			stretch         = TRUE
		}

		# White events
		image {
			function        = BOX
			state           = NORMAL
			detail          = "hbar-white"
			file            = "../../icons/hicolor/24x24/hildon/calendar_event_hour_white.png"
			border          = { 10, 10, 10, 10 }
			stretch         = TRUE
		}
		image {
			function        = BOX
			state           = NORMAL
			detail          = "allday-white"
			file            = "../../icons/hicolor/scalable/hildon/calendar_colors_allday_white.png"
			border          = { 10, 10, 10, 10 }
			stretch         = TRUE
		}
	
		# Yellow events
		image {
			function        = BOX
			state           = NORMAL
			detail          = "hbar-yellow"
			file            = "../../icons/hicolor/24x24/hildon/calendar_event_hour_yellow.png"
			border          = { 10, 10, 10, 10 }
			stretch         = TRUE
		}
		image {
			function        = BOX
			state           = NORMAL
			detail          = "allday-yellow"
			file            = "../../icons/hicolor/scalable/hildon/calendar_colors_allday_yellow.png"
			border          = { 10, 10, 10, 10 }
			stretch         = TRUE
		}

		# Dark red events
		image {
			function        = BOX
			state           = NORMAL
			detail          = "hbar-darkred"
			file            = "../../icons/hicolor/24x24/hildon/calendar_event_hour_darkred.png"
			border          = { 10, 10, 10, 10 }
			stretch         = TRUE
		}
		image {
			function        = BOX
			state           = NORMAL
			detail          = "allday-darkred"
			file            = "../../icons/hicolor/scalable/hildon/calendar_colors_allday_darkred.png"
			border          = { 10, 10, 10, 10 }
			stretch         = TRUE
		}
		
		# Dark blue events
		image {
			function        = BOX
			state           = NORMAL
			detail          = "hbar-darkblue"
			file            = "../../icons/hicolor/24x24/hildon/calendar_event_hour_darkblue.png"
			border          = { 10, 10, 10, 10 }
			stretch         = TRUE
		}
		image {
			function        = BOX
			state           = NORMAL
			detail          = "allday-darkblue"
			file            = "../../icons/hicolor/scalable/hildon/calendar_colors_allday_darkblue.png"
			border          = { 10, 10, 10, 10 }
			stretch         = TRUE
		}

		# Darkgreen events
		image {
			function        = BOX
			state           = NORMAL
			detail          = "hbar-darkgreen"
			file            = "../../icons/hicolor/24x24/hildon/calendar_event_hour_darkgreen.png"
			border          = { 10, 10, 10, 10 }
			stretch         = TRUE
		}
		image {
			function        = BOX
			state           = NORMAL
			detail          = "allday-darkgreen"
			file            = "../../icons/hicolor/scalable/hildon/calendar_colors_allday_darkgreen.png"
			border          = { 10, 10, 10, 10 }
			stretch         = TRUE
		}
		
		# Orange events
		image {
			function        = BOX
			state           = NORMAL
			detail          = "hbar-orange"
			file            = "../../icons/hicolor/24x24/hildon/calendar_event_hour_orange.png"
			border          = { 10, 10, 10, 10 }
			stretch         = TRUE
		}
		image {
			function        = BOX
			state           = NORMAL
			detail          = "allday-orange"
			file            = "../../icons/hicolor/scalable/hildon/calendar_colors_allday_orange.png"
			border          = { 10, 10, 10, 10 }
			stretch         = TRUE
		}
		
		# Violet events
		image {
			function        = BOX
			state           = NORMAL
			detail          = "hbar-violet"
			file            = "../../icons/hicolor/24x24/hildon/calendar_event_hour_violet.png"
			border          = { 10, 10, 10, 10 }
			stretch         = TRUE
		}
		image {
			function        = BOX
			state           = NORMAL
			detail          = "allday-violet"
			file            = "../../icons/hicolor/scalable/hildon/calendar_colors_allday_violet.png"
			border          = { 10, 10, 10, 10 }
			stretch         = TRUE
		}

		#
		# The horizontal line in the week view table.
		#
		image {
			function        = HLINE
			state           = NORMAL
			detail          = "hline"
			file            = "../../../../etc/hildon/theme/calendar/calendar_week_hour_line.png"
			border          = { 1, 0, 0, 0 }
		}
		
		#
		# Bitmap for generic area cell pressed state.
		#
		image {
			function        = BOX
			state           = NORMAL
			detail          = "pressed"
			file            = "../../../../etc/hildon/theme/calendar/generic_area_pressed.png"
			border          = { 10, 10, 10, 10 }
		}
	}
}
widget_class "*PipWeekView*" style "week-view-style"


#
# The PipAgendaView theme.
#
style "agenda-view-style" {
#	bg[NORMAL]    = "Red"
	bg[ACTIVE]    = "Red"
	bg[PRELIGHT]  = "Red"
	PipAgendaView::detail-filenames = {
		"calendar_agenda_row_first.png",
		"calendar_agenda_row_middle.png",
		"calendar_agenda_row_last.png",
		"calendar_agenda_row_first_last.png"
		"calendar_agenda_row_pressed.png"
		}
	PipDayView::detail-filenames = {
		"calendar_agenda_row_first.png",
		"calendar_agenda_row_middle.png",
		"calendar_agenda_row_last.png",
		"calendar_agenda_row_first_last.png"
		"calendar_agenda_row_pressed.png"
		}

	engine "sapwood" {
		image {
			function        = BOX
			state           = NORMAL
			detail          = "av-entry-first"
			file            = "../../../../etc/hildon/theme/calendar/calendar_agenda_row_first.png"
			border          = { 20, 20, 20, 40 }
			stretch         = TRUE
		}
		image {
			function        = BOX
			state           = NORMAL
			detail          = "av-entry-norm"
			file            = "../../../../etc/hildon/theme/calendar/calendar_agenda_row_middle.png"
			border          = { 20, 20, 20, 40 }
			stretch         = TRUE
		}
		image {
			function        = BOX
			state           = NORMAL
			detail          = "av-entry-last"
			file            = "../../../../etc/hildon/theme/calendar/calendar_agenda_row_last.png"
			border          = { 20, 20, 20, 40 }
			stretch         = TRUE
		}
		image {
			function        = BOX
			state           = NORMAL
			detail          = "av-entry-first-last"
			file            = "../../../../etc/hildon/theme/calendar/calendar_agenda_row_first_last.png"
			border          = { 20, 20, 20, 40 }
			stretch         = TRUE
		}
		image {
			function        = BOX
			state           = NORMAL
			detail          = "av-entry-button-normal"
			file            = "../../../../etc/hildon/theme/images/FingerButtonNormal.png"
			border          = { 20, 20, 20, 40 }
			stretch         = TRUE
		}
		image {
			function        = BOX
			state           = NORMAL
			detail          = "av-entry-button-pressed"
			file            = "../../../../etc/hildon/theme/images/FingerButtonPressed.png"
			border          = { 20, 20, 20, 40 }
			stretch         = TRUE
		}
	}
}
widget_class "*PipAgendaView*" style "agenda-view-style"
widget_class "*PipDayView*" style "agenda-view-style"


#
# The style for the windows and dialogs.
#
#style "window-style" {
#	bg[NORMAL]    = "#323232"
#	bg[ACTIVE]    = "#323232"
#	bg[PRELIGHT]  = "#323232"
#	
#	fg[NORMAL] = "White"
#}
#widget_class "*PipCalendarWindow*" style "window-style"
#widget_class "*PipChooserDialog*" style "window-style"
#widget_class "*PipCalendarSettingsDialog*" style "window-style"
#widget_class "*PipDateSelectionWindow*" style "window-style"
#widget_class "*PipTimeSelectionWindow*" style "window-style"
#widget_class "*PipCalendarsWindow*" style "window-style"
#widget_class "*PipCalendarSourcesDialog*" style "window-style"
#widget_class "*PipCalendarSourceDialog*" style "window-style"
#widget_class "*PipCalendarEventWindow*" style "window-style"
#widget_class "*PipCalendarTaskWindow*" style "window-style"
#widget_class "*PipCalendarNoteWindow*" style "window-style"
#widget_class "*PipCalendarWizardDialog*" style "window-style"


#
# 
#
style "window-background-images" {
	PipCalendarWindow::monthly-bg-image-files = {
		"qgn_calendar_bg_jan.jpg",
		"qgn_calendar_bg_feb.jpg",
		"qgn_calendar_bg_mar.jpg",
		"qgn_calendar_bg_apr.jpg",
		"qgn_calendar_bg_may.jpg",
		"qgn_calendar_bg_jun.jpg",
		"qgn_calendar_bg_jul.jpg",
		"qgn_calendar_bg_aug.jpg",
		"qgn_calendar_bg_sep.jpg",
		"qgn_calendar_bg_oct.jpg",
		"qgn_calendar_bg_nov.jpg",
		"qgn_calendar_bg_dec.jpg"
	}
}
widget_class "*PipCalendarWindow*" style "window-background-images"

#
# Style for the event view
#
style "event-view-style" {
	bg[NORMAL] = "#323232"
	fg[NORMAL] = "White"
}
widget_class "*.PipEventView.*" style "event-view-style"

#
# The labels.
#
style "font-style" {
	fg[NORMAL] = "White"
	font_name = "Nokia Sans 11.625"
}
widget_class "*.PipCalendar.*" style "font-style"
widget_class "*.PipWeekView.*" style "font-style"
widget_class "*.PipAgendaView.*" style "font-style"
#widget_class "*.PipEventView.*" style "font-style"
widget_class "*.PipCalendarEventWindow.*" style "font-style"

