[dconf-editor] Make pathbar less important visually on search.
- From: Arnaud Bonatti <arnaudb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [dconf-editor] Make pathbar less important visually on search.
- Date: Thu, 30 Nov 2017 13:40:57 +0000 (UTC)
commit f6e3d04f705ac778dc7c0639e2e43ad0cf6d5b54
Author: Arnaud Bonatti <arnaud bonatti gmail com>
Date: Thu Nov 30 14:40:16 2017 +0100
Make pathbar less important visually on search.
editor/dconf-editor.css | 15 +++++++++++++++
editor/dconf-editor.ui | 23 ++++++++++++-----------
2 files changed, 27 insertions(+), 11 deletions(-)
---
diff --git a/editor/dconf-editor.css b/editor/dconf-editor.css
index 0d73fd6..8f36032 100644
--- a/editor/dconf-editor.css
+++ b/editor/dconf-editor.css
@@ -212,6 +212,21 @@
border-bottom-color:@theme_selected_bg_color;
}
+/* search changes */
+#search-toggle:checked ~ .pathbar {
+ color:@insensitive_fg_color;
+}
+
+#search-toggle:checked ~ .pathbar > button.active > .item,
+#search-toggle:checked ~ .pathbar > button.active:hover > .item {
+ border-bottom-color:alpha(currentColor,0.6);
+}
+
+#search-toggle:checked ~ .pathbar:backdrop > button.active > .item,
+#search-toggle:checked ~ .pathbar:backdrop > button.active:hover > .item {
+ border-bottom-color:alpha(currentColor,0.4);
+}
+
/*\
* * properties list
\*/
diff --git a/editor/dconf-editor.ui b/editor/dconf-editor.ui
index 9814245..1c859b6 100644
--- a/editor/dconf-editor.ui
+++ b/editor/dconf-editor.ui
@@ -20,16 +20,6 @@
<property name="visible">True</property>
<property name="show-close-button">True</property>
<property name="has-subtitle">False</property>
- <child>
- <object class="PathBar" id="pathbar">
- <property name="visible">True</property>
- <property name="valign">center</property>
- <signal name="request_path" handler="request_path"/>
- </object>
- <packing>
- <property name="pack-type">start</property>
- </packing>
- </child>
<child type="title">
<object class="GtkBox">
<property name="visible">False</property>
@@ -40,7 +30,7 @@
<property name="visible">True</property>
<property name="valign">center</property>
<property name="focus-on-click">False</property>
- <accelerator key="F10" signal="clicked"/>
+ <accelerator key="F10" signal="clicked"/> <!-- TODO report bug: property binding has to be
defined before accelerator -->
<signal name="clicked" handler="on_menu_button_clicked"/>
<style>
<class name="image-button"/>
@@ -69,6 +59,7 @@
<property name="valign">center</property>
<property name="active" bind-source="search_bar" bind-property="search-mode-enabled"
bind-flags="bidirectional">False</property>
<property name="focus-on-click">False</property>
+ <property name="name">search-toggle</property>
<!-- <accelerator key="F" signal="toggled" modifiers="GDK_CONTROL_MASK"/> TODO -->
<style>
<class name="image-button"/>
@@ -108,6 +99,16 @@
<property name="pack-type">end</property>
</packing>
</child>
+ <child>
+ <object class="PathBar" id="pathbar">
+ <property name="visible">True</property>
+ <property name="valign">center</property>
+ <signal name="request_path" handler="request_path"/>
+ </object>
+ <packing>
+ <property name="pack-type">start</property>
+ </packing>
+ </child>
</object>
</child>
<child>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]