forked from Silverfish/proton-bridge
feat(GODT-2772): configure email client button is highlighted
Misc minor tweaks & fixes.
This commit is contained in:
@ -23,6 +23,7 @@ Item {
|
|||||||
property int _detailsMargin: 25
|
property int _detailsMargin: 25
|
||||||
property int _lineThickness: 1
|
property int _lineThickness: 1
|
||||||
property int _spacing: 20
|
property int _spacing: 20
|
||||||
|
property int _buttonSpacing: 8
|
||||||
property int _topMargin: 32
|
property int _topMargin: 32
|
||||||
property ColorScheme colorScheme
|
property ColorScheme colorScheme
|
||||||
property var notifications
|
property var notifications
|
||||||
@ -63,7 +64,7 @@ Item {
|
|||||||
// account delegate with action buttons
|
// account delegate with action buttons
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
Layout.topMargin: _topMargin
|
Layout.topMargin: _topMargin
|
||||||
|
spacing: _buttonSpacing
|
||||||
AccountDelegate {
|
AccountDelegate {
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
colorScheme: root.colorScheme
|
colorScheme: root.colorScheme
|
||||||
@ -118,12 +119,12 @@ Item {
|
|||||||
}
|
}
|
||||||
SettingsItem {
|
SettingsItem {
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
actionText: qsTr("Configure")
|
actionText: qsTr("Configure email client")
|
||||||
colorScheme: root.colorScheme
|
colorScheme: root.colorScheme
|
||||||
description: qsTr("Using the mailbox details below (re)configure your client.")
|
description: qsTr("Using the mailbox details below (re)configure your client.")
|
||||||
showSeparator: splitMode.visible
|
showSeparator: splitMode.visible
|
||||||
text: qsTr("Email clients")
|
text: qsTr("Email clients")
|
||||||
type: SettingsItem.Button
|
type: SettingsItem.PrimaryButton
|
||||||
visible: _connected && ((!root.user.splitMode) || (root.user.addresses.length === 1))
|
visible: _connected && ((!root.user.splitMode) || (root.user.addresses.length === 1))
|
||||||
|
|
||||||
onClicked: {
|
onClicked: {
|
||||||
@ -165,8 +166,8 @@ Item {
|
|||||||
}
|
}
|
||||||
Button {
|
Button {
|
||||||
colorScheme: root.colorScheme
|
colorScheme: root.colorScheme
|
||||||
secondary: true
|
secondary: false
|
||||||
text: qsTr("Configure")
|
text: qsTr("Configure email client")
|
||||||
|
|
||||||
onClicked: {
|
onClicked: {
|
||||||
if (!root.user)
|
if (!root.user)
|
||||||
|
|||||||
@ -76,7 +76,7 @@ Rectangle {
|
|||||||
Button {
|
Button {
|
||||||
colorScheme: root.colorScheme
|
colorScheme: root.colorScheme
|
||||||
icon.source: "/qml/icons/ic-external-link.svg"
|
icon.source: "/qml/icons/ic-external-link.svg"
|
||||||
text: qsTr("Open Guide")
|
text: qsTr("Open guide")
|
||||||
|
|
||||||
onClicked: function () {
|
onClicked: function () {
|
||||||
Backend.showWebFrameWindow(wizard.setupGuideLink());
|
Backend.showWebFrameWindow(wizard.setupGuideLink());
|
||||||
|
|||||||
Reference in New Issue
Block a user