window: add a nice style to the calendar listbox
This commit is contained in:
committed by
Erick Pérez Castellanos
parent
134d8678fe
commit
c3d34ae149
@@ -227,3 +227,7 @@ GcalEventWidget.color-light:backdrop {
|
|||||||
.calendar-list {
|
.calendar-list {
|
||||||
background-color: transparent;
|
background-color: transparent;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.calendar-list > GtkListBoxRow{
|
||||||
|
border-radius: 4px;
|
||||||
|
}
|
||||||
|
|||||||
@@ -820,11 +820,18 @@ make_row_from_source (GcalWindow *window,
|
|||||||
{
|
{
|
||||||
GcalWindowPrivate *priv = gcal_window_get_instance_private (window);
|
GcalWindowPrivate *priv = gcal_window_get_instance_private (window);
|
||||||
GtkWidget *label, *icon, *separator, *checkbox, *box, *row;
|
GtkWidget *label, *icon, *separator, *checkbox, *box, *row;
|
||||||
|
GtkStyleContext *context;
|
||||||
GdkPixbuf *pixbuf;
|
GdkPixbuf *pixbuf;
|
||||||
GdkRGBA color;
|
GdkRGBA color;
|
||||||
|
|
||||||
row = gtk_list_box_row_new ();
|
row = gtk_list_box_row_new ();
|
||||||
|
|
||||||
|
/* apply some nice styling */
|
||||||
|
context = gtk_widget_get_style_context (row);
|
||||||
|
gtk_style_context_add_class (context, "button");
|
||||||
|
gtk_style_context_add_class (context, "flat");
|
||||||
|
gtk_style_context_add_class (context, "menuitem");
|
||||||
|
|
||||||
/* main box */
|
/* main box */
|
||||||
box = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 12);
|
box = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 12);
|
||||||
gtk_container_set_border_width (GTK_CONTAINER (box), 6);
|
gtk_container_set_border_width (GTK_CONTAINER (box), 6);
|
||||||
|
|||||||
Reference in New Issue
Block a user