mirror of
https://github.com/Keyitdev/sddm-astronaut-theme.git
synced 2026-09-24 02:22:09 +00:00
Update: Added states to virtual keyboard button, improved readability.
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user