[gnome-photos] overview-searchbar, theme: Rename our GdTaggedEntryTag style class



commit 74a9c12442a182f20afc05f22de78cf2566c8b4c
Author: Debarshi Ray <debarshir gnome org>
Date:   Mon Feb 22 13:04:02 2016 +0100

    overview-searchbar, theme: Rename our GdTaggedEntryTag style class
    
    These days the CSS for the documents-entry-tag style class is built
    into libgd. However, it doesn't have a dark theme variant. Until that
    is fixed, let's use a differently named style class with the dark theme
    variant of the CSS.

 data/Adwaita.css                |   14 +++++++-------
 src/photos-overview-searchbar.c |    5 +++++
 2 files changed, 12 insertions(+), 7 deletions(-)
---
diff --git a/data/Adwaita.css b/data/Adwaita.css
index 876a778..f5e20ef 100644
--- a/data/Adwaita.css
+++ b/data/Adwaita.css
@@ -24,7 +24,7 @@ GdMainIconView.content-view.cell:active {
     font: bold;
 }
 
-.documents-entry-tag {
+.photos-entry-tag {
     background-image: none;
     background-color: @entry_tag_bg;
     color: @entry_tag_fg;
@@ -36,22 +36,22 @@ GdMainIconView.content-view.cell:active {
     padding: 4px;
 }
 
-.documents-entry-tag:hover {
+.photos-entry-tag:hover {
     background-color: shade(@entry_tag_bg, 1.10);
     color: @entry_tag_fg;
 }
 
-.documents-entry-tag.button,
-.documents-entry-tag.button:hover,
-.documents-entry-tag.button:active,
-.documents-entry-tag.button:active:hover {
+.photos-entry-tag.button,
+.photos-entry-tag.button:hover,
+.photos-entry-tag.button:active,
+.photos-entry-tag.button:active:hover {
     background-color: transparent;
     background-image: none;
     border-image: none;
     border-width: 0;
 }
 
-.documents-entry-tag.button:hover {
+.photos-entry-tag.button:hover {
     color: shade(@entry_tag_bg, 2.10);
 }
 
diff --git a/src/photos-overview-searchbar.c b/src/photos-overview-searchbar.c
index 77044df..dbfed0b 100644
--- a/src/photos-overview-searchbar.c
+++ b/src/photos-overview-searchbar.c
@@ -212,8 +212,13 @@ photos_overview_searchbar_create_search_widgets (PhotosSearchbar *searchbar)
   photos_searchbar_set_search_entry (PHOTOS_SEARCHBAR (self), GTK_WIDGET (priv->search_entry));
 
   priv->src_tag = gd_tagged_entry_tag_new (NULL);
+  gd_tagged_entry_tag_set_style (priv->src_tag, "photos-entry-tag");
+
   priv->srch_mtch_tag = gd_tagged_entry_tag_new (NULL);
+  gd_tagged_entry_tag_set_style (priv->srch_mtch_tag, "photos-entry-tag");
+
   priv->srch_typ_tag = gd_tagged_entry_tag_new (NULL);
+  gd_tagged_entry_tag_set_style (priv->srch_typ_tag, "photos-entry-tag");
 
   g_signal_connect_object (priv->srch_cntrlr,
                            "search-string-changed",


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]