rebase libXau patch (upstream pull request #863) drop patch from upstream pull request #735 drop remnants of 02-fedora sddm themeepel9
parent
a03348bc9f
commit
3f0ee92430
@ -1,250 +0,0 @@
|
|||||||
/***************************************************************************
|
|
||||||
* 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 2.0
|
|
||||||
import SddmComponents 2.0
|
|
||||||
|
|
||||||
Rectangle {
|
|
||||||
|
|
||||||
TextConstants { id: textConstants }
|
|
||||||
|
|
||||||
Connections {
|
|
||||||
target: sddm
|
|
||||||
|
|
||||||
onLoginSucceeded: {
|
|
||||||
errorMessage.color = "green"
|
|
||||||
errorMessage.text = textConstants.loginSucceeded
|
|
||||||
}
|
|
||||||
onLoginFailed: {
|
|
||||||
errorMessage.color = "red"
|
|
||||||
errorMessage.text = textConstants.loginFailed
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
Repeater {
|
|
||||||
model: screenModel
|
|
||||||
Item {
|
|
||||||
Background {
|
|
||||||
x: geometry.x; y: geometry.y; width: geometry.width; height:geometry.height
|
|
||||||
source: config.background
|
|
||||||
fillMode: Image.Stretch
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
Rectangle {
|
|
||||||
property variant geometry: screenModel.geometry(screenModel.primary)
|
|
||||||
x: geometry.x
|
|
||||||
y: geometry.y
|
|
||||||
width: geometry.width
|
|
||||||
height: geometry.height
|
|
||||||
color: "transparent"
|
|
||||||
|
|
||||||
Image {
|
|
||||||
id: fedoraLogo
|
|
||||||
x: parent.width / 2 - width / 2
|
|
||||||
y: parent.height / 2 - height / 2
|
|
||||||
source: "/usr/share/pixmaps/system-logo-white.png"
|
|
||||||
}
|
|
||||||
|
|
||||||
Rectangle {
|
|
||||||
width: parent.width
|
|
||||||
height: 34
|
|
||||||
|
|
||||||
opacity: 0.4
|
|
||||||
color: "black"
|
|
||||||
}
|
|
||||||
|
|
||||||
Row {
|
|
||||||
x: 4
|
|
||||||
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
|
|
||||||
|
|
||||||
arrowIcon: "angle-down.png"
|
|
||||||
|
|
||||||
model: sessionModel
|
|
||||||
index: sessionModel.lastIndex
|
|
||||||
|
|
||||||
KeyNavigation.backtab: password; KeyNavigation.tab: layoutBox
|
|
||||||
}
|
|
||||||
|
|
||||||
LayoutBox {
|
|
||||||
id: layoutBox; height: 24
|
|
||||||
font.pixelSize: 14
|
|
||||||
|
|
||||||
arrowIcon: "angle-down.png"
|
|
||||||
|
|
||||||
KeyNavigation.backtab: session; KeyNavigation.tab: loginButton
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
Row {
|
|
||||||
spacing: 4
|
|
||||||
|
|
||||||
Button {
|
|
||||||
id: rebootButton
|
|
||||||
text: textConstants.reboot
|
|
||||||
height: 25
|
|
||||||
width: 100
|
|
||||||
|
|
||||||
onClicked: sddm.reboot()
|
|
||||||
|
|
||||||
KeyNavigation.backtab: shutdownButton; KeyNavigation.tab: name
|
|
||||||
}
|
|
||||||
|
|
||||||
Button {
|
|
||||||
id: shutdownButton
|
|
||||||
text: textConstants.shutdown
|
|
||||||
height: 25
|
|
||||||
width: 100
|
|
||||||
|
|
||||||
onClicked: sddm.powerOff()
|
|
||||||
|
|
||||||
KeyNavigation.backtab: loginButton; KeyNavigation.tab: rebootButton
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
Rectangle {
|
|
||||||
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
|
|
||||||
Text {
|
|
||||||
width: parent.width
|
|
||||||
color: "white"
|
|
||||||
text: textConstants.welcomeText.arg(sddm.hostName)
|
|
||||||
wrapMode: Text.WordWrap
|
|
||||||
font.pixelSize: 12
|
|
||||||
elide: Text.ElideRight
|
|
||||||
horizontalAlignment: Text.AlignHCenter
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
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: textConstants.prompt
|
|
||||||
font.pixelSize: 10
|
|
||||||
color: "white"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// doesn't do anything :/
|
|
||||||
Component.onCompleted: {
|
|
||||||
if (name.text === "")
|
|
||||||
name.forceActiveFocus()
|
|
||||||
else
|
|
||||||
password.forceActiveFocus()
|
|
||||||
hackTimer.start()
|
|
||||||
}
|
|
||||||
|
|
||||||
// can't tell why it doesn't set the focus when component is completed, this hacks around it
|
|
||||||
Timer {
|
|
||||||
id: hackTimer
|
|
||||||
interval: 100
|
|
||||||
repeat: false
|
|
||||||
onTriggered: {
|
|
||||||
if (name.text === "")
|
|
||||||
name.forceActiveFocus()
|
|
||||||
else
|
|
||||||
password.forceActiveFocus()
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
@ -1,15 +0,0 @@
|
|||||||
[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
|
|
@ -1,2 +0,0 @@
|
|||||||
[General]
|
|
||||||
background=/usr/share/backgrounds/default.png
|
|
@ -1,7 +0,0 @@
|
|||||||
SHA512 (v0.17.0.tar.gz) = aeedf25c2e5ef54a1cf469fa4bb14d7f6a9bd1df4501f55ca81ed4d9655c9ae0f5c9ddc94408f6fe5eb2502593c38345cb6afc0b80d42007876d73a942fc99a4
|
|
||||||
SHA512 (0004-Fix-race-between-sddm-and-logind.patch) = 1bdf2e73acb8abe5fa303894a4a7d2f70f664d4f9ceb021a7df35d910b03a2c4fc4aebec6e72f6eb13d17830fd9803da583a3e1bbaac2a2710f91c54833efdfc
|
|
||||||
SHA512 (0008-Don-t-quit-on-SIGHUP.patch) = 7ba7d757135cfafd1c17da76a4e1ee44d8debc3a97d46acb5ee98d3793947c57511d075841c4c4784afc9f847e9d7974beed7db715c0d405fc42eddec901e4fb
|
|
||||||
SHA512 (0009-Add-SOCK_CLOEXEC-to-signal-handling-sockets.patch) = 571a2aec12ec1855f44bde2da9aff892f6e7e3cf7b782c0a3785f43366e8a8391248ab092efd2bc008cff4e5196a5d476456ee635b6a651d89b750a2bc60aa70
|
|
||||||
SHA512 (0014-Bump-Qt-requirement-to-5.8.0.patch) = 3b5b1b9e9d11c87f7bdda815b688919a8ab6845368de2eebad2f3f976b1b08080d49db9721ac1cd68ad68d162e76ba234d5636ce63fcbbd1bd8c3aafc800e097
|
|
||||||
SHA512 (0033-XorgDisplayServer.cpp-Check-pipe-output-if-there-is-.patch) = 1b51ebbb4f002b405dc5e6679d53a831b7fe69905caa9573d096fba3d1d450c1ca2784d3def091653b60b7575bd5e47ac4177065af04d105858378f355a3fadb
|
|
||||||
SHA512 (0034-Fix-build-with-Qt-5.11-1024.patch) = a7950b107abd69b08d468ac22e27f2a064aec8d195db21223b0bf6feddad92e1d124397a967a8008fed15ac596297e3115f9fba15e4801d62a7bb8f131aad28a
|
|
Loading…
Reference in new issue