[gnome-builder] workspace: new command bar layout prototype
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] workspace: new command bar layout prototype
- Date: Fri, 14 Nov 2014 03:33:37 +0000 (UTC)
commit dc552f13c9475ef6452932703d134eb25aceca86
Author: Christian Hergert <christian hergert me>
Date: Thu Nov 13 19:33:27 2014 -0800
workspace: new command bar layout prototype
This matches closer to what Firefox has. Worth exploring a bit.
src/resources/css/builder.Adwaita.css | 14 ++++++++++++++
src/resources/ui/gb-workbench.ui | 30 ++++++++++++++++++++++++++++--
2 files changed, 42 insertions(+), 2 deletions(-)
---
diff --git a/src/resources/css/builder.Adwaita.css b/src/resources/css/builder.Adwaita.css
index 97d7ffd..15b6e3a 100644
--- a/src/resources/css/builder.Adwaita.css
+++ b/src/resources/css/builder.Adwaita.css
@@ -176,3 +176,17 @@ GbCommandBarItem .gb-command-bar-item-equal {
padding-right: 12px;
font-family: Monospace;
}
+
+GtkBox.shift-bar {
+ border: none;
+ background-image: linear-gradient(to bottom, #2e3436, #555753 10%);
+ box-shadow: none;
+ color: #eeeeec;
+ font-family: Monospace;
+}
+
+GtkBox.shift-bar GtkEntry {
+ background-image: none;
+ padding: 6px 6px 6px 6px;
+}
+
diff --git a/src/resources/ui/gb-workbench.ui b/src/resources/ui/gb-workbench.ui
index 12e80b0..c3232d9 100644
--- a/src/resources/ui/gb-workbench.ui
+++ b/src/resources/ui/gb-workbench.ui
@@ -171,8 +171,8 @@
</object>
</child>
<child>
- <object class="GtkBox" id="main_hbox">
- <property name="orientation">horizontal</property>
+ <object class="GtkBox">
+ <property name="orientation">vertical</property>
<property name="visible">True</property>
<child>
<object class="GtkStackSwitcher" id="switcher">
@@ -246,6 +246,32 @@
</child>
</object>
</child>
+ <child>
+ <object class="GtkBox">
+ <!-- WIP on new command bar. Set visible to True to test. -->
+ <property name="visible">False</property>
+ <property name="orientation">horizontal</property>
+ <property name="spacing">3</property>
+ <style>
+ <class name="shift-bar"/>
+ </style>
+ <child>
+ <object class="GtkLabel">
+ <property name="visible">True</property>
+ <property name="hexpand">False</property>
+ <property name="label">>></property>
+ <property name="margin-start">6</property>
+ </object>
+ </child>
+ <child>
+ <object class="GtkEntry">
+ <property name="visible">True</property>
+ <property name="hexpand">True</property>
+ <property name="has-frame">False</property>
+ </object>
+ </child>
+ </object>
+ </child>
</object>
</child>
</object>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]