pp-covidcert

Vaccination Certificate fpor the EU
git clone https://src.jayvii.de/pub/pp-covidcert.git
Log | Files | Refs

commit 02dfd10aefe53e68fa259677c1c666a7f31d2e61
parent ec13a5da8b49a9f6029dea402a1c0296edea417a
Author: JayVii <jayvii@posteo.de>
Date:   Wed, 25 Aug 2021 10:33:21 +0200

Fit images

Diffstat:
Mpp-covidcert.sh | 21++++++++++++++++-----
1 file changed, 16 insertions(+), 5 deletions(-)

diff --git a/pp-covidcert.sh b/pp-covidcert.sh @@ -10,6 +10,8 @@ CERT02="$CERTDIR/cert02.png" function prompt_nocerts { yad --title="EU Digital COVID Pass" \ --image="$ICON" \ + --image-on-top \ + --size=fit \ --text="One or more of your certificates do not seem to exist yet." \ --form \ --field="Try to recover from Cert-Code file:CHK" \ @@ -19,6 +21,8 @@ function prompt_nocerts { function prompt_nocertdata { yad --title="EU Digital COVID Pass" \ --image="$ICON" \ + --image-on-top \ + --size=fit \ --text="There seems to be an issue with your Cert-Code file..." \ --form \ --button="Load Certificates manually" @@ -28,15 +32,19 @@ function prompt_nocertdata { function prompt_loadcertdata { yad --title="EU Digital COVID Pass" \ --image="$ICON" \ + --image-on-top \ + --size=fit \ --text="Scan and copy your vaccination QR Code information below." \ --form \ - --field="Vaccination #$1" Text \ + --field="Vaccination #$1:TXT" Text \ --button="Create QR Code" } function prompt_main { yad --title="EU Digital COVID Pass" \ --image="$ICON" \ + --image-on-top \ + --size=fit \ --text="Which Certificate should be displayed?" \ --form \ --field="Show Certificate 01:CHK" \ @@ -45,7 +53,10 @@ function prompt_main { function prompt_showcert { yad --title="EU Digital COVID Pass" \ - --image="$1" + --image="$1" \ + --image-on-top \ + --size=fit \ + --align=center } if [[ ! -f "$CERT01" ]] || [[ ! -f "$CERT02" ]]; then @@ -72,19 +83,19 @@ fi CLOSE_APPLICATION=0 -while [[ $CLOSE_APPLICATION != 0 ]]; do +while [[ $CLOSE_APPLICATION == 0 ]]; do CHOOSE=$(prompt_main) if [[ $(printf "$CHOOSE" | cut -d "|" -f1) == "TRUE" ]]; then prompt_showcert "$CERT01" + CLOSE_APPLICATION=$? fi if [[ $(printf "$CHOOSE" | cut -d "|" -f2) == "TRUE" ]]; then prompt_showcert "$CERT02" + CLOSE_APPLICATION=$? fi - CLOSE_APPLICATION=$? - done # EOF pp-covidcert.sh