diff options
| author | Ch1ffr3punk <sacenator@gmail.com> | 2026-03-14 18:49:13 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-03-14 18:49:13 +0100 |
| commit | c69a9d6af8aec07cc22ac15228a4b99825ac19c7 (patch) | |
| tree | c6b894e3b847e5e52cd7c368964a2041fcaefa46 | |
| parent | 6a3b7e6a1c510c6e55d3d303d7bd3dd650f93a2e (diff) | |
| download | yubicrpt-cli-c69a9d6af8aec07cc22ac15228a4b99825ac19c7.tar.gz yubicrpt-cli-c69a9d6af8aec07cc22ac15228a4b99825ac19c7.tar.xz yubicrpt-cli-c69a9d6af8aec07cc22ac15228a4b99825ac19c7.zip | |
Add files via upload
| -rw-r--r-- | localization/yubicrypt-de.go | 19 | ||||
| -rw-r--r-- | merkle-tree.txt | 12 | ||||
| -rw-r--r-- | yubicrypt.go | 19 |
3 files changed, 34 insertions, 16 deletions
diff --git a/localization/yubicrypt-de.go b/localization/yubicrypt-de.go index fa6c60b..3b66f88 100644 --- a/localization/yubicrypt-de.go +++ b/localization/yubicrypt-de.go @@ -233,19 +233,22 @@ func (g *GUI) applyTheme() { }
}
-// show info pop-up
-func (g *GUI) showInfoPopup() {
+// showInfoPopup
+func (n *GUI) showInfoPopup() {
projURL, _ := url.Parse("https://github.com/Ch1ffr3punk/yubicrypt")
+
projectLink := widget.NewHyperlink("Ein Open Source Projekt", projURL)
-
+
okButton := widget.NewButton("OK", func() {
- // Close dialog
- g.window.Canvas().Overlays().Remove(g.window.Canvas().Overlays().Top())
+ overlays := n.window.Canvas().Overlays()
+ if overlays.Top() != nil {
+ overlays.Remove(overlays.Top())
+ }
})
okButton.Importance = widget.HighImportance
-
+
content := container.NewVBox(
- widget.NewLabelWithStyle("yubicrypt v0.1.9", fyne.TextAlignCenter, fyne.TextStyle{Bold: true}),
+ widget.NewLabelWithStyle("yubicrypt v0.2.0", fyne.TextAlignCenter, fyne.TextStyle{Bold: true}),
widget.NewSeparator(),
container.NewHBox(
layout.NewSpacer(),
@@ -262,7 +265,7 @@ func (g *GUI) showInfoPopup() { ),
)
- dialog.ShowCustom("", "", content, g.window)
+ dialog.ShowCustomWithoutButtons("", content, n.window)
}
// onSignText triggers the signing process for text in the GUI
diff --git a/merkle-tree.txt b/merkle-tree.txt new file mode 100644 index 0000000..1d21cce --- /dev/null +++ b/merkle-tree.txt @@ -0,0 +1,12 @@ +--- FILE HASHES (RIPEMD-160) ---
+LICENSE: dcbebcb277ddf01358b614d4ae98395fec4b6ebf
+README.md: dea46ad50870c29ed83c4df40005ea77a1827442
+go.mod: d9a4cb9f8c66867371e8b067e6102970db7bcab5
+go.sum: 01f6325d6e84187fe83ec4c4494a9b6b58e2f4d6
+img\1.png: 3fa35a80c4af76887da3dcd642763373b08a2bb0
+localization\yubicrypt-de.go: 21862ac46a44d4b2105632a7e71c68b73b93d678
+yubicrypt.go: 60923f474ec91e475ffcacae93454e29e5bb0fcd
+yubicrypt.png: bea836be0060fa5344fc187586476b6ed944f2ab
+
+--- ROOT HASH (RIPEMD-160) ---
+90c5b7e8a92ef64084ca0636aed19e8f40bb5d14
diff --git a/yubicrypt.go b/yubicrypt.go index 0f4a6fc..f614750 100644 --- a/yubicrypt.go +++ b/yubicrypt.go @@ -233,19 +233,22 @@ func (g *GUI) applyTheme() { }
}
-// show info pop-up
-func (g *GUI) showInfoPopup() {
+// showInfoPopup
+func (n *GUI) showInfoPopup() {
projURL, _ := url.Parse("https://github.com/Ch1ffr3punk/yubicrypt")
+
projectLink := widget.NewHyperlink("An Open Source project", projURL)
-
+
okButton := widget.NewButton("OK", func() {
- // Dialog schließen
- g.window.Canvas().Overlays().Remove(g.window.Canvas().Overlays().Top())
+ overlays := n.window.Canvas().Overlays()
+ if overlays.Top() != nil {
+ overlays.Remove(overlays.Top())
+ }
})
okButton.Importance = widget.HighImportance
-
+
content := container.NewVBox(
- widget.NewLabelWithStyle("yubicrypt v0.1.9", fyne.TextAlignCenter, fyne.TextStyle{Bold: true}),
+ widget.NewLabelWithStyle("yubicrypt v0.2.0", fyne.TextAlignCenter, fyne.TextStyle{Bold: true}),
widget.NewSeparator(),
container.NewHBox(
layout.NewSpacer(),
@@ -262,7 +265,7 @@ func (g *GUI) showInfoPopup() { ),
)
- dialog.ShowCustom("", "", content, g.window)
+ dialog.ShowCustomWithoutButtons("", content, n.window)
}
// onSignText triggers the signing process for text in the GUI
|
