[gnome-contacts] View: remove hardcoded color
- From: Erick Pérez Castellanos <erickpc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-contacts] View: remove hardcoded color
- Date: Mon, 11 Aug 2014 12:58:50 +0000 (UTC)
commit 1b4e56b0a85e1654977d7f718356dc304319d943
Author: Erick Pérez Castellanos <erick red gmail com>
Date: Mon Aug 11 00:40:36 2014 -0400
View: remove hardcoded color
Work to fix viewing on Adwaita dark variant
data/ui/contacts-list-pane.ui | 3 +++
data/ui/style.css | 5 +++++
src/contacts-view.vala | 5 -----
3 files changed, 8 insertions(+), 5 deletions(-)
---
diff --git a/data/ui/contacts-list-pane.ui b/data/ui/contacts-list-pane.ui
index 2915e66..f545f4b 100644
--- a/data/ui/contacts-list-pane.ui
+++ b/data/ui/contacts-list-pane.ui
@@ -56,6 +56,9 @@
<object class="ContactsView" id="contacts_view">
<property name="visible">True</property>
<property name="selection_mode">browse</property>
+ <style>
+ <class name="contacts-view"/>
+ </style>
</object>
</child>
</object>
diff --git a/data/ui/style.css b/data/ui/style.css
index 0ebf4eb..59ae6f7 100644
--- a/data/ui/style.css
+++ b/data/ui/style.css
@@ -10,6 +10,11 @@ ContactsListPane.frame:dir(rtl) {
border-width: 0 0 0 1px;
}
+/* contatcs view new color */
+.contacts-view {
+ background-color: transparent;
+}
+
/* Background color in contacts pane, similar to .documents-main-view.view */
.contacts-main-view.view {
background-color: #f1f2f1;
diff --git a/src/contacts-view.vala b/src/contacts-view.vala
index b89a023..d8d92e4 100644
--- a/src/contacts-view.vala
+++ b/src/contacts-view.vala
@@ -118,11 +118,6 @@ public class Contacts.View : ListBox {
});
this.set_filter_func (filter);
this.set_header_func (update_header);
-
- /* FIXME: remove hardcoded background color */
- var color = Gdk.RGBA ();
- color.parse ("#ebedeb");
- override_background_color (0, color);
}
private int compare_data (ContactDataRow a_data, ContactDataRow b_data) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]