Update: Added states to virtual keyboard button, improved readability.

This commit is contained in:
Keyitdev
2024-10-08 01:07:51 +02:00
parent 1663dbd524
commit 8993670e73
4 changed files with 32 additions and 10 deletions
+1
View File
@@ -375,6 +375,7 @@ Column {
Item {
id: login
// important
// try 4 or 9 ...
height: root.font.pointSize * 9
width: parent.width / 2
anchors.horizontalCenter: parent.horizontalCenter
+6 -6
View File
@@ -120,11 +120,11 @@ Item {
when: selectSession.down
PropertyChanges {
target: displayedItem
color: Qt.darker(root.palette.highlight, 1.1)
color: Qt.darker(root.palette.toolTipBase, 1.1)
}
PropertyChanges {
target: selectSession.background
border.color: Qt.darker(root.palette.highlight, 1.1)
border.color: Qt.darker(root.palette.toolTipBase, 1.1)
}
},
State {
@@ -132,11 +132,11 @@ Item {
when: selectSession.hovered
PropertyChanges {
target: displayedItem
color: Qt.lighter(root.palette.highlight, 1.1)
color: Qt.lighter(root.palette.toolTipBase, 1.1)
}
PropertyChanges {
target: selectSession.background
border.color: Qt.lighter(root.palette.highlight, 1.1)
border.color: Qt.lighter(root.palette.toolTipBase, 1.1)
}
},
State {
@@ -144,11 +144,11 @@ Item {
when: selectSession.visualFocus
PropertyChanges {
target: displayedItem
color: root.palette.highlight
color: root.palette.toolTipBase
}
PropertyChanges {
target: selectSession.background
border.color: root.palette.highlight
border.color: root.palette.toolTipBase
}
}
]
+22 -3
View File
@@ -15,11 +15,11 @@ Pane {
height: config.ScreenHeight || Screen.height
width: config.ScreenWidth || Screen.ScreenWidth
padding: config.ScreenPadding
LayoutMirroring.enabled: config.RightToLeftLayout == "true" ? true : Qt.application.layoutDirection === Qt.RightToLeft
LayoutMirroring.childrenInherit: true
padding: config.ScreenPadding
palette.button: "transparent"
palette.highlight: config.HighlightColor
palette.window: config.BackgroundColor
@@ -30,7 +30,8 @@ Pane {
palette.link: config.LoginButtonBackgroundColor == "" ? config.HighlightColor : config.LoginButtonBackgroundColor
palette.mid: config.LoginButtonTextColor == "" ? config.TextColor : config.LoginButtonTextColor
palette.alternateBase: config.BackgroundListColor == "" ? config.BackgroundColor: config.BackgroundListColor
palette.toolTipBase: config.HoverSessionAndVirtualKeyboard == "" ? config.HighlightColor : config.HoverSessionAndVirtualKeyboard
font.family: config.Font
font.pointSize: config.FontSize !== "" ? config.FontSize : parseInt(height / 80)
focus: true
@@ -95,7 +96,7 @@ Pane {
SessionButton {
id: sessionSelect
anchors.bottom: parent.bottom
anchors.bottomMargin: 70
anchors.bottomMargin: parent.height/16
}
}
@@ -128,6 +129,15 @@ Pane {
color: "transparent"
}
states: [
State {
name: "HoveredAndChecked"
when: vkb.checked && vkb.hovered
PropertyChanges {
target: buttonVirtualKeyboard
text: config.TranslateVirtualKeyboardButtonOn || "Virtual Keyboard (on)"
color: root.palette.toolTipBase
}
},
State {
name: "checked"
when: vkb.checked
@@ -135,6 +145,15 @@ Pane {
target: buttonVirtualKeyboard
text: config.TranslateVirtualKeyboardButtonOn || "Virtual Keyboard (on)"
}
},
State {
name: "hovered"
when: vkb.hovered
PropertyChanges {
target: buttonVirtualKeyboard
text: config.TranslateVirtualKeyboardButtonOff || "Virtual Keyboard (off)"
color: root.palette.toolTipBase
}
}
]
}
+3 -1
View File
@@ -57,7 +57,7 @@ PlaceholderColor="#bbbbbb"
SystemButtonsIconColor="#F8F8F2"
# System icon colors.
HighlightTextColor=""
HighlightTextColor="#b7cef1"
# Overrides HighlightColor.
LoginButtonTextColor=""
# Overrides TextColor.
@@ -65,6 +65,8 @@ LoginButtonBackgroundColor=""
# Overrides HighlightColor.
BackgroundListColor=""
# Overrides BackgroundColor.
HoverSessionAndVirtualKeyboard="#b7cef1"
# Overrides HighlightColor.
#################### Form ####################