[gnome-builder/wip/vim] vim: put command entry in an overlay/frame
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder/wip/vim] vim: put command entry in an overlay/frame
- Date: Wed, 1 Oct 2014 06:30:25 +0000 (UTC)
commit 4cb961fecf95a80623cfcfb541cf5841c1a6a8dc
Author: Christian Hergert <christian hergert me>
Date: Tue Sep 30 21:34:15 2014 -0700
vim: put command entry in an overlay/frame
Always shown, so sort of wrong at the moment, needs more plumbing from
gb-editor-vim.
src/resources/css/builder.Adwaita.css | 9 ++++++++
src/resources/ui/gb-editor-tab.ui | 35 +++++++++++++++++++++++++-------
2 files changed, 36 insertions(+), 8 deletions(-)
---
diff --git a/src/resources/css/builder.Adwaita.css b/src/resources/css/builder.Adwaita.css
index 7b656b0..35f1c55 100644
--- a/src/resources/css/builder.Adwaita.css
+++ b/src/resources/css/builder.Adwaita.css
@@ -82,6 +82,15 @@ GbEditorTab .gb-search-slider {
padding: 2px;
}
+GbEditorTab .gb-vim-command-slider {
+ background-color: @theme_base_color;
+ padding: 6px;
+ border-color: shade (@theme_base_color, 0.60);
+ border-radius: 0 3px 0 0;
+ border-width: 1px 1px 0 0;
+ border-style: solid;
+}
+
GtkStackSwitcher.gb-workspace-switcher > GtkRadioButton {
background-color: transparent;
background-image: none;
diff --git a/src/resources/ui/gb-editor-tab.ui b/src/resources/ui/gb-editor-tab.ui
index ffec2f2..b61c2b9 100644
--- a/src/resources/ui/gb-editor-tab.ui
+++ b/src/resources/ui/gb-editor-tab.ui
@@ -45,14 +45,6 @@
</object>
</child>
<child type="overlay">
- <object class="GtkEntry" id="vim_command_entry">
- <property name="visible">True</property>
- <property name="halign">start</property>
- <property name="valign">end</property>
- <property name="width_chars">20</property>
- </object>
- </child>
- <child type="overlay">
<object class="GtkRevealer" id="revealer">
<property name="visible">True</property>
<property name="can_focus">False</property>
@@ -118,6 +110,33 @@
</child>
</object>
</child>
+ <child type="overlay">
+ <object class="GtkRevealer" id="vim_command_entry_revealer">
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ <property name="halign">start</property>
+ <property name="valign">end</property>
+ <property name="reveal_child">True</property>
+ <child>
+ <object class="GtkFrame" id="vim_command_frame">
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ <property name="margin_start">0</property>
+ <style>
+ <class name="gb-vim-command-slider"/>
+ </style>
+ <child>
+ <object class="GtkEntry" id="vim_command_entry">
+ <property name="visible">True</property>
+ <property name="can_focus">True</property>
+ <property name="width_request">260</property>
+ <property name="placeholder_text">:</property>
+ </object>
+ </child>
+ </object>
+ </child>
+ </object>
+ </child>
</object>
</child>
<child>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]