[gnome-control-center/wip/feborges/new-users-panel: 66/66] user-accounts: Make the UmCarouselItems look the same on hover
- From: Felipe Borges <felipeborges src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center/wip/feborges/new-users-panel: 66/66] user-accounts: Make the UmCarouselItems look the same on hover
- Date: Wed, 8 Feb 2017 13:29:05 +0000 (UTC)
commit 6f4f24a107c0e16ba03ab042e97b47eb2f284795
Author: Felipe Borges <felipeborges gnome org>
Date: Wed Dec 21 15:27:28 2016 +0100
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
panels/user-accounts/data/carousel.css | 7 +++++++
panels/user-accounts/um-carousel.c | 2 ++
2 files changed, 9 insertions(+), 0 deletions(-)
---
diff --git a/panels/user-accounts/data/carousel.css b/panels/user-accounts/data/carousel.css
index ac74c8c..6dd8479 100644
--- a/panels/user-accounts/data/carousel.css
+++ b/panels/user-accounts/data/carousel.css
@@ -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;
+}
diff --git a/panels/user-accounts/um-carousel.c b/panels/user-accounts/um-carousel.c
index 0b905db..3fead32 100644
--- a/panels/user-accounts/um-carousel.c
+++ b/panels/user-accounts/um-carousel.c
@@ -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 {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]