Skip to content

Commit 33d45e4

Browse files
author
Rokin05
committed
Kb layout fix & Update BG
1 parent db53235 commit 33d45e4

29 files changed

+48
-8
lines changed

.github/README.md

+6-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# SDDM-Themes
1+
# SDDM Themes
22
![Version](https://img.shields.io/badge/version-0.1-blue.svg?style=flat-square&logo=appveyor) ![Qt](https://img.shields.io/badge/Qt-5.7+-blue.svg?style=flat-square) ![GitHub repo size](https://img.shields.io/github/repo-size/Rokin05/SDDM-Themes.svg?style=flat-square) ![GitHub](https://img.shields.io/github/license/Rokin05/SDDM-Themes.svg?style=flat-square)
33

44
Dynamics and highly customizable themes build from scratch for [SDDM display manager](https://github.com/sddm/sddm) with [QtQuick 2](https://doc.qt.io/qt-5/qtquick-index.html) (Qt 5.7 >=).<br>
@@ -169,6 +169,11 @@ icon format : USERNAME.face.icon
169169
<br>
170170

171171
#### ● My Keyboard layouts are not visibles in the selectbox
172+
There is a "cosmetic" bug with sddm who use xcb API to list the keymaps :<br>
173+
On the initial loading, the keyboard layout dropdown menu shows "English (US)" only (your true keyboard layout is selected but this may be visual wrong).
174+
As soon as any key is pressed then XCB_XKB_NEW_KEYBOARD_NOTIFY event will be issued and then it will return correct layout.<br>
175+
This "bug" is Independent of the theme but for better "deal with that", i have update the theme code and the selected keyboard layout real name is now automatic returned after a first key is pressed which was not the case before.
176+
172177
- [SDDM Issue - Keyboard layout not detected](https://github.com/sddm/sddm/issues/202)
173178
- [Arch wiki - Xorg Keyboard configuration](https://wiki.archlinux.org/index.php/Xorg/Keyboard_configuration)
174179

releases/sddm-adapta.tar.gz

95 Bytes
Binary file not shown.

releases/sddm-arc.tar.gz

85 Bytes
Binary file not shown.

releases/sddm-goodnight.tar.gz

443 Bytes
Binary file not shown.

releases/sddm-mount.tar.gz

50 Bytes
Binary file not shown.

releases/sddm-sober.tar.gz

882 Bytes
Binary file not shown.

releases/sddm-zune.tar.gz

495 Bytes
Binary file not shown.

src/adapta/Login.qml

+3
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,8 @@ GridLayout {
129129
opacity: visible ? 1 : 0
130130
Behavior on opacity { NumberAnimation { duration: 500 } }
131131
onAccepted: passwordBox.forceActiveFocus()
132+
// See : https://github.com/sddm/sddm/issues/202 (keyboard.layouts)
133+
Keys.onPressed: keyboardButton.displayText = keyboard.layouts[keyboard.currentLayout].longName;
132134
}
133135

134136
TextBox {
@@ -145,6 +147,7 @@ GridLayout {
145147
opacity: visible ? 1 : 0
146148
Behavior on opacity { NumberAnimation { duration: 500 } }
147149
onAccepted: grid.login()
150+
Keys.onPressed: keyboardButton.displayText = keyboard.layouts[keyboard.currentLayout].longName;
148151
}
149152

150153
LoginButton {

src/adapta/Main.qml

+3
Original file line numberDiff line numberDiff line change
@@ -226,6 +226,9 @@ Skel {
226226
// ==============
227227
// Misc
228228
// ==============
229+
230+
// See : https://github.com/sddm/sddm/issues/202 (keyboard.layouts)
231+
Keys.onPressed: keyboardButton.displayText = keyboard.layouts[keyboard.currentLayout].longName;
229232

230233
Component.onCompleted: {
231234
getPosition(clock, root.conf("position.clock"));

src/arc/Login.qml

+3
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,8 @@ GridLayout {
129129
opacity: visible ? 1 : 0
130130
Behavior on opacity { NumberAnimation { duration: 500 } }
131131
onAccepted: passwordBox.forceActiveFocus()
132+
// See : https://github.com/sddm/sddm/issues/202 (keyboard.layouts)
133+
Keys.onPressed: keyboardButton.displayText = keyboard.layouts[keyboard.currentLayout].longName;
132134
}
133135

134136
TextBox {
@@ -145,6 +147,7 @@ GridLayout {
145147
opacity: visible ? 1 : 0
146148
Behavior on opacity { NumberAnimation { duration: 500 } }
147149
onAccepted: grid.login()
150+
Keys.onPressed: keyboardButton.displayText = keyboard.layouts[keyboard.currentLayout].longName;
148151
}
149152

150153
LoginButton {

src/arc/Main.qml

+3
Original file line numberDiff line numberDiff line change
@@ -226,6 +226,9 @@ Skel {
226226
// ==============
227227
// Misc
228228
// ==============
229+
230+
// See : https://github.com/sddm/sddm/issues/202 (keyboard.layouts)
231+
Keys.onPressed: keyboardButton.displayText = keyboard.layouts[keyboard.currentLayout].longName;
229232

230233
Component.onCompleted: {
231234
getPosition(clock, root.conf("position.clock"));

src/arc/theme.conf.user

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
[General]
2-
type=color
3-
color=#383c4a
2+
color=#383c4a
3+
type=color

src/goodnight/Login.qml

+3
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,8 @@ GridLayout {
129129
opacity: visible ? 1 : 0
130130
Behavior on opacity { NumberAnimation { duration: 500 } }
131131
onAccepted: passwordBox.forceActiveFocus()
132+
// See : https://github.com/sddm/sddm/issues/202 (keyboard.layouts)
133+
Keys.onPressed: keyboardButton.displayText = keyboard.layouts[keyboard.currentLayout].longName;
132134
}
133135

134136
TextBox {
@@ -145,6 +147,7 @@ GridLayout {
145147
opacity: visible ? 1 : 0
146148
Behavior on opacity { NumberAnimation { duration: 500 } }
147149
onAccepted: grid.login()
150+
Keys.onPressed: keyboardButton.displayText = keyboard.layouts[keyboard.currentLayout].longName;
148151
}
149152

150153
LoginButton {

src/goodnight/Main.qml

+3
Original file line numberDiff line numberDiff line change
@@ -226,6 +226,9 @@ Skel {
226226
// ==============
227227
// Misc
228228
// ==============
229+
230+
// See : https://github.com/sddm/sddm/issues/202 (keyboard.layouts)
231+
Keys.onPressed: keyboardButton.displayText = keyboard.layouts[keyboard.currentLayout].longName;
229232

230233
Component.onCompleted: {
231234
getPosition(clock, root.conf("position.clock"));
710 Bytes
Loading

src/goodnight/theme.conf.user

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
[General]
2-
type=color
32
color=#191225
4-
background="components/artwork/background.png"
3+
type=color

src/mount/Login.qml

+3
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,8 @@ GridLayout {
129129
opacity: visible ? 1 : 0
130130
Behavior on opacity { NumberAnimation { duration: 500 } }
131131
onAccepted: passwordBox.forceActiveFocus()
132+
// See : https://github.com/sddm/sddm/issues/202 (keyboard.layouts)
133+
Keys.onPressed: keyboardButton.displayText = keyboard.layouts[keyboard.currentLayout].longName;
132134
}
133135

134136
TextBox {
@@ -145,6 +147,7 @@ GridLayout {
145147
opacity: visible ? 1 : 0
146148
Behavior on opacity { NumberAnimation { duration: 500 } }
147149
onAccepted: grid.login()
150+
Keys.onPressed: keyboardButton.displayText = keyboard.layouts[keyboard.currentLayout].longName;
148151
}
149152

150153
LoginButton {

src/mount/Main.qml

+3
Original file line numberDiff line numberDiff line change
@@ -226,6 +226,9 @@ Skel {
226226
// ==============
227227
// Misc
228228
// ==============
229+
230+
// See : https://github.com/sddm/sddm/issues/202 (keyboard.layouts)
231+
Keys.onPressed: keyboardButton.displayText = keyboard.layouts[keyboard.currentLayout].longName;
229232

230233
Component.onCompleted: {
231234
getPosition(clock, root.conf("position.clock"));

src/sober/Login.qml

+3
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,8 @@ GridLayout {
129129
opacity: visible ? 1 : 0
130130
Behavior on opacity { NumberAnimation { duration: 500 } }
131131
onAccepted: passwordBox.forceActiveFocus()
132+
// See : https://github.com/sddm/sddm/issues/202 (keyboard.layouts)
133+
Keys.onPressed: keyboardButton.displayText = keyboard.layouts[keyboard.currentLayout].longName;
132134
}
133135

134136
TextBox {
@@ -145,6 +147,7 @@ GridLayout {
145147
opacity: visible ? 1 : 0
146148
Behavior on opacity { NumberAnimation { duration: 500 } }
147149
onAccepted: grid.login()
150+
Keys.onPressed: keyboardButton.displayText = keyboard.layouts[keyboard.currentLayout].longName;
148151
}
149152

150153
LoginButton {

src/sober/Main.qml

+3
Original file line numberDiff line numberDiff line change
@@ -226,6 +226,9 @@ Skel {
226226
// ==============
227227
// Misc
228228
// ==============
229+
230+
// See : https://github.com/sddm/sddm/issues/202 (keyboard.layouts)
231+
Keys.onPressed: keyboardButton.displayText = keyboard.layouts[keyboard.currentLayout].longName;
229232

230233
Component.onCompleted: {
231234
getPosition(clock, root.conf("position.clock"));
-88.6 KB
Loading
89.3 KB
Loading

src/zune/Login.qml

+3
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,8 @@ GridLayout {
129129
opacity: visible ? 1 : 0
130130
Behavior on opacity { NumberAnimation { duration: 500 } }
131131
onAccepted: passwordBox.forceActiveFocus()
132+
// See : https://github.com/sddm/sddm/issues/202 (keyboard.layouts)
133+
Keys.onPressed: keyboardButton.displayText = keyboard.layouts[keyboard.currentLayout].longName;
132134
}
133135

134136
TextBox {
@@ -145,6 +147,7 @@ GridLayout {
145147
opacity: visible ? 1 : 0
146148
Behavior on opacity { NumberAnimation { duration: 500 } }
147149
onAccepted: grid.login()
150+
Keys.onPressed: keyboardButton.displayText = keyboard.layouts[keyboard.currentLayout].longName;
148151
}
149152

150153
LoginButton {

src/zune/Main.qml

+3
Original file line numberDiff line numberDiff line change
@@ -226,6 +226,9 @@ Skel {
226226
// ==============
227227
// Misc
228228
// ==============
229+
230+
// See : https://github.com/sddm/sddm/issues/202 (keyboard.layouts)
231+
Keys.onPressed: keyboardButton.displayText = keyboard.layouts[keyboard.currentLayout].longName;
229232

230233
Component.onCompleted: {
231234
getPosition(clock, root.conf("position.clock"));
-409 KB
Loading
410 KB
Loading

src/zune/theme.conf

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818

1919
# BACKGROUND :
2020
# type : color, image
21-
type=image
21+
type=color
2222
color=#130a10
2323
background="components/artwork/background.jpg"
2424
background.blur=true

src/zune/theme.conf.user

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
[General]
2-
type=color
3-
color=#130a10
2+
color=#130a10
3+
type=color

0 commit comments

Comments
 (0)