mirror of
https://github.com/ProtonMail/proton-bridge.git
synced 2025-12-16 07:06:45 +00:00
Do not mix font awesome icon with regular text to avoid issues on Fedora
This commit is contained in:
@ -24,6 +24,8 @@ Changelog [format](http://keepachangelog.com/en/1.0.0/)
|
|||||||
### Fixed
|
### Fixed
|
||||||
* GODT-703 Import-Export showed always at least one total message.
|
* GODT-703 Import-Export showed always at least one total message.
|
||||||
* GODT-738 Fix for mbox files with long lines.
|
* GODT-738 Fix for mbox files with long lines.
|
||||||
|
### Fixed
|
||||||
|
* GODT-732 Do not mix font awesome icon with regular text to avoid issues on Fedora.
|
||||||
|
|
||||||
## [Bridge 1.4.0] Forth
|
## [Bridge 1.4.0] Forth
|
||||||
|
|
||||||
|
|||||||
@ -48,6 +48,7 @@ Item {
|
|||||||
text : qsTr("Clear", "clickable link next to clear cache button in settings")
|
text : qsTr("Clear", "clickable link next to clear cache button in settings")
|
||||||
color: Style.main.text
|
color: Style.main.text
|
||||||
font {
|
font {
|
||||||
|
family : cacheClear.font.family // use default font, not font-awesome
|
||||||
pointSize : Style.settings.fontSize * Style.pt
|
pointSize : Style.settings.fontSize * Style.pt
|
||||||
underline : true
|
underline : true
|
||||||
}
|
}
|
||||||
@ -66,6 +67,7 @@ Item {
|
|||||||
text : qsTr("Clear", "clickable link next to clear keychain button in settings")
|
text : qsTr("Clear", "clickable link next to clear keychain button in settings")
|
||||||
color: Style.main.text
|
color: Style.main.text
|
||||||
font {
|
font {
|
||||||
|
family : cacheKeychain.font.family // use default font, not font-awesome
|
||||||
pointSize : Style.settings.fontSize * Style.pt
|
pointSize : Style.settings.fontSize * Style.pt
|
||||||
underline : true
|
underline : true
|
||||||
}
|
}
|
||||||
@ -125,6 +127,7 @@ Item {
|
|||||||
text : qsTr("Change", "clickable link next to change ports button in settings")
|
text : qsTr("Change", "clickable link next to change ports button in settings")
|
||||||
color: Style.main.text
|
color: Style.main.text
|
||||||
font {
|
font {
|
||||||
|
family : changePort.font.family // use default font, not font-awesome
|
||||||
pointSize : Style.settings.fontSize * Style.pt
|
pointSize : Style.settings.fontSize * Style.pt
|
||||||
underline : true
|
underline : true
|
||||||
}
|
}
|
||||||
|
|||||||
@ -483,18 +483,30 @@ Dialog {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Text {
|
Row {
|
||||||
property int fails: go.progressFails
|
property int fails: go.progressFails
|
||||||
visible: fails > 0
|
visible: fails > 0
|
||||||
color : Style.main.textRed
|
|
||||||
font.family: Style.fontawesome.name
|
|
||||||
font.pointSize: Style.main.fontSize * Style.pt
|
|
||||||
anchors.horizontalCenter: parent.horizontalCenter
|
anchors.horizontalCenter: parent.horizontalCenter
|
||||||
text: Style.fa.exclamation_circle + " " + (
|
|
||||||
fails == 1 ?
|
Text {
|
||||||
qsTr("%1 message failed to be imported").arg(fails) :
|
color: Style.main.textRed
|
||||||
qsTr("%1 messages failed to be imported").arg(fails)
|
font {
|
||||||
)
|
pointSize : Style.dialog.fontSize * Style.pt
|
||||||
|
family : Style.fontawesome.name
|
||||||
|
}
|
||||||
|
text: Style.fa.exclamation_circle
|
||||||
|
}
|
||||||
|
|
||||||
|
Text {
|
||||||
|
property int fails: go.progressFails
|
||||||
|
color: Style.main.textRed
|
||||||
|
font.pointSize: Style.main.fontSize * Style.pt
|
||||||
|
text: " " + (
|
||||||
|
fails == 1 ?
|
||||||
|
qsTr("%1 message failed to be imported").arg(fails) :
|
||||||
|
qsTr("%1 messages failed to be imported").arg(fails)
|
||||||
|
)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Row { // buttons
|
Row { // buttons
|
||||||
@ -575,12 +587,23 @@ Dialog {
|
|||||||
anchors.centerIn : finalReport
|
anchors.centerIn : finalReport
|
||||||
spacing : Style.dialog.heightSeparator
|
spacing : Style.dialog.heightSeparator
|
||||||
|
|
||||||
Text {
|
Row {
|
||||||
text: go.progressDescription!="" ? qsTr("Import failed: %1").arg(go.progressDescription) : Style.fa.check_circle + " " + qsTr("Import completed successfully")
|
|
||||||
anchors.horizontalCenter: parent.horizontalCenter
|
anchors.horizontalCenter: parent.horizontalCenter
|
||||||
color: go.progressDescription!="" ? Style.main.textRed : Style.main.textGreen
|
|
||||||
font.bold : true
|
Text {
|
||||||
font.family: Style.fontawesome.name
|
font {
|
||||||
|
pointSize: Style.dialog.fontSize * Style.pt
|
||||||
|
family: Style.fontawesome.name
|
||||||
|
}
|
||||||
|
color: Style.main.textGreen
|
||||||
|
text: go.progressDescription!="" ? "" : Style.fa.check_circle
|
||||||
|
}
|
||||||
|
|
||||||
|
Text {
|
||||||
|
text: go.progressDescription!="" ? qsTr("Import failed: %1").arg(go.progressDescription) : " " + qsTr("Import completed successfully")
|
||||||
|
color: go.progressDescription!="" ? Style.main.textRed : Style.main.textGreen
|
||||||
|
font.bold : true
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Text {
|
Text {
|
||||||
|
|||||||
@ -74,7 +74,7 @@ Item {
|
|||||||
)
|
)
|
||||||
width: wrapper.width
|
width: wrapper.width
|
||||||
color : Style.transparent
|
color : Style.transparent
|
||||||
Text {
|
AccessibleText {
|
||||||
id: aboutText
|
id: aboutText
|
||||||
anchors {
|
anchors {
|
||||||
bottom: parent.bottom
|
bottom: parent.bottom
|
||||||
@ -82,8 +82,8 @@ Item {
|
|||||||
}
|
}
|
||||||
color: Style.main.textDisabled
|
color: Style.main.textDisabled
|
||||||
horizontalAlignment: Qt.AlignHCenter
|
horizontalAlignment: Qt.AlignHCenter
|
||||||
font.family : Style.fontawesome.name
|
font.pointSize : Style.main.fontSize * Style.pt
|
||||||
text: "ProtonMail Import-Export app Version "+go.getBackendVersion()+"\n"+Style.fa.copyright + " 2020 Proton Technologies AG"
|
text: "ProtonMail Import-Export app Version "+go.getBackendVersion()+"\n© 2020 Proton Technologies AG"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -42,34 +42,50 @@ ComboBox {
|
|||||||
root.below = popup.y>0
|
root.below = popup.y>0
|
||||||
}
|
}
|
||||||
|
|
||||||
contentItem : Text {
|
contentItem : Row {
|
||||||
id: boxText
|
id: boxText
|
||||||
verticalAlignment: Text.AlignVCenter
|
|
||||||
font {
|
|
||||||
family: Style.fontawesome.name
|
|
||||||
pointSize : Style.dialog.fontSize * Style.pt
|
|
||||||
bold: root.down
|
|
||||||
}
|
|
||||||
elide: Text.ElideRight
|
|
||||||
textFormat: Text.StyledText
|
|
||||||
|
|
||||||
text : root.displayText
|
Text {
|
||||||
color: !root.enabled ? Style.main.textDisabled : ( root.down ? Style.main.background : Style.main.text )
|
anchors.verticalCenter: parent.verticalCenter
|
||||||
|
font {
|
||||||
|
pointSize: Style.dialog.fontSize * Style.pt
|
||||||
|
family: Style.fontawesome.name
|
||||||
|
}
|
||||||
|
text: {
|
||||||
|
if (view.currentIndex >= 0) {
|
||||||
|
if (!root.isFolderType) {
|
||||||
|
return Style.fa.tags + " "
|
||||||
|
}
|
||||||
|
var tgtIcon = view.currentItem.folderIcon
|
||||||
|
var tgtColor = view.currentItem.folderColor
|
||||||
|
if (tgtIcon != Style.fa.folder_open) {
|
||||||
|
return tgtIcon + " "
|
||||||
|
}
|
||||||
|
return '<font color="'+tgtColor+'">'+ tgtIcon + "</font> "
|
||||||
|
}
|
||||||
|
return ""
|
||||||
|
}
|
||||||
|
color: !root.enabled ? Style.main.textDisabled : ( root.down ? Style.main.background : Style.main.text )
|
||||||
|
}
|
||||||
|
|
||||||
|
Text {
|
||||||
|
anchors.verticalCenter: parent.verticalCenter
|
||||||
|
font {
|
||||||
|
pointSize : Style.dialog.fontSize * Style.pt
|
||||||
|
bold: root.down
|
||||||
|
}
|
||||||
|
elide: Text.ElideRight
|
||||||
|
textFormat: Text.StyledText
|
||||||
|
|
||||||
|
text : root.displayText
|
||||||
|
color: !root.enabled ? Style.main.textDisabled : ( root.down ? Style.main.background : Style.main.text )
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
displayText: {
|
displayText: {
|
||||||
if (view.currentIndex >= 0) {
|
if (view.currentIndex >= 0) {
|
||||||
if (!root.isFolderType) return Style.fa.tags + " " + qsTr("Add/Remove labels")
|
if (!root.isFolderType) return qsTr("Add/Remove labels")
|
||||||
|
return view.currentItem.folderName
|
||||||
var tgtName = view.currentItem.folderName
|
|
||||||
var tgtIcon = view.currentItem.folderIcon
|
|
||||||
var tgtColor = view.currentItem.folderColor
|
|
||||||
|
|
||||||
if (tgtIcon != Style.fa.folder_open) {
|
|
||||||
return tgtIcon + " " + tgtName
|
|
||||||
}
|
|
||||||
|
|
||||||
return '<font color="'+tgtColor+'">'+ tgtIcon + "</font> " + tgtName
|
|
||||||
}
|
}
|
||||||
if (root.isFolderType) return qsTr("No folder selected")
|
if (root.isFolderType) return qsTr("No folder selected")
|
||||||
return qsTr("No labels selected")
|
return qsTr("No labels selected")
|
||||||
|
|||||||
@ -44,6 +44,7 @@ Item {
|
|||||||
text : qsTr("Clear")
|
text : qsTr("Clear")
|
||||||
color: Style.main.text
|
color: Style.main.text
|
||||||
font {
|
font {
|
||||||
|
family : cacheKeychain.font.family // use default font, not font-awesome
|
||||||
pointSize : Style.settings.fontSize * Style.pt
|
pointSize : Style.settings.fontSize * Style.pt
|
||||||
underline : true
|
underline : true
|
||||||
}
|
}
|
||||||
|
|||||||
@ -84,7 +84,7 @@ Window {
|
|||||||
height: content.height - (
|
height: content.height - (
|
||||||
(clientVersion.visible ? clientVersion.height + Style.dialog.fontSize : 0) +
|
(clientVersion.visible ? clientVersion.height + Style.dialog.fontSize : 0) +
|
||||||
userAddress.height + Style.dialog.fontSize +
|
userAddress.height + Style.dialog.fontSize +
|
||||||
securityNote.contentHeight + Style.dialog.fontSize +
|
securityNoteText.contentHeight + Style.dialog.fontSize +
|
||||||
cancelButton.height + Style.dialog.fontSize
|
cancelButton.height + Style.dialog.fontSize
|
||||||
)
|
)
|
||||||
clip: true
|
clip: true
|
||||||
@ -215,7 +215,7 @@ Window {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Note
|
// Note
|
||||||
AccessibleText {
|
Row {
|
||||||
id: securityNote
|
id: securityNote
|
||||||
anchors {
|
anchors {
|
||||||
left: parent.left
|
left: parent.left
|
||||||
@ -223,14 +223,32 @@ Window {
|
|||||||
top: userAddress.bottom
|
top: userAddress.bottom
|
||||||
topMargin: Style.dialog.fontSize
|
topMargin: Style.dialog.fontSize
|
||||||
}
|
}
|
||||||
wrapMode: Text.Wrap
|
|
||||||
color: Style.dialog.text
|
Text {
|
||||||
font.pointSize : Style.dialog.fontSize * Style.pt
|
id: securityNoteIcon
|
||||||
text:
|
font {
|
||||||
"<span style='font-family: " + Style.fontawesome.name + "'>" + Style.fa.exclamation_triangle + "</span> " +
|
pointSize : Style.dialog.fontSize * Style.pt
|
||||||
qsTr("Bug reports are not end-to-end encrypted!", "The first part of warning in bug report form") + " " +
|
family : Style.fontawesome.name
|
||||||
qsTr("Please do not send any sensitive information.", "The second part of warning in bug report form") + " " +
|
}
|
||||||
qsTr("Contact us at security@protonmail.com for critical security issues.", "The third part of warning in bug report form")
|
color: Style.dialog.text
|
||||||
|
text : Style.fa.exclamation_triangle
|
||||||
|
}
|
||||||
|
|
||||||
|
AccessibleText {
|
||||||
|
id: securityNoteText
|
||||||
|
anchors {
|
||||||
|
left: securityNoteIcon.right
|
||||||
|
leftMargin: 5 * Style.pt
|
||||||
|
right: parent.right
|
||||||
|
}
|
||||||
|
wrapMode: Text.Wrap
|
||||||
|
color: Style.dialog.text
|
||||||
|
font.pointSize : Style.dialog.fontSize * Style.pt
|
||||||
|
text:
|
||||||
|
qsTr("Bug reports are not end-to-end encrypted!", "The first part of warning in bug report form") + " " +
|
||||||
|
qsTr("Please do not send any sensitive information.", "The second part of warning in bug report form") + " " +
|
||||||
|
qsTr("Contact us at security@protonmail.com for critical security issues.", "The third part of warning in bug report form")
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// buttons
|
// buttons
|
||||||
|
|||||||
Reference in New Issue
Block a user