[gnome-builder/wip/chergert/perspective] style: more css cleanup using gtk_widget_class_set_css_name()
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder/wip/chergert/perspective] style: more css cleanup using gtk_widget_class_set_css_name()
- Date: Fri, 13 Nov 2015 10:09:22 +0000 (UTC)
commit d7fb667ae39253013a5d7f3581a9cac06797e917
Author: Christian Hergert <chergert redhat com>
Date: Fri Nov 13 02:09:16 2015 -0800
style: more css cleanup using gtk_widget_class_set_css_name()
contrib/egg/egg-pill-box.c | 1 +
data/theme/Adwaita-dark.css | 2 +-
data/theme/Adwaita-shared.css | 40 ----------------------------------------
data/theme/Adwaita.css | 8 ++++----
data/theme/shared.css | 25 ++-----------------------
5 files changed, 8 insertions(+), 68 deletions(-)
---
diff --git a/contrib/egg/egg-pill-box.c b/contrib/egg/egg-pill-box.c
index a40630a..cf3b991 100644
--- a/contrib/egg/egg-pill-box.c
+++ b/contrib/egg/egg-pill-box.c
@@ -119,6 +119,7 @@ egg_pill_box_class_init (EggPillBoxClass *klass)
(G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
g_object_class_install_property (object_class, PROP_LABEL, properties [PROP_LABEL]);
+ gtk_widget_class_set_css_name (widget_class, "pillbox");
gtk_widget_class_set_template_from_resource (widget_class, "/org/gnome/libegg-private/egg-pill-box.ui");
gtk_widget_class_bind_template_child (widget_class, EggPillBox, label);
}
diff --git a/data/theme/Adwaita-dark.css b/data/theme/Adwaita-dark.css
index c5754c1..1e08aed 100644
--- a/data/theme/Adwaita-dark.css
+++ b/data/theme/Adwaita-dark.css
@@ -15,7 +15,7 @@ treeview.view.cell:selected {
}
-EggPillBox {
+pillbox {
background-color: #1e1e1e;
border-radius: 3px;
}
diff --git a/data/theme/Adwaita-shared.css b/data/theme/Adwaita-shared.css
index e819ed3..8b449d4 100644
--- a/data/theme/Adwaita-shared.css
+++ b/data/theme/Adwaita-shared.css
@@ -1,26 +1,6 @@
@import url("resource:///org/gnome/builder/theme/shared.css");
-#left_header_bar {
- border-top-right-radius: 0px;
-}
-#right_header_bar {
- border-top-left-radius: 0px;
-}
-
-
-/*
- * Preferences styling.
- */
-GbPreferencesPageLanguage entry {
- border-bottom-left-radius: 0;
- border-bottom-right-radius: 0;
-}
-GbPreferencesPageLanguage GtkScrolledWindow {
- border-top-width: 0;
-}
-
-
/*
* Editor tweak widget.
*/
@@ -155,23 +135,3 @@ SymbolTree entry {
border-top: none;
border-radius: 0px;
}
-
-
-.shortcuts-list-box row {
- border-bottom: 1px solid @borders;
-}
-.shortcuts-list-box row:last-child {
- border-bottom: none;
-}
-
-.shortcuts-list-box GtkLabel {
- padding: 6px;
-}
-
-
-GbPreferencesPagePlugins row {
- border-bottom: 1px solid shade(@borders, 1.2);
-}
-GbPreferencesPagePlugins row:last-child {
- border-bottom: none;
-}
diff --git a/data/theme/Adwaita.css b/data/theme/Adwaita.css
index a1cb37f..0ed5da6 100644
--- a/data/theme/Adwaita.css
+++ b/data/theme/Adwaita.css
@@ -1,21 +1,21 @@
@import url("resource:///org/gnome/builder/theme/Adwaita-shared.css");
-GbWorkbench treeview.view {
+workbench treeview.view {
color: #555753;
background-color: #eeeeec;
}
-GbWorkbench treeview.view:backdrop {
+workbench treeview.view:backdrop {
color: #888a85;
background-color: #efefef;
}
-GbWorkbench treeview.view.cell:selected {
+workbench treeview.view.cell:selected {
color: #fff;
background-color: #4a90d9;
}
-EggPillBox {
+pillbox {
background-color: #eeeeec;
border-radius: 3px;
}
diff --git a/data/theme/shared.css b/data/theme/shared.css
index 1792bd6..97dbd3f 100644
--- a/data/theme/shared.css
+++ b/data/theme/shared.css
@@ -23,27 +23,6 @@
}
-.preferences.sidebar viewport {
- border: 0px;
-}
-.preferences.sidebar GtkListBox {
- background-color: shade(@theme_bg_color, 0.99);
-}
-.preferences.sidebar row {
- padding: 10px;
-}
-.preferences.sidebar row:not(:selected) {
- background-color: shade(@theme_bg_color, 0.99);
-}
-.preferences.sidebar row:hover:not(:selected) {
- background-color: shade(@theme_bg_color, 1.02);
-}
-
-GbPreferencesSwitch:prelight {
- background-color: shade(@theme_bg_color, 1.01);
-}
-
-
GbEditorSettingsWidget row {
padding: 6px;
border-bottom: 1px solid @borders;
@@ -82,7 +61,7 @@ GtkBox.gb-command-bar-box {
background-image: linear-gradient(to bottom, #2e3436, #555753 10%);
box-shadow: inset 0px 3px 6px #2e3436;
}
-GtkBox.gb-command-bar-box GtkLabel {
+GtkBox.gb-command-bar-box label {
color: #eeeeec;
}
entry.gb-command-bar-entry {
@@ -140,7 +119,7 @@ layoutpane .pane-separator {
border-radius: 20px;
outline-radius: 20px;
}
-.round GtkLabel {
+.round label {
padding-left: 0px;
padding-right: 0px;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]