A bunch of UI fixes.

Made lighter the background of the views.
Added padding and fixed class to GcalToolbar.
This commit is contained in:
Erick Pérez Castellanos
2012-07-19 01:26:45 -04:00
parent 20dd623ba4
commit f33feaf6b1
4 changed files with 17 additions and 8 deletions
+11 -1
View File
@@ -19,6 +19,15 @@
margin: 0;
}
.main-toolbar {
padding-top: 12px;
padding-bottom: 12px;
}
.main-toolbar .button {
padding: 2px;
}
.sources-views {
padding: 12px;
border-radius: 0;
@@ -40,10 +49,11 @@
.calendar-view header {
font: bold 12;
background-color: @theme_bg_color;
}
.calendar-view {
background-color: #F6F6F6;
padding: 6px;
font: 10;
}
+2
View File
@@ -454,6 +454,8 @@ gcal_month_view_draw (GtkWidget *widget,
gtk_style_context_get_padding (context, state, &padding);
gtk_widget_get_allocation (widget, &alloc);
gtk_render_background (context, cr, alloc.x, alloc.y, alloc.width, alloc.height);
gcal_month_view_draw_header (GCAL_MONTH_VIEW (widget), cr, &alloc, &padding);
gcal_month_view_draw_grid (GCAL_MONTH_VIEW (widget), cr, &alloc, &padding);
+1 -1
View File
@@ -183,7 +183,7 @@ gcal_toolbar_constructed (GObject *object)
GTK_ICON_SIZE_BUTTON);
context = gtk_widget_get_style_context (priv->widget);
gtk_style_context_add_class (context, "gcal-main-toolbar");
gtk_style_context_add_class (context, "main-toolbar");
/* adding toolbar */
bin = gtk_clutter_actor_get_widget (GTK_CLUTTER_ACTOR (object));
+3 -6
View File
@@ -876,12 +876,6 @@ gcal_week_view_draw_header (GcalWeekView *view,
context = gtk_widget_get_style_context (widget);
state = gtk_widget_get_state_flags (widget);
gtk_style_context_save (context);
gtk_style_context_add_region (context, "header", 0);
gtk_render_background (context, cr,
alloc->x, alloc->y,
alloc->width, start_grid_y);
/* adding shadow */
pattern = cairo_pattern_create_linear(0, start_grid_y - 18, 0, start_grid_y + 6);
@@ -894,6 +888,9 @@ gcal_week_view_draw_header (GcalWeekView *view,
cairo_rectangle(cr, 0, start_grid_y, alloc->width, 6);
cairo_fill(cr);
gtk_style_context_save (context);
gtk_style_context_add_region (context, "header", 0);
gtk_style_context_get_color (context, state, &color);
cairo_set_source_rgb (cr, color.red, color.green, color.blue);