[gnome-control-center/wip/jsparber/background: 23/58] [feat] add buttons on bottom of gallery, no code yet



commit 62ff0af89adbbda2abfd6289c5a521a7aa222b59
Author: Julian Sparber <julian sparber net>
Date:   Sun Nov 5 13:30:41 2017 +0100

    [feat] add buttons on bottom of gallery, no code yet

 panels/background/background.ui       |   65 ++++++++++++++++++++++++++++++++-
 panels/background/data/background.css |    1 +
 2 files changed, 65 insertions(+), 1 deletions(-)
---
diff --git a/panels/background/background.ui b/panels/background/background.ui
index aae1f6b..dec1227 100644
--- a/panels/background/background.ui
+++ b/panels/background/background.ui
@@ -137,9 +137,72 @@
                     <property name="valign">center</property>
                     <property name="margin">25</property>
                     <property name="margin_top">50</property>
+                    <property name="margin_bottom">32</property>
+                  </object>
+                </child>
+                <child>
+                  <object class="GtkBox">
+                    <property name="visible">True</property>
+                    <property name="can_focus">False</property>
+                    <property name="halign">center</property>
+                    <property name="valign">end</property>
+                    <property name="margin">32</property>
+                    <property name="margin_top">0</property>
+                    <property name="orientation">vertical</property>
+                    <property name="spacing">16</property>
+                    <child>
+                      <object class="GtkLabel">
+                        <property name="visible">True</property>
+                        <property name="can_focus">False</property>
+                        <property name="label" translatable="yes">Photos or Files can be used to set any 
image as the background</property>
+                      </object>
+                      <packing>
+                        <property name="expand">False</property>
+                        <property name="fill">True</property>
+                        <property name="position">0</property>
+                      </packing>
+                    </child>
+                    <child>
+                      <object class="GtkBox">
+                        <property name="visible">True</property>
+                        <property name="can_focus">False</property>
+                        <property name="halign">center</property>
+                        <property name="spacing">16</property>
+                        <child>
+                          <object class="GtkButton">
+                            <property name="label" translatable="yes">Open Photos app</property>
+                            <property name="visible">True</property>
+                            <property name="can_focus">True</property>
+                            <property name="receives_default">True</property>
+                          </object>
+                          <packing>
+                            <property name="expand">False</property>
+                            <property name="fill">True</property>
+                            <property name="position">0</property>
+                          </packing>
+                        </child>
+                        <child>
+                          <object class="GtkButton">
+                            <property name="label" translatable="yes">Open Pictures folder</property>
+                            <property name="visible">True</property>
+                            <property name="can_focus">True</property>
+                            <property name="receives_default">True</property>
+                          </object>
+                          <packing>
+                            <property name="expand">False</property>
+                            <property name="fill">True</property>
+                            <property name="position">1</property>
+                          </packing>
+                        </child>
+                      </object>
+                      <packing>
+                        <property name="expand">False</property>
+                        <property name="fill">True</property>
+                        <property name="position">1</property>
+                      </packing>
+                    </child>
                   </object>
                 </child>
-
               </object>
             </child>
           </object>
diff --git a/panels/background/data/background.css b/panels/background/data/background.css
index c2874a6..04695ed 100644
--- a/panels/background/data/background.css
+++ b/panels/background/data/background.css
@@ -1,5 +1,6 @@
 .background-gallery {
   background: #fff;
+  border-top: 1px solid #b6b6b3;
 }
 
 .black-border {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]