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:
@@ -375,6 +375,7 @@ Column {
|
|||||||
Item {
|
Item {
|
||||||
id: login
|
id: login
|
||||||
// important
|
// important
|
||||||
|
// try 4 or 9 ...
|
||||||
height: root.font.pointSize * 9
|
height: root.font.pointSize * 9
|
||||||
width: parent.width / 2
|
width: parent.width / 2
|
||||||
anchors.horizontalCenter: parent.horizontalCenter
|
anchors.horizontalCenter: parent.horizontalCenter
|
||||||
|
|||||||
@@ -120,11 +120,11 @@ Item {
|
|||||||
when: selectSession.down
|
when: selectSession.down
|
||||||
PropertyChanges {
|
PropertyChanges {
|
||||||
target: displayedItem
|
target: displayedItem
|
||||||
color: Qt.darker(root.palette.highlight, 1.1)
|
color: Qt.darker(root.palette.toolTipBase, 1.1)
|
||||||
}
|
}
|
||||||
PropertyChanges {
|
PropertyChanges {
|
||||||
target: selectSession.background
|
target: selectSession.background
|
||||||
border.color: Qt.darker(root.palette.highlight, 1.1)
|
border.color: Qt.darker(root.palette.toolTipBase, 1.1)
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
State {
|
State {
|
||||||
@@ -132,11 +132,11 @@ Item {
|
|||||||
when: selectSession.hovered
|
when: selectSession.hovered
|
||||||
PropertyChanges {
|
PropertyChanges {
|
||||||
target: displayedItem
|
target: displayedItem
|
||||||
color: Qt.lighter(root.palette.highlight, 1.1)
|
color: Qt.lighter(root.palette.toolTipBase, 1.1)
|
||||||
}
|
}
|
||||||
PropertyChanges {
|
PropertyChanges {
|
||||||
target: selectSession.background
|
target: selectSession.background
|
||||||
border.color: Qt.lighter(root.palette.highlight, 1.1)
|
border.color: Qt.lighter(root.palette.toolTipBase, 1.1)
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
State {
|
State {
|
||||||
@@ -144,11 +144,11 @@ Item {
|
|||||||
when: selectSession.visualFocus
|
when: selectSession.visualFocus
|
||||||
PropertyChanges {
|
PropertyChanges {
|
||||||
target: displayedItem
|
target: displayedItem
|
||||||
color: root.palette.highlight
|
color: root.palette.toolTipBase
|
||||||
}
|
}
|
||||||
PropertyChanges {
|
PropertyChanges {
|
||||||
target: selectSession.background
|
target: selectSession.background
|
||||||
border.color: root.palette.highlight
|
border.color: root.palette.toolTipBase
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|||||||
@@ -15,11 +15,11 @@ Pane {
|
|||||||
|
|
||||||
height: config.ScreenHeight || Screen.height
|
height: config.ScreenHeight || Screen.height
|
||||||
width: config.ScreenWidth || Screen.ScreenWidth
|
width: config.ScreenWidth || Screen.ScreenWidth
|
||||||
|
padding: config.ScreenPadding
|
||||||
|
|
||||||
LayoutMirroring.enabled: config.RightToLeftLayout == "true" ? true : Qt.application.layoutDirection === Qt.RightToLeft
|
LayoutMirroring.enabled: config.RightToLeftLayout == "true" ? true : Qt.application.layoutDirection === Qt.RightToLeft
|
||||||
LayoutMirroring.childrenInherit: true
|
LayoutMirroring.childrenInherit: true
|
||||||
|
|
||||||
padding: config.ScreenPadding
|
|
||||||
palette.button: "transparent"
|
palette.button: "transparent"
|
||||||
palette.highlight: config.HighlightColor
|
palette.highlight: config.HighlightColor
|
||||||
palette.window: config.BackgroundColor
|
palette.window: config.BackgroundColor
|
||||||
@@ -30,6 +30,7 @@ Pane {
|
|||||||
palette.link: config.LoginButtonBackgroundColor == "" ? config.HighlightColor : config.LoginButtonBackgroundColor
|
palette.link: config.LoginButtonBackgroundColor == "" ? config.HighlightColor : config.LoginButtonBackgroundColor
|
||||||
palette.mid: config.LoginButtonTextColor == "" ? config.TextColor : config.LoginButtonTextColor
|
palette.mid: config.LoginButtonTextColor == "" ? config.TextColor : config.LoginButtonTextColor
|
||||||
palette.alternateBase: config.BackgroundListColor == "" ? config.BackgroundColor: config.BackgroundListColor
|
palette.alternateBase: config.BackgroundListColor == "" ? config.BackgroundColor: config.BackgroundListColor
|
||||||
|
palette.toolTipBase: config.HoverSessionAndVirtualKeyboard == "" ? config.HighlightColor : config.HoverSessionAndVirtualKeyboard
|
||||||
|
|
||||||
font.family: config.Font
|
font.family: config.Font
|
||||||
font.pointSize: config.FontSize !== "" ? config.FontSize : parseInt(height / 80)
|
font.pointSize: config.FontSize !== "" ? config.FontSize : parseInt(height / 80)
|
||||||
@@ -95,7 +96,7 @@ Pane {
|
|||||||
SessionButton {
|
SessionButton {
|
||||||
id: sessionSelect
|
id: sessionSelect
|
||||||
anchors.bottom: parent.bottom
|
anchors.bottom: parent.bottom
|
||||||
anchors.bottomMargin: 70
|
anchors.bottomMargin: parent.height/16
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -128,6 +129,15 @@ Pane {
|
|||||||
color: "transparent"
|
color: "transparent"
|
||||||
}
|
}
|
||||||
states: [
|
states: [
|
||||||
|
State {
|
||||||
|
name: "HoveredAndChecked"
|
||||||
|
when: vkb.checked && vkb.hovered
|
||||||
|
PropertyChanges {
|
||||||
|
target: buttonVirtualKeyboard
|
||||||
|
text: config.TranslateVirtualKeyboardButtonOn || "Virtual Keyboard (on)"
|
||||||
|
color: root.palette.toolTipBase
|
||||||
|
}
|
||||||
|
},
|
||||||
State {
|
State {
|
||||||
name: "checked"
|
name: "checked"
|
||||||
when: vkb.checked
|
when: vkb.checked
|
||||||
@@ -135,6 +145,15 @@ Pane {
|
|||||||
target: buttonVirtualKeyboard
|
target: buttonVirtualKeyboard
|
||||||
text: config.TranslateVirtualKeyboardButtonOn || "Virtual Keyboard (on)"
|
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
@@ -57,7 +57,7 @@ PlaceholderColor="#bbbbbb"
|
|||||||
SystemButtonsIconColor="#F8F8F2"
|
SystemButtonsIconColor="#F8F8F2"
|
||||||
# System icon colors.
|
# System icon colors.
|
||||||
|
|
||||||
HighlightTextColor=""
|
HighlightTextColor="#b7cef1"
|
||||||
# Overrides HighlightColor.
|
# Overrides HighlightColor.
|
||||||
LoginButtonTextColor=""
|
LoginButtonTextColor=""
|
||||||
# Overrides TextColor.
|
# Overrides TextColor.
|
||||||
@@ -65,6 +65,8 @@ LoginButtonBackgroundColor=""
|
|||||||
# Overrides HighlightColor.
|
# Overrides HighlightColor.
|
||||||
BackgroundListColor=""
|
BackgroundListColor=""
|
||||||
# Overrides BackgroundColor.
|
# Overrides BackgroundColor.
|
||||||
|
HoverSessionAndVirtualKeyboard="#b7cef1"
|
||||||
|
# Overrides HighlightColor.
|
||||||
|
|
||||||
#################### Form ####################
|
#################### Form ####################
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user