user-accounts: Make the UmCarouselItems look the same on hover

UmCarouselItem is a button, but since we have now the arrow which
points to the selected item, we don't need any other visual
feedback (such as hover border/background).

https://bugzilla.gnome.org/show_bug.cgi?id=767065
This commit is contained in:
Felipe Borges 2016-12-21 15:27:28 +01:00
parent d2529a1a09
commit 1610fe581f
2 changed files with 9 additions and 0 deletions

View file

@ -18,3 +18,10 @@
border-bottom-color: @theme_bg_color;
margin-bottom: -2px;
}
.carousel-item {
background: transparent;
box-shadow: none;
border: none;
color: @theme_fg_color;
}

View file

@ -48,6 +48,8 @@ static void
um_carousel_item_init (UmCarouselItem *self)
{
gtk_toggle_button_set_mode (GTK_TOGGLE_BUTTON (self), FALSE);
gtk_style_context_add_class (gtk_widget_get_style_context (GTK_WIDGET (self)),
"carousel-item");
}
struct _UmCarousel {