Buttons margins

This commit is contained in:
pokamest 2023-01-08 12:32:07 +00:00
parent 1d8f342417
commit 7f561c30b3
3 changed files with 4 additions and 6 deletions

View file

@ -71,7 +71,6 @@ PageBase {
BlueButtonType { BlueButtonType {
visible: !GC.isMobile() visible: !GC.isMobile()
Layout.fillWidth: true Layout.fillWidth: true
Layout.preferredHeight: 41
text: qsTr("Check for updates") text: qsTr("Check for updates")
onClicked: { onClicked: {
Qt.openUrlExternally("https://github.com/amnezia-vpn/desktop-client/releases/latest") Qt.openUrlExternally("https://github.com/amnezia-vpn/desktop-client/releases/latest")
@ -90,7 +89,6 @@ PageBase {
} }
BlueButtonType { BlueButtonType {
Layout.fillWidth: true Layout.fillWidth: true
Layout.preferredHeight: 41
text: qsTr("Open logs folder") text: qsTr("Open logs folder")
onClicked: { onClicked: {
AppSettingsLogic.onPushButtonOpenLogsClicked() AppSettingsLogic.onPushButtonOpenLogsClicked()
@ -100,7 +98,6 @@ PageBase {
BlueButtonType { BlueButtonType {
Layout.fillWidth: true Layout.fillWidth: true
Layout.topMargin: 10 Layout.topMargin: 10
Layout.preferredHeight: 41
text: qsTr("Export logs") text: qsTr("Export logs")
onClicked: { onClicked: {
AppSettingsLogic.onPushButtonExportLogsClicked() AppSettingsLogic.onPushButtonExportLogsClicked()
@ -110,7 +107,6 @@ PageBase {
BlueButtonType { BlueButtonType {
Layout.fillWidth: true Layout.fillWidth: true
Layout.topMargin: 10 Layout.topMargin: 10
Layout.preferredHeight: 41
property string start_text: qsTr("Clear logs") property string start_text: qsTr("Clear logs")
property string end_text: qsTr("Cleared") property string end_text: qsTr("Cleared")

View file

@ -76,6 +76,7 @@ PageBase {
} }
BlueButtonType { BlueButtonType {
Layout.fillWidth: true Layout.fillWidth: true
Layout.topMargin: 10
text: qsTr("Share Server (FULL ACCESS)") text: qsTr("Share Server (FULL ACCESS)")
visible: ServerSettingsLogic.pushButtonShareFullVisible visible: ServerSettingsLogic.pushButtonShareFullVisible
onClicked: { onClicked: {
@ -94,6 +95,7 @@ PageBase {
} }
BlueButtonType { BlueButtonType {
Layout.fillWidth: true Layout.fillWidth: true
Layout.topMargin: 10
text: ServerSettingsLogic.pushButtonClearClientCacheText text: ServerSettingsLogic.pushButtonClearClientCacheText
visible: ServerSettingsLogic.pushButtonClearClientCacheVisible visible: ServerSettingsLogic.pushButtonClearClientCacheVisible
onClicked: { onClicked: {
@ -102,6 +104,7 @@ PageBase {
} }
BlueButtonType { BlueButtonType {
Layout.fillWidth: true Layout.fillWidth: true
Layout.topMargin: 10
text: qsTr("Forget this server") text: qsTr("Forget this server")
onClicked: { onClicked: {
ServerSettingsLogic.onPushButtonForgetServer() ServerSettingsLogic.onPushButtonForgetServer()

View file

@ -115,7 +115,7 @@ AmneziaVPN detected this profile may contain malicious scripts. Please, carefull
BasicButtonType { BasicButtonType {
Layout.preferredWidth: (content.width - parent.spacing) /2 Layout.preferredWidth: (content.width - parent.spacing) /2
Layout.preferredHeight: 41 Layout.preferredHeight: 40
font.pixelSize: btn_import.font.pixelSize font.pixelSize: btn_import.font.pixelSize
text: qsTr("Cancel") text: qsTr("Cancel")
onClicked: { onClicked: {
@ -126,7 +126,6 @@ AmneziaVPN detected this profile may contain malicious scripts. Please, carefull
BlueButtonType { BlueButtonType {
id: btn_import id: btn_import
Layout.preferredWidth: (content.width - parent.spacing) /2 Layout.preferredWidth: (content.width - parent.spacing) /2
Layout.preferredHeight: 41
text: qsTr("Import config") text: qsTr("Import config")
onClicked: { onClicked: {
logic.importConfig() logic.importConfig()