[gnome-maps/wip/mlundblad/night-mode: 1/4] layersPopover: Add checkbox to toggle night mode
- From: Marcus Lundblad <mlundblad src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-maps/wip/mlundblad/night-mode: 1/4] layersPopover: Add checkbox to toggle night mode
- Date: Sat, 6 Jun 2020 10:47:09 +0000 (UTC)
commit 9e02b6bbf8a8b02c3898f663c266562ff25bd793
Author: Marcus Lundblad <ml update uu se>
Date: Sat Jun 6 12:45:13 2020 +0200
layersPopover: Add checkbox to toggle night mode
data/ui/layers-popover.ui | 31 +++++++++++++++++++++++++++++--
1 file changed, 29 insertions(+), 2 deletions(-)
---
diff --git a/data/ui/layers-popover.ui b/data/ui/layers-popover.ui
index 22ec9c81..d7f3ed90 100644
--- a/data/ui/layers-popover.ui
+++ b/data/ui/layers-popover.ui
@@ -47,6 +47,33 @@
<property name="top-attach">1</property>
</packing>
</child>
+ <child>
+ <object class="GtkBox">
+ <property name="visible">True</property>
+ <property name="can-focus">False</property>
+ <property name="orientation">GTK_ORIENTATION_HORIZONTAL</property>
+ <child>
+ <object class="GtkLabel">
+ <property name="visible">True</property>
+ <property name="can-focus">False</property>
+ <property name="halign">GTK_ALIGN_START</property>
+ <property name="hexpand">True</property>
+ <property name="label" translatable="yes">Night Mode</property>
+ </object>
+ </child>
+ <child>
+ <object class="GtkCheckButton">
+ <property name="visible">True</property>
+ <property name="can-focus">True</property>
+ <property name="action-name">app.night-mode</property>
+ </object>
+ </child>
+ </object>
+ <packing>
+ <property name="left-attach">0</property>
+ <property name="top-attach">2</property>
+ </packing>
+ </child>
<child>
<object class="GtkListBox" id="layersListBox">
<property name="name">layers-list-box</property>
@@ -59,7 +86,7 @@
</object>
<packing>
<property name="left-attach">0</property>
- <property name="top-attach">2</property>
+ <property name="top-attach">3</property>
</packing>
</child>
<child>
@@ -71,7 +98,7 @@
</object>
<packing>
<property name="left-attach">0</property>
- <property name="top-attach">3</property>
+ <property name="top-attach">4</property>
</packing>
</child>
</object>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]