lint refactor
This commit is contained in:
53 files changed
+891
-670
No files matched your search
@@ -1,11 +1,12 @@
|
||||
import QtQuick
|
||||
import QtQuick.Controls
|
||||
import QtQuick.Controls.Basic
|
||||
import Asteria
|
||||
|
||||
Rectangle {
|
||||
id: overlay
|
||||
id: root
|
||||
|
||||
color: ThemeManager.currentTheme.overlayBg
|
||||
visible: book.errorMessage !== ""
|
||||
visible: Book.errorMessage !== ""
|
||||
|
||||
MouseArea {
|
||||
anchors.fill: parent
|
||||
@@ -14,13 +15,14 @@ Rectangle {
|
||||
|
||||
Rectangle {
|
||||
anchors.centerIn: parent
|
||||
width: Math.min(overlay.width * 0.7, 440)
|
||||
width: Math.min(root.width * 0.7, 440)
|
||||
height: dialogColumn.implicitHeight + 48
|
||||
color: ThemeManager.currentTheme.surface
|
||||
radius: 8
|
||||
|
||||
Column {
|
||||
id: dialogColumn
|
||||
spacing: 20
|
||||
anchors {
|
||||
top: parent.top
|
||||
left: parent.left
|
||||
@@ -29,11 +31,10 @@ Rectangle {
|
||||
leftMargin: 24
|
||||
rightMargin: 24
|
||||
}
|
||||
spacing: 20
|
||||
|
||||
Text {
|
||||
width: parent.width
|
||||
text: book.errorMessage
|
||||
text: Book.errorMessage
|
||||
font.pixelSize: 15
|
||||
color: ThemeManager.currentTheme.readingText
|
||||
horizontalAlignment: Text.AlignHCenter
|
||||
@@ -41,10 +42,11 @@ Rectangle {
|
||||
}
|
||||
|
||||
Button {
|
||||
id: okButton
|
||||
anchors.horizontalCenter: parent.horizontalCenter
|
||||
text: "Ok"
|
||||
contentItem: Text {
|
||||
text: parent.text
|
||||
text: okButton.text
|
||||
font.pixelSize: 14
|
||||
color: "#ffffff"
|
||||
horizontalAlignment: Text.AlignHCenter
|
||||
@@ -53,9 +55,9 @@ Rectangle {
|
||||
implicitWidth: 80
|
||||
implicitHeight: 36
|
||||
radius: 4
|
||||
color: parent.hovered ? Qt.lighter(ThemeManager.currentTheme.primaryAccent, 1.15) : ThemeManager.currentTheme.primaryAccent
|
||||
color: okButton.hovered ? Qt.lighter(ThemeManager.currentTheme.primaryAccent, 1.15) : ThemeManager.currentTheme.primaryAccent
|
||||
}
|
||||
onClicked: book.clearError()
|
||||
onClicked: Book.clearError()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user