LoginPage: Fix coloring of login button

This is a compromise that works acceptable in styles that support colors and those that don't
parent 33a93b0a
Pipeline #364 failed with stages
in 7 minutes and 22 seconds
......@@ -30,8 +30,9 @@
import QtQuick 2.7
import QtQuick.Controls 2.0 as Controls
import QtQuick.Controls.Material 2.0
import QtQuick.Layouts 1.2
import org.kde.kirigami 2.0 as Kirigami
import org.kde.kirigami 2.5 as Kirigami
import im.kaidan.kaidan 1.0
Kirigami.Page {
......@@ -105,7 +106,8 @@ Kirigami.Page {
Controls.Button {
id: connectButton
Layout.fillWidth: true
highlighted: true
Kirigami.Theme.backgroundColor: Material.accent
text: qsTr("Connect")
states: [
State {
......@@ -113,9 +115,6 @@ Kirigami.Page {
PropertyChanges {
target: connectButton
enabled: false
}
PropertyChanges {
target: connectLabel
text: "<i>" + qsTr("Connecting…") + "</i>"
}
}
......@@ -127,14 +126,6 @@ Kirigami.Page {
kaidan.password = passField.text
kaidan.mainConnect()
}
Controls.Label {
id: connectLabel
anchors.centerIn: connectButton
text: qsTr("Connect")
color: Kirigami.Theme.highlightedTextColor
textFormat: Text.StyledText
}
}
// connect when return was pressed
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment