Kb layout fix & Update BG

This commit is contained in:
Rokin05 2019-04-25 12:47:28 +02:00
parent db53235e3b
commit 33d45e4e51
29 changed files with 48 additions and 8 deletions

7
.github/README.md vendored
View File

@ -1,4 +1,4 @@
# SDDM-Themes
# SDDM Themes
![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)
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
<br>
#### ● My Keyboard layouts are not visibles in the selectbox
There is a "cosmetic" bug with sddm who use xcb API to list the keymaps :<br>
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).
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>
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.
- [SDDM Issue - Keyboard layout not detected](https://github.com/sddm/sddm/issues/202)
- [Arch wiki - Xorg Keyboard configuration](https://wiki.archlinux.org/index.php/Xorg/Keyboard_configuration)

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -129,6 +129,8 @@ GridLayout {
opacity: visible ? 1 : 0
Behavior on opacity { NumberAnimation { duration: 500 } }
onAccepted: passwordBox.forceActiveFocus()
// See : https://github.com/sddm/sddm/issues/202 (keyboard.layouts)
Keys.onPressed: keyboardButton.displayText = keyboard.layouts[keyboard.currentLayout].longName;
}
TextBox {
@ -145,6 +147,7 @@ GridLayout {
opacity: visible ? 1 : 0
Behavior on opacity { NumberAnimation { duration: 500 } }
onAccepted: grid.login()
Keys.onPressed: keyboardButton.displayText = keyboard.layouts[keyboard.currentLayout].longName;
}
LoginButton {

View File

@ -226,6 +226,9 @@ Skel {
// ==============
// Misc
// ==============
// See : https://github.com/sddm/sddm/issues/202 (keyboard.layouts)
Keys.onPressed: keyboardButton.displayText = keyboard.layouts[keyboard.currentLayout].longName;
Component.onCompleted: {
getPosition(clock, root.conf("position.clock"));

View File

@ -129,6 +129,8 @@ GridLayout {
opacity: visible ? 1 : 0
Behavior on opacity { NumberAnimation { duration: 500 } }
onAccepted: passwordBox.forceActiveFocus()
// See : https://github.com/sddm/sddm/issues/202 (keyboard.layouts)
Keys.onPressed: keyboardButton.displayText = keyboard.layouts[keyboard.currentLayout].longName;
}
TextBox {
@ -145,6 +147,7 @@ GridLayout {
opacity: visible ? 1 : 0
Behavior on opacity { NumberAnimation { duration: 500 } }
onAccepted: grid.login()
Keys.onPressed: keyboardButton.displayText = keyboard.layouts[keyboard.currentLayout].longName;
}
LoginButton {

View File

@ -226,6 +226,9 @@ Skel {
// ==============
// Misc
// ==============
// See : https://github.com/sddm/sddm/issues/202 (keyboard.layouts)
Keys.onPressed: keyboardButton.displayText = keyboard.layouts[keyboard.currentLayout].longName;
Component.onCompleted: {
getPosition(clock, root.conf("position.clock"));

View File

@ -1,3 +1,3 @@
[General]
type=color
color=#383c4a
color=#383c4a
type=color

View File

@ -129,6 +129,8 @@ GridLayout {
opacity: visible ? 1 : 0
Behavior on opacity { NumberAnimation { duration: 500 } }
onAccepted: passwordBox.forceActiveFocus()
// See : https://github.com/sddm/sddm/issues/202 (keyboard.layouts)
Keys.onPressed: keyboardButton.displayText = keyboard.layouts[keyboard.currentLayout].longName;
}
TextBox {
@ -145,6 +147,7 @@ GridLayout {
opacity: visible ? 1 : 0
Behavior on opacity { NumberAnimation { duration: 500 } }
onAccepted: grid.login()
Keys.onPressed: keyboardButton.displayText = keyboard.layouts[keyboard.currentLayout].longName;
}
LoginButton {

View File

@ -226,6 +226,9 @@ Skel {
// ==============
// Misc
// ==============
// See : https://github.com/sddm/sddm/issues/202 (keyboard.layouts)
Keys.onPressed: keyboardButton.displayText = keyboard.layouts[keyboard.currentLayout].longName;
Component.onCompleted: {
getPosition(clock, root.conf("position.clock"));

Binary file not shown.

After

Width:  |  Height:  |  Size: 710 B

View File

Before

Width:  |  Height:  |  Size: 815 KiB

After

Width:  |  Height:  |  Size: 815 KiB

View File

@ -1,4 +1,3 @@
[General]
type=color
color=#191225
background="components/artwork/background.png"
type=color

View File

@ -129,6 +129,8 @@ GridLayout {
opacity: visible ? 1 : 0
Behavior on opacity { NumberAnimation { duration: 500 } }
onAccepted: passwordBox.forceActiveFocus()
// See : https://github.com/sddm/sddm/issues/202 (keyboard.layouts)
Keys.onPressed: keyboardButton.displayText = keyboard.layouts[keyboard.currentLayout].longName;
}
TextBox {
@ -145,6 +147,7 @@ GridLayout {
opacity: visible ? 1 : 0
Behavior on opacity { NumberAnimation { duration: 500 } }
onAccepted: grid.login()
Keys.onPressed: keyboardButton.displayText = keyboard.layouts[keyboard.currentLayout].longName;
}
LoginButton {

View File

@ -226,6 +226,9 @@ Skel {
// ==============
// Misc
// ==============
// See : https://github.com/sddm/sddm/issues/202 (keyboard.layouts)
Keys.onPressed: keyboardButton.displayText = keyboard.layouts[keyboard.currentLayout].longName;
Component.onCompleted: {
getPosition(clock, root.conf("position.clock"));

View File

@ -129,6 +129,8 @@ GridLayout {
opacity: visible ? 1 : 0
Behavior on opacity { NumberAnimation { duration: 500 } }
onAccepted: passwordBox.forceActiveFocus()
// See : https://github.com/sddm/sddm/issues/202 (keyboard.layouts)
Keys.onPressed: keyboardButton.displayText = keyboard.layouts[keyboard.currentLayout].longName;
}
TextBox {
@ -145,6 +147,7 @@ GridLayout {
opacity: visible ? 1 : 0
Behavior on opacity { NumberAnimation { duration: 500 } }
onAccepted: grid.login()
Keys.onPressed: keyboardButton.displayText = keyboard.layouts[keyboard.currentLayout].longName;
}
LoginButton {

View File

@ -226,6 +226,9 @@ Skel {
// ==============
// Misc
// ==============
// See : https://github.com/sddm/sddm/issues/202 (keyboard.layouts)
Keys.onPressed: keyboardButton.displayText = keyboard.layouts[keyboard.currentLayout].longName;
Component.onCompleted: {
getPosition(clock, root.conf("position.clock"));

Binary file not shown.

Before

Width:  |  Height:  |  Size: 89 KiB

After

Width:  |  Height:  |  Size: 708 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 89 KiB

View File

@ -129,6 +129,8 @@ GridLayout {
opacity: visible ? 1 : 0
Behavior on opacity { NumberAnimation { duration: 500 } }
onAccepted: passwordBox.forceActiveFocus()
// See : https://github.com/sddm/sddm/issues/202 (keyboard.layouts)
Keys.onPressed: keyboardButton.displayText = keyboard.layouts[keyboard.currentLayout].longName;
}
TextBox {
@ -145,6 +147,7 @@ GridLayout {
opacity: visible ? 1 : 0
Behavior on opacity { NumberAnimation { duration: 500 } }
onAccepted: grid.login()
Keys.onPressed: keyboardButton.displayText = keyboard.layouts[keyboard.currentLayout].longName;
}
LoginButton {

View File

@ -226,6 +226,9 @@ Skel {
// ==============
// Misc
// ==============
// See : https://github.com/sddm/sddm/issues/202 (keyboard.layouts)
Keys.onPressed: keyboardButton.displayText = keyboard.layouts[keyboard.currentLayout].longName;
Component.onCompleted: {
getPosition(clock, root.conf("position.clock"));

Binary file not shown.

Before

Width:  |  Height:  |  Size: 410 KiB

After

Width:  |  Height:  |  Size: 709 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 410 KiB

View File

@ -18,7 +18,7 @@
# BACKGROUND :
# type : color, image
type=image
type=color
color=#130a10
background="components/artwork/background.jpg"
background.blur=true

View File

@ -1,3 +1,3 @@
[General]
type=color
color=#130a10
color=#130a10
type=color