From 0ea547f67ebdaf2e0141069a29bc164c428f2153 Mon Sep 17 00:00:00 2001 From: Lakindu Akash Date: Wed, 13 Oct 2021 05:58:49 +0530 Subject: [PATCH] Add image dialog for showing QR code --- src/ui/glade/qr.glade | 50 ++++++++++++++++++++++++++++++++ src/ui/glade/wifih.gresource.xml | 4 +++ src/ui/glade/wifih.ui | 46 +++++++++++++++++++++++++++-- 3 files changed, 97 insertions(+), 3 deletions(-) create mode 100644 src/ui/glade/qr.glade diff --git a/src/ui/glade/qr.glade b/src/ui/glade/qr.glade new file mode 100644 index 0000000..a9b4ff0 --- /dev/null +++ b/src/ui/glade/qr.glade @@ -0,0 +1,50 @@ + + + + + + False + QR code + center-on-parent + dialog + + + + + + False + vertical + 2 + + + False + end + + + + + + + + + False + False + 0 + + + + + True + False + gtk-missing-image + + + True + True + 1 + + + + + + diff --git a/src/ui/glade/wifih.gresource.xml b/src/ui/glade/wifih.gresource.xml index 98722f9..f0b1dd1 100644 --- a/src/ui/glade/wifih.gresource.xml +++ b/src/ui/glade/wifih.gresource.xml @@ -8,6 +8,10 @@ about.glade + + qr.glade + + style.css diff --git a/src/ui/glade/wifih.ui b/src/ui/glade/wifih.ui index 2dab4a8..4af0e3e 100644 --- a/src/ui/glade/wifih.ui +++ b/src/ui/glade/wifih.ui @@ -1,5 +1,5 @@ - + @@ -235,7 +235,7 @@ - No Haveged + No Haveged True True False @@ -245,7 +245,7 @@ 0 9 - + Use psk @@ -488,6 +488,15 @@ + + + + + + + + + False @@ -606,6 +615,24 @@ + + + + + + + + + + + + + + + + + + False @@ -663,6 +690,19 @@ False True 48 + 0 + + + + + Open QR + True + True + True + + + False + True 1