[gnome-builder/wip/minimap2] minimap: add some basic styling with css
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder/wip/minimap2] minimap: add some basic styling with css
- Date: Tue, 21 Apr 2015 23:05:45 +0000 (UTC)
commit 81860a2085bd01fb3427e0169a614c0bcd51eb02
Author: Christian Hergert <christian hergert me>
Date: Tue Apr 21 16:05:39 2015 -0700
minimap: add some basic styling with css
data/theme/Adwaita-shared.css | 10 ++++++++++
data/theme/shared.css | 6 ++++++
libide/ide-source-map.c | 8 --------
3 files changed, 16 insertions(+), 8 deletions(-)
---
diff --git a/data/theme/Adwaita-shared.css b/data/theme/Adwaita-shared.css
index 06397c4..ab17625 100644
--- a/data/theme/Adwaita-shared.css
+++ b/data/theme/Adwaita-shared.css
@@ -37,3 +37,13 @@ GbEditorWorkspace > GtkPaned > GtkBox > GtkBox.header.notebook {
GbNewProjectDialog GtkFileChooserButton.linked-on-right .button {
border-radius: 3px 0 0 3px;
}
+
+
+/*
+ * Minimap highlight.
+ */
+IdeSourceMap GtkEventBox {
+ background-color: #a0a3a3;
+ border-top: 1px solid #2e3436;
+ border-bottom: 1px solid #2e3436;
+}
diff --git a/data/theme/shared.css b/data/theme/shared.css
index d09ca91..222ad09 100644
--- a/data/theme/shared.css
+++ b/data/theme/shared.css
@@ -97,3 +97,9 @@ GbSearchDisplayGroup GtkListBox .list-row {
GbDocumentStack .button {
transition: none;
}
+
+
+IdeSourceMap GtkEventBox {
+ background-color: @theme_selected_bg_color;
+ opacity: 0.5;
+}
diff --git a/libide/ide-source-map.c b/libide/ide-source-map.c
index da85132..2e5edd2 100644
--- a/libide/ide-source-map.c
+++ b/libide/ide-source-map.c
@@ -640,14 +640,6 @@ ide_source_map_init (IdeSourceMap *self)
self,
G_CONNECT_SWAPPED);
- G_GNUC_BEGIN_IGNORE_DEPRECATIONS;
- {
- /* TODO: use css or stylescheme for this */
- GdkRGBA bg = { 0, 0, 0, .3 };
- gtk_widget_override_background_color (GTK_WIDGET (self->overlay_box), GTK_STATE_FLAG_NORMAL, &bg);
- }
- G_GNUC_END_IGNORE_DEPRECATIONS;
-
gtk_overlay_add_overlay (GTK_OVERLAY (self), GTK_WIDGET (self->overlay_box));
completion = gtk_source_view_get_completion (self->child_view);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]