From 7f561c30b32c598d8ac703acde59975f572c0390 Mon Sep 17 00:00:00 2001 From: pokamest Date: Sun, 8 Jan 2023 12:32:07 +0000 Subject: [PATCH] Buttons margins --- client/ui/qml/Pages/PageAppSetting.qml | 4 ---- client/ui/qml/Pages/PageServerSettings.qml | 3 +++ client/ui/qml/Pages/PageViewConfig.qml | 3 +-- 3 files changed, 4 insertions(+), 6 deletions(-) diff --git a/client/ui/qml/Pages/PageAppSetting.qml b/client/ui/qml/Pages/PageAppSetting.qml index 3a5f71c8..a2fad5cc 100644 --- a/client/ui/qml/Pages/PageAppSetting.qml +++ b/client/ui/qml/Pages/PageAppSetting.qml @@ -71,7 +71,6 @@ PageBase { BlueButtonType { visible: !GC.isMobile() Layout.fillWidth: true - Layout.preferredHeight: 41 text: qsTr("Check for updates") onClicked: { Qt.openUrlExternally("https://github.com/amnezia-vpn/desktop-client/releases/latest") @@ -90,7 +89,6 @@ PageBase { } BlueButtonType { Layout.fillWidth: true - Layout.preferredHeight: 41 text: qsTr("Open logs folder") onClicked: { AppSettingsLogic.onPushButtonOpenLogsClicked() @@ -100,7 +98,6 @@ PageBase { BlueButtonType { Layout.fillWidth: true Layout.topMargin: 10 - Layout.preferredHeight: 41 text: qsTr("Export logs") onClicked: { AppSettingsLogic.onPushButtonExportLogsClicked() @@ -110,7 +107,6 @@ PageBase { BlueButtonType { Layout.fillWidth: true Layout.topMargin: 10 - Layout.preferredHeight: 41 property string start_text: qsTr("Clear logs") property string end_text: qsTr("Cleared") diff --git a/client/ui/qml/Pages/PageServerSettings.qml b/client/ui/qml/Pages/PageServerSettings.qml index fde7026d..8ce01d21 100644 --- a/client/ui/qml/Pages/PageServerSettings.qml +++ b/client/ui/qml/Pages/PageServerSettings.qml @@ -76,6 +76,7 @@ PageBase { } BlueButtonType { Layout.fillWidth: true + Layout.topMargin: 10 text: qsTr("Share Server (FULL ACCESS)") visible: ServerSettingsLogic.pushButtonShareFullVisible onClicked: { @@ -94,6 +95,7 @@ PageBase { } BlueButtonType { Layout.fillWidth: true + Layout.topMargin: 10 text: ServerSettingsLogic.pushButtonClearClientCacheText visible: ServerSettingsLogic.pushButtonClearClientCacheVisible onClicked: { @@ -102,6 +104,7 @@ PageBase { } BlueButtonType { Layout.fillWidth: true + Layout.topMargin: 10 text: qsTr("Forget this server") onClicked: { ServerSettingsLogic.onPushButtonForgetServer() diff --git a/client/ui/qml/Pages/PageViewConfig.qml b/client/ui/qml/Pages/PageViewConfig.qml index a39a344d..bdf729aa 100644 --- a/client/ui/qml/Pages/PageViewConfig.qml +++ b/client/ui/qml/Pages/PageViewConfig.qml @@ -115,7 +115,7 @@ AmneziaVPN detected this profile may contain malicious scripts. Please, carefull BasicButtonType { Layout.preferredWidth: (content.width - parent.spacing) /2 - Layout.preferredHeight: 41 + Layout.preferredHeight: 40 font.pixelSize: btn_import.font.pixelSize text: qsTr("Cancel") onClicked: { @@ -126,7 +126,6 @@ AmneziaVPN detected this profile may contain malicious scripts. Please, carefull BlueButtonType { id: btn_import Layout.preferredWidth: (content.width - parent.spacing) /2 - Layout.preferredHeight: 41 text: qsTr("Import config") onClicked: { logic.importConfig()