diff --git a/resources/de.swsnr.turnon.metainfo.xml.in b/resources/de.swsnr.turnon.metainfo.xml.in index 7dfc671..e2952bf 100644 --- a/resources/de.swsnr.turnon.metainfo.xml.in +++ b/resources/de.swsnr.turnon.metainfo.xml.in @@ -34,6 +34,7 @@

Add a toolbar button to enable or disable network scanning.

+

Add a button to enable network scanning to the start page.

When network scanning is enabled show devices from the system's ARP cache.

Add a button to directly add devices discovered from network scanning.

Improve app icon contrast on dark backgrounds.

@@ -42,6 +43,7 @@ GH-4 GH-50 GH-54 + GH-57 https://github.com/swsnr/turnon/releases/tag/next
diff --git a/resources/ui/turnon-application-window.blp b/resources/ui/turnon-application-window.blp index 5f6cab5..bb24f82 100644 --- a/resources/ui/turnon-application-window.blp +++ b/resources/ui/turnon-application-window.blp @@ -59,15 +59,36 @@ template $TurnOnApplicationWindow: Adw.ApplicationWindow { icon-name: bind template.startpage-icon-name; vexpand: true; - child: Gtk.Button { - label: C_("application-window.status-page.button.label", "Add new device"); - action-name: "win.add-device"; - halign: center; - - styles [ - "pill", - "suggested-action" - ] + styles [ + "compact" + ] + + child: Adw.Clamp { + Gtk.Box { + orientation: vertical; + homogeneous: true; + halign: center; + + Gtk.Button { + label: C_("application-window.status-page.button.label", "Add new device"); + action-name: "win.add-device"; + + styles [ + "pill", + "suggested-action" + ] + } + + Gtk.Button { + label: C_("application-window.status-page.button.label", "Scan network"); + action-name: "win.toggle-scan-network"; + + styles [ + "pill", + "suggested-action" + ] + } + } }; } } diff --git a/resources/ui/turnon-application-window.ui b/resources/ui/turnon-application-window.ui index fcab133..8857385 100644 --- a/resources/ui/turnon-application-window.ui +++ b/resources/ui/turnon-application-window.ui @@ -60,15 +60,38 @@ corresponding .blp file and regenerate this file with blueprint-compiler. Add a new device to turn it on. true + - - Add new device - win.add-device - 3 - + + + + 1 + true + 3 + + + Add new device + win.add-device + + + + + + Scan network + win.toggle-scan-network + + + + + diff --git a/screenshots/social-image.png b/screenshots/social-image.png index 49d36b9..8075076 100644 Binary files a/screenshots/social-image.png and b/screenshots/social-image.png differ diff --git a/screenshots/start-page.png b/screenshots/start-page.png index 473ae9d..f524243 100644 Binary files a/screenshots/start-page.png and b/screenshots/start-page.png differ