diff --git a/pyproject.toml b/pyproject.toml index c23f52b..6a00c47 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -9,8 +9,8 @@ readme = "README.md" license = {file = "LICENSE"} dynamic = ["version", "description"] dependencies = [ - "pyside6 >=6.8.1", - "johnnycanencrypt == 0.15.0", + "PySide6", + "johnnycanencrypt", ] [project.urls] @@ -22,7 +22,7 @@ tugpgp = "tugpgp.app:main" [tool.briefcase] project_name = "Tugpgp" bundle = "in.kushaldas.tugpgp" -version = "0.1.3a2" +version = "0.2.0a1" url = "https://github.com/SUNET/tugpgp" license.file = "LICENSE" author = 'Kushal Das' @@ -35,12 +35,14 @@ long_description = "OpenPGP key generation and Yubikey upload tool" icon = "images/in.kushaldas.tugpgp" sources = ['src/tugpgp'] requires = [ - 'pyside6>=6.8.1', - 'johnnycanencrypt>=0.17.0', + 'PySide6', + 'johnnycanencrypt', ] [tool.briefcase.app.tugpgp.macOS] +universal_build = false +min_os_version = "15.0" requires = [ 'std-nslog~=1.0.0' ] diff --git a/src/tugpgp/UpdateSuccess.qml b/src/tugpgp/UpdateSuccess.qml index 7b1eaa4..bc9e2e2 100644 --- a/src/tugpgp/UpdateSuccess.qml +++ b/src/tugpgp/UpdateSuccess.qml @@ -26,15 +26,27 @@ Rectangle { } } - Text { - id: message + Rectangle { + id: messageBackground anchors.top: bigRow.bottom anchors.topMargin: 20 - width: parent.width - 80 - horizontalAlignment: Text.AlignHCenter - wrapMode: Text.WordWrap - font.pixelSize: 14 - color: "#252021" - text: qsTr("%1").arg(process.UpdatedFilePath) + anchors.horizontalCenter: parent.horizontalCenter + width: Math.min(message.implicitWidth + 24, parent.width - 80) + height: message.implicitHeight + 20 + color: "#fafafa" + radius: 4 + border.color: "#ddd" + + TextInput { + id: message + anchors.centerIn: parent + width: parent.width - 24 + font.pixelSize: 13 + font.family: "monospace" + color: "#252021" + text: process.UpdatedFilePath + readOnly: true + selectByMouse: true + } } } diff --git a/src/tugpgp/main.qml b/src/tugpgp/main.qml index 9dbdc98..b1bfe25 100644 --- a/src/tugpgp/main.qml +++ b/src/tugpgp/main.qml @@ -3,7 +3,7 @@ import QtQuick.Window import QtQuick.Controls ApplicationWindow { - title: qsTr("Tugpgp v0.1.3a2") + title: qsTr("Tugpgp v0.2.0a1") width: 983 height: 702 visible: true