[gnome-builder] omnibar: tweak styling
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] omnibar: tweak styling
- Date: Sun, 23 Jul 2017 07:30:12 +0000 (UTC)
commit dcaaa1ee6e2fd9adb46be88cc21ec6b0f46d034f
Author: Christian Hergert <chergert redhat com>
Date: Sun Jul 23 00:30:00 2017 -0700
omnibar: tweak styling
Some improvements to make things work better on various non-Adwaita themes
and also ensure that we set the hover+active color.
data/themes/Adwaita-shared.css | 30 ------------------------------
data/themes/shared/shared-omnibar.css | 4 ++++
libide/workbench/ide-omni-bar.ui | 1 +
3 files changed, 5 insertions(+), 30 deletions(-)
---
diff --git a/data/themes/Adwaita-shared.css b/data/themes/Adwaita-shared.css
index fd97fcd..cae3e43 100644
--- a/data/themes/Adwaita-shared.css
+++ b/data/themes/Adwaita-shared.css
@@ -20,36 +20,6 @@ treeview.image { color: alpha(currentColor, 0.8); }
treeview.image:selected { color: alpha(@theme_selected_fg_color, 0.9); }
-popover.messagepopover.background {
- border-bottom-left-radius: 9px;
- border-bottom-right-radius: 9px;
- padding: 0;
-}
-
-popover.messagepopover .popover-action-area button {
- padding: 7px 14px;;
- border-radius: 0;
- border-left-style: solid;
- border-right-style: none;
- border-bottom-style: none;
-}
-
-popover.messagepopover .popover-action-area button:first-child {
- border-left-style: none;
- border-bottom-left-radius: 7px;
- -gtk-outline-bottom-left-radius: 5px;
-}
-
-popover.messagepopover .popover-action-area button:last-child {
- border-right-style: none;
- border-bottom-right-radius: 7px;
- -gtk-outline-bottom-right-radius: 5px;
-}
-
-popover.messagepopover .popover-content-area {
- margin: 24px;
-}
-
/* buildui panel */
ideeditorsidebar notebook header {
background: transparent;
diff --git a/data/themes/shared/shared-omnibar.css b/data/themes/shared/shared-omnibar.css
index b333de9..8858037 100644
--- a/data/themes/shared/shared-omnibar.css
+++ b/data/themes/shared/shared-omnibar.css
@@ -15,6 +15,10 @@ omnibar.building entry {
background-color: mix(@warning_color, @theme_bg_color, 0.9);
color: alpha(@theme_fg_color, 0.8);
}
+omnibar.building:hover entry {
+ background-color: mix(@warning_color, @content_view_bg, 0.9);
+ color: alpha(@theme_fg_color, 0.8);
+}
omnibar:hover entry,
omnibar:active entry {
background-color: mix(@theme_bg_color, @content_view_bg, 0.9);
diff --git a/libide/workbench/ide-omni-bar.ui b/libide/workbench/ide-omni-bar.ui
index dfb310d..40745ba 100644
--- a/libide/workbench/ide-omni-bar.ui
+++ b/libide/workbench/ide-omni-bar.ui
@@ -151,6 +151,7 @@
<object class="GtkPopover" id="popover">
<property name="relative-to">event_box</property>
<property name="position">bottom</property>
+ <property name="border-width">24</property>
<property name="width-request">525</property>
<style>
<class name="messagepopover"/>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]