[gnome-builder/wip/chergert/perspective] greeter: cleanup styling for lists
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder/wip/chergert/perspective] greeter: cleanup styling for lists
- Date: Sun, 29 Nov 2015 22:16:13 +0000 (UTC)
commit 7d9a9b1bde3d46540e578c20738b7ad3577286a5
Author: Christian Hergert <chergert redhat com>
Date: Sun Nov 29 01:26:18 2015 -0800
greeter: cleanup styling for lists
data/theme/shared.css | 51 ++-------
data/ui/ide-greeter-perspective.ui | 202 ++++++++++++++++++++++--------------
2 files changed, 137 insertions(+), 116 deletions(-)
---
diff --git a/data/theme/shared.css b/data/theme/shared.css
index b2a951a..17674c4 100644
--- a/data/theme/shared.css
+++ b/data/theme/shared.css
@@ -89,23 +89,6 @@ GbSearchDisplayGroup GtkListBox .list-row {
}
-greeter row,
-row.with-header {
- border-bottom: 1px solid alpha(@borders, 0.4);
-}
-
-greeter .frame {
- border-top: 1px solid alpha(@borders, 0.4);
- border-left: 1px solid alpha(@borders, 0.4);
- border-right: 1px solid alpha(@borders, 0.4);
- border-bottom: none;
-}
-/* remove viewport frame */
-greeter > box.vertical > scrolledwindow > viewport.frame {
- border: none;
-}
-
-
layoutpane {
-IdeLayoutPane-handle-size: 1;
-gtk-icon-source: none;
@@ -144,29 +127,6 @@ GbEditorFrame textview {
}
-/* Workbench perspective selection bar */
-/*
-IdeWorkbench > GtkStack > box.horizontal > GtkStackSwitcher > button {
- background-image: none;
- background-color: transparent;
- border: none;
- padding: 10px;
- box-shadow: none;
- border-radius: 0px;
-}
-IdeWorkbench > GtkStack > box.horizontal > GtkStackSwitcher > button:active:hover,
-IdeWorkbench > GtkStack > box.horizontal > GtkStackSwitcher > button:active:checked,
-IdeWorkbench > GtkStack > box.horizontal > GtkStackSwitcher > button:active {
- background-color: mix(@theme_bg_color, @borders, 0.75);
-}
-IdeWorkbench > GtkStack > box.horizontal > GtkStackSwitcher > button:checked {
- background-color: mix(@theme_bg_color, @borders, 0.5);
-}
-IdeWorkbench > GtkStack > box.horizontal > GtkStackSwitcher > button:hover {
- background-color: mix(@theme_bg_color, @borders, 0.25);
-}
-*/
-
workbench IdePreferencesPerspective IdePreferencesGroup row {
border-bottom: 1px solid shade(@borders, 1.2);
padding: 10px;
@@ -188,3 +148,14 @@ omnisearchrow {
padding-right: 12px;
padding-bottom: 9px;
}
+
+
+greeter frame {
+ border: 1px solid alpha(@borders, 0.4);
+}
+greeter list row {
+ border-bottom: 1px solid alpha(@borders, 0.2);
+}
+greeter list row:last-child {
+ border-bottom: none;
+}
diff --git a/data/ui/ide-greeter-perspective.ui b/data/ui/ide-greeter-perspective.ui
index 39383a3..da93514 100644
--- a/data/ui/ide-greeter-perspective.ui
+++ b/data/ui/ide-greeter-perspective.ui
@@ -21,117 +21,167 @@
</object>
</child>
<child>
- <object class="GtkScrolledWindow" id="scrolled_window">
+ <object class="GtkStack" id="stack">
+ <property name="expand">true</property>
<property name="visible">true</property>
<child>
- <object class="GtkViewport" id="viewport">
- <property name="expand">true</property>
+ <object class="GtkBox">
+ <property name="orientation">vertical</property>
<property name="visible">true</property>
<child>
- <object class="GtkBox">
- <property name="halign">center</property>
- <property name="margin-bottom">32</property>
- <property name="margin-top">32</property>
- <property name="orientation">vertical</property>
- <property name="spacing">32</property>
+ <object class="GtkScrolledWindow" id="scrolled_window">
<property name="visible">true</property>
- <property name="width-request">550</property>
<child>
- <object class="GtkBox" id="my_projects_container">
- <property name="orientation">vertical</property>
- <property name="spacing">6</property>
+ <object class="GtkViewport" id="viewport">
+ <property name="expand">true</property>
<property name="visible">true</property>
<child>
- <object class="GtkLabel" id="my_projects_label">
- <property name="label" translatable="yes">Recent Projects</property>
+ <object class="EggBox">
+ <property name="halign">center</property>
+ <property name="hexpand">false</property>
+ <property name="margin-bottom">32</property>
+ <property name="margin-top">32</property>
+ <property name="orientation">vertical</property>
+ <property name="spacing">32</property>
<property name="visible">true</property>
- <property name="xalign">0.0</property>
- <style>
- <class name="dim-label"/>
- </style>
- <attributes>
- <attribute name="weight" value="bold"/>
- </attributes>
- </object>
- </child>
- <child>
- <object class="EggScrolledWindow">
- <property name="min-content-height">100</property>
- <property name="min-content-width">475</property>
- <property name="max-content-width">600</property>
- <property name="visible">true</property>
- <property name="vscrollbar-policy">never</property>
+ <property name="max-width-request">550</property>
+ <child>
+ <object class="GtkBox" id="my_projects_container">
+ <property name="orientation">vertical</property>
+ <property name="spacing">6</property>
+ <property name="visible">true</property>
+ <child>
+ <object class="GtkLabel" id="my_projects_label">
+ <property name="label" translatable="yes">Recent Projects</property>
+ <property name="visible">true</property>
+ <property name="xalign">0.0</property>
+ <style>
+ <class name="dim-label"/>
+ </style>
+ <attributes>
+ <attribute name="weight" value="bold"/>
+ </attributes>
+ </object>
+ </child>
+ <child>
+ <object class="GtkFrame">
+ <property name="halign">center</property>
+ <property name="visible">true</property>
+ <property name="width-request">550</property>
+ <child>
+ <object class="GtkListBox" id="my_projects_list_box">
+ <property name="visible">true</property>
+ <property name="selection-mode">none</property>
+ </object>
+ </child>
+ </object>
+ </child>
+ </object>
+ </child>
<child>
- <object class="GtkListBox" id="my_projects_list_box">
+ <object class="GtkBox" id="other_projects_container">
+ <property name="orientation">vertical</property>
+ <property name="spacing">6</property>
<property name="visible">true</property>
- <property name="selection-mode">none</property>
+ <child>
+ <object class="GtkLabel" id="other_projects_label">
+ <property name="label" translatable="yes">Other Projects</property>
+ <property name="visible">true</property>
+ <property name="xalign">0.0</property>
+ <style>
+ <class name="dim-label"/>
+ </style>
+ <attributes>
+ <attribute name="weight" value="bold"/>
+ </attributes>
+ </object>
+ </child>
+ <child>
+ <object class="GtkFrame">
+ <property name="halign">center</property>
+ <property name="visible">true</property>
+ <child>
+ <object class="GtkListBox" id="other_projects_list_box">
+ <property name="visible">true</property>
+ <property name="selection-mode">none</property>
+ </object>
+ </child>
+ </object>
+ </child>
</object>
</child>
</object>
</child>
</object>
</child>
+ </object>
+ <packing>
+ <property name="expand">true</property>
+ <property name="fill">true</property>
+ </packing>
+ </child>
+ <child>
+ <object class="GtkActionBar" id="action_bar">
+ <property name="visible">false</property>
+ <child>
+ <object class="GtkButton" id="remove_button">
+ <property name="action-name">perspective.delete-selected-rows</property>
+ <property name="label" translatable="yes">_Remove</property>
+ <property name="use-underline">true</property>
+ <property name="visible">true</property>
+ <property name="sensitive">false</property>
+ <style>
+ <class name="destructive-action"/>
+ </style>
+ </object>
+ </child>
+ </object>
+ </child>
+ </object>
+ <packing>
+ <property name="name">projects</property>
+ </packing>
+ </child>
+ <child>
+ <object class="GtkFrame">
+ <property name="visible">true</property>
+ <child>
+ <object class="GtkListBox">
+ <property name="halign">center</property>
+ <property name="valign">center</property>
+ <property name="visible">true</property>
<child>
- <object class="GtkBox" id="other_projects_container">
- <property name="orientation">vertical</property>
- <property name="spacing">6</property>
+ <object class="GtkListBoxRow">
<property name="visible">true</property>
<child>
- <object class="GtkLabel" id="other_projects_label">
- <property name="label" translatable="yes">Other Projects</property>
+ <object class="GtkLabel">
+ <property name="label">Create from existing project</property>
<property name="visible">true</property>
<property name="xalign">0.0</property>
- <style>
- <class name="dim-label"/>
- </style>
- <attributes>
- <attribute name="weight" value="bold"/>
- </attributes>
</object>
</child>
+ </object>
+ </child>
+ <child>
+ <object class="GtkListBoxRow">
+ <property name="visible">true</property>
<child>
- <object class="EggScrolledWindow">
- <property name="min-content-height">100</property>
- <property name="min-content-width">300</property>
- <property name="max-content-width">600</property>
+ <object class="GtkLabel">
+ <property name="label">Create a new project</property>
<property name="visible">true</property>
- <property name="vscrollbar-policy">never</property>
- <child>
- <object class="GtkListBox" id="other_projects_list_box">
- <property name="visible">true</property>
- <property name="selection-mode">none</property>
- </object>
- </child>
+ <property name="xalign">0.0</property>
</object>
</child>
</object>
</child>
</object>
+ <packing>
+ <property name="name">assistants</property>
+ </packing>
</child>
</object>
</child>
</object>
- <packing>
- <property name="expand">true</property>
- <property name="fill">true</property>
- </packing>
- </child>
- <child>
- <object class="GtkActionBar" id="action_bar">
- <property name="visible">false</property>
- <child>
- <object class="GtkButton" id="remove_button">
- <property name="action-name">perspective.delete-selected-rows</property>
- <property name="label" translatable="yes">_Remove</property>
- <property name="use-underline">true</property>
- <property name="visible">true</property>
- <property name="sensitive">false</property>
- <style>
- <class name="destructive-action"/>
- </style>
- </object>
- </child>
- </object>
</child>
</object>
</child>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]