- include standard theme/config here, Obsoletes: kde-settings-sddm - sddm.conf: SessionCommand=/etc/X11/xinit/Xsessionepel9
parent
944833443b
commit
092f0324d2
@ -0,0 +1,207 @@
|
||||
/***************************************************************************
|
||||
* Copyright (c) 2013 Martin Bříza <mbriza@redhat.com>
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person
|
||||
* obtaining a copy of this software and associated documentation
|
||||
* files (the "Software"), to deal in the Software without restriction,
|
||||
* including without limitation the rights to use, copy, modify, merge,
|
||||
* publish, distribute, sublicense, and/or sell copies of the Software,
|
||||
* and to permit persons to whom the Software is furnished to do so,
|
||||
* subject to the following conditions:
|
||||
*
|
||||
* The above copyright notice and this permission notice shall be included
|
||||
* in all copies or substantial portions of the Software.
|
||||
*
|
||||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
|
||||
* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
|
||||
* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR
|
||||
* OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
|
||||
* ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE
|
||||
* OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
*
|
||||
***************************************************************************/
|
||||
|
||||
|
||||
import QtQuick 1.1
|
||||
import SddmComponents 1.1
|
||||
|
||||
Rectangle {
|
||||
Connections {
|
||||
target: sddm
|
||||
|
||||
onLoginSucceeded: {
|
||||
errorMessage.color = "green"
|
||||
errorMessage.text = qsTr("Login succeeded.")
|
||||
}
|
||||
onLoginFailed: {
|
||||
errorMessage.color = "red"
|
||||
errorMessage.text = qsTr("Login failed.")
|
||||
}
|
||||
}
|
||||
|
||||
Repeater {
|
||||
model: screenModel
|
||||
Item {
|
||||
Background {
|
||||
x: geometry.x; y: geometry.y; width: geometry.width; height:geometry.height
|
||||
source: config.background
|
||||
fillMode: Image.Stretch
|
||||
}
|
||||
Image {
|
||||
id: plymouthLogo
|
||||
x: geometry.width / 2 - width / 2
|
||||
y: geometry.height / 2 - height / 2
|
||||
source: "/usr/share/pixmaps/system-logo-white.png"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Rectangle {
|
||||
property variant geometry: screenModel.geometry(screenModel.primary)
|
||||
x: geometry.x
|
||||
y: geometry.y
|
||||
width: geometry.width
|
||||
height: geometry.height
|
||||
color: "transparent"
|
||||
|
||||
Row {
|
||||
x: parent.x + 4
|
||||
y: parent.y + 4
|
||||
spacing: 4
|
||||
width: parent.width - 8
|
||||
z: 100
|
||||
|
||||
Row {
|
||||
spacing: 4
|
||||
width: parent.width/2
|
||||
ComboBox {
|
||||
id: session
|
||||
width: 250
|
||||
height: 24
|
||||
font.pixelSize: 14
|
||||
|
||||
model: sessionModel
|
||||
index: sessionModel.lastIndex
|
||||
|
||||
KeyNavigation.backtab: password; KeyNavigation.tab: layoutBox
|
||||
}
|
||||
|
||||
LayoutBox {
|
||||
id: layoutBox; height: 24
|
||||
font.pixelSize: 14
|
||||
|
||||
KeyNavigation.backtab: session; KeyNavigation.tab: loginButton
|
||||
}
|
||||
}
|
||||
|
||||
Row {
|
||||
anchors.right: parent.right
|
||||
spacing: 4
|
||||
|
||||
Button {
|
||||
id: rebootButton
|
||||
text: qsTr("Reboot")
|
||||
height: 24
|
||||
|
||||
onClicked: sddm.reboot()
|
||||
|
||||
KeyNavigation.backtab: shutdownButton; KeyNavigation.tab: name
|
||||
}
|
||||
|
||||
Button {
|
||||
id: shutdownButton
|
||||
text: qsTr("Shutdown")
|
||||
height: 24
|
||||
|
||||
onClicked: sddm.powerOff()
|
||||
|
||||
KeyNavigation.backtab: loginButton; KeyNavigation.tab: rebootButton
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Rectangle {
|
||||
x: parent.x
|
||||
y: parent.y + parent.height/2
|
||||
width: parent.width
|
||||
height: parent.height/2
|
||||
color: "transparent"
|
||||
Column {
|
||||
width: 260
|
||||
anchors.centerIn: parent
|
||||
spacing: 18
|
||||
|
||||
Row {
|
||||
width: parent.width
|
||||
TextBox {
|
||||
id: name
|
||||
width: parent.width
|
||||
height: 30
|
||||
text: userModel.lastUser
|
||||
font.pixelSize: 14
|
||||
|
||||
KeyNavigation.backtab: rebootButton; KeyNavigation.tab: password
|
||||
|
||||
Keys.onPressed: {
|
||||
if (event.key === Qt.Key_Return || event.key === Qt.Key_Enter) {
|
||||
sddm.login(name.text, password.text, session.index)
|
||||
event.accepted = true
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Row {
|
||||
width: parent.width
|
||||
PasswordBox {
|
||||
id: password
|
||||
width: parent.width * 0.9
|
||||
height: 30
|
||||
font.pixelSize: 14
|
||||
tooltipBG: "lightgrey"
|
||||
|
||||
KeyNavigation.backtab: name; KeyNavigation.tab: session
|
||||
|
||||
Keys.onPressed: {
|
||||
if (event.key === Qt.Key_Return || event.key === Qt.Key_Enter) {
|
||||
sddm.login(name.text, password.text, session.index)
|
||||
event.accepted = true
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Button {
|
||||
width: parent.width * 0.1
|
||||
height: 31
|
||||
id: loginButton
|
||||
text: qsTr(">")
|
||||
|
||||
onClicked: sddm.login(name.text, password.text, session.index)
|
||||
|
||||
KeyNavigation.backtab: layoutBox; KeyNavigation.tab: shutdownButton
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Column {
|
||||
width: parent.width
|
||||
Text {
|
||||
id: errorMessage
|
||||
anchors.horizontalCenter: parent.horizontalCenter
|
||||
text: qsTr("Enter your user name and password.")
|
||||
font.pixelSize: 10
|
||||
color: "white"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Component.onCompleted: {
|
||||
if (name.text === "")
|
||||
name.focus = true
|
||||
else
|
||||
password.focus = true
|
||||
}
|
||||
}
|
@ -0,0 +1,15 @@
|
||||
[SddmGreeterTheme]
|
||||
Name=Fedora
|
||||
Description=Fedora SDDM Theme
|
||||
Author=Martin Bříza
|
||||
Copyright=(c) 2013, Martin Bříza
|
||||
License=CC-BY-SA
|
||||
Type=sddm-theme
|
||||
Version=0.1
|
||||
Website=https://github.com/sddm/sddm
|
||||
Screenshot=screenshot.jpg
|
||||
MainScript=Main.qml
|
||||
ConfigFile=theme.conf
|
||||
Email=mbriza@redhat.com
|
||||
Theme-Id=fedora
|
||||
Theme-API=1.1
|
@ -0,0 +1,2 @@
|
||||
[General]
|
||||
background=/usr/share/backgrounds/background.png
|
@ -0,0 +1,25 @@
|
||||
[General]
|
||||
DefaultPath=/bin:/usr/bin:/usr/local/bin
|
||||
CursorTheme=
|
||||
ServerPath=/usr/bin/X
|
||||
XauthPath=/usr/bin/xauth
|
||||
AuthDir=/var/run/sddm
|
||||
HaltCommand=/usr/bin/systemctl poweroff
|
||||
RebootCommand=/usr/bin/systemctl reboot
|
||||
SessionsDir=/usr/share/xsessions/
|
||||
LastSession=kde-plasma.desktop
|
||||
RememberLastSession=true
|
||||
SessionCommand=/etc/X11/xinit/Xsession
|
||||
FacesDir=/usr/share/apps/sddm/faces/
|
||||
ThemesDir=/usr/share/apps/sddm/themes/
|
||||
CurrentTheme=heisenbug
|
||||
MinimumUid=1000
|
||||
MaximumUid=65000
|
||||
LastUser=
|
||||
RememberLastUser=false
|
||||
AutoUser=
|
||||
HideUsers=
|
||||
HideShells=
|
||||
AutoRelogin=false
|
||||
MinimumVT=1
|
||||
Numlock=on
|
@ -0,0 +1 @@
|
||||
d /var/run/sddm 0711 root root -
|
Loading…
Reference in new issue