Browse Source

preparing release 21.1 c-blues

c-blues
Hendrik Lehmbruch 2 months ago
parent
commit
706334c3ee
56 changed files with 97 additions and 354 deletions
  1. BIN
      artwork/background.png
  2. 2
    0
      debian/c-blues-kde-livesettings.install
  3. 1
    0
      debian/c-blues-kde-livesettings.lintian-overrides
  4. 0
    0
      debian/c-blues-kde-livesettings.preinst
  5. 11
    0
      debian/c-blues-kde-livesettings.service
  6. 4
    0
      debian/c-blues-kde-settings.install
  7. 43
    0
      debian/c-blues-kde-settings.postinst
  8. 15
    14
      debian/control
  9. 4
    2
      debian/copyright
  10. 0
    2
      debian/patience-kde-livesettings.install
  11. 0
    1
      debian/patience-kde-livesettings.lintian-overrides
  12. 0
    11
      debian/patience-kde-livesettings.service
  13. 0
    4
      debian/patience-kde-settings.install
  14. 0
    43
      debian/patience-kde-settings.postinst
  15. 2
    2
      etc/default/grub.d/siduction.cfg
  16. 0
    0
      org.c-blues.desktop/contents/components/BreezeBlock.qml
  17. 0
    0
      org.c-blues.desktop/contents/components/BreezeHeading.qml
  18. 0
    0
      org.c-blues.desktop/contents/components/BreezeLabel.qml
  19. 0
    0
      org.c-blues.desktop/contents/components/InfoPane.qml
  20. 0
    0
      org.c-blues.desktop/contents/components/KeyboardLayoutButton.qml
  21. 0
    0
      org.c-blues.desktop/contents/components/LogoutOptions.qml
  22. 0
    0
      org.c-blues.desktop/contents/components/LogoutScreen.qml
  23. 0
    0
      org.c-blues.desktop/contents/components/UserDelegate.qml
  24. 0
    0
      org.c-blues.desktop/contents/components/UserList.qml
  25. 0
    0
      org.c-blues.desktop/contents/components/UserSelect.qml
  26. BIN
      org.c-blues.desktop/contents/components/artwork/background.png
  27. 0
    0
      org.c-blues.desktop/contents/components/artwork/logout_primary.svgz
  28. 0
    0
      org.c-blues.desktop/contents/components/artwork/restart_primary.svgz
  29. 0
    0
      org.c-blues.desktop/contents/components/artwork/shutdown_primary.svgz
  30. 4
    4
      org.c-blues.desktop/contents/defaults
  31. 0
    0
      org.c-blues.desktop/contents/desktopswitcher/DesktopSwitcher.qml
  32. 0
    0
      org.c-blues.desktop/contents/lockscreen/LockScreen.qml
  33. 0
    0
      org.c-blues.desktop/contents/logout/Logout.qml
  34. 5
    5
      org.c-blues.desktop/contents/metadata.desktop
  35. 0
    0
      org.c-blues.desktop/contents/osd/Osd.qml
  36. 0
    0
      org.c-blues.desktop/contents/osd/OsdItem.qml
  37. 0
    0
      org.c-blues.desktop/contents/previews/desktopswitcher.png
  38. 0
    0
      org.c-blues.desktop/contents/previews/lockscreen.png
  39. 0
    0
      org.c-blues.desktop/contents/previews/loginmanager.png
  40. 0
    0
      org.c-blues.desktop/contents/previews/preview.png
  41. 0
    0
      org.c-blues.desktop/contents/previews/runcommand.png
  42. 0
    0
      org.c-blues.desktop/contents/previews/splash.png
  43. 0
    0
      org.c-blues.desktop/contents/previews/userswitcher.png
  44. 0
    0
      org.c-blues.desktop/contents/previews/windowdecoration.png
  45. 0
    0
      org.c-blues.desktop/contents/previews/windowswitcher.png
  46. 0
    0
      org.c-blues.desktop/contents/runcommand/RunCommand.qml
  47. 1
    1
      org.c-blues.desktop/contents/splash/Splash.qml
  48. 0
    0
      org.c-blues.desktop/contents/splash/images/siduction.svgz
  49. 0
    0
      org.c-blues.desktop/contents/userswitcher/UserSwitcher.qml
  50. 0
    0
      org.c-blues.desktop/contents/windowdecoration/WindowDecoration.qml
  51. 0
    0
      org.c-blues.desktop/contents/windowswitcher/WindowSwitcher.qml
  52. 5
    5
      org.c-blues.desktop/metadata.desktop
  53. BIN
      org.patience.desktop/contents/components/artwork/background.png
  54. 0
    258
      org.patience.desktop/contents/loginmanager/Main.qml
  55. BIN
      org.patience.desktop/contents/loginmanager/breeze.jpg
  56. 0
    2
      org.patience.desktop/contents/loginmanager/theme.conf

BIN
artwork/background.png View File


+ 2
- 0
debian/c-blues-kde-livesettings.install View File

@@ -0,0 +1,2 @@
live/share usr/share/c-blues-kde-settings/
kde-cheatcodes usr/share/c-blues-kde-settings

+ 1
- 0
debian/c-blues-kde-livesettings.lintian-overrides View File

@@ -0,0 +1 @@
c-blues-kde-livesettings: init.d-script-call-internal-API etc/init.d/kde-cheatcodes

debian/patience-kde-livesettings.preinst → debian/c-blues-kde-livesettings.preinst View File


+ 11
- 0
debian/c-blues-kde-livesettings.service View File

@@ -0,0 +1,11 @@
[Unit]
Description=KDE cheatcodes in live media
ConditionPathExists=/usr/share/c-blues-kde-settings/
After=c-blues-common-livesettings.service

[Service]
Type=oneshot
ExecStart=/usr/share/c-blues-kde-settings/kde-cheatcodes start

[Install]
WantedBy=graphical.target

+ 4
- 0
debian/c-blues-kde-settings.install View File

@@ -0,0 +1,4 @@
*.js usr/share/c-blues-kde-settings
etc usr/share/c-blues-kde-settings/
usr usr/share/c-blues-kde-settings/
org.c-blues.desktop usr/share/plasma/look-and-feel

+ 43
- 0
debian/c-blues-kde-settings.postinst View File

@@ -0,0 +1,43 @@
#!/bin/sh
# postinst script for #PACKAGE#

set -e

case "$1" in
configure)
## dconf ##
cp -af /usr/share/c-blues-kde-settings/etc/dconf /etc
## grub ##
cp -af /usr/share/c-blues-kde-settings/etc/default /etc
## gtk-2.0 ##
cp -af /usr/share/c-blues-kde-settings/etc/gtk-2.0 /etc
## kde ##
cp -af /usr/share/c-blues-kde-settings/etc/kde-user-profile /etc
## policyḱit-1 ##
cp -af /usr/share/c-blues-kde-settings/etc/polkit-1 /etc
## skel ##
cp -af /usr/share/c-blues-kde-settings/etc/skel/dmrc /etc/skel/.dmrc
cp -af /usr/share/c-blues-kde-settings/etc/skel/config /etc/skel/.config
cp -af /usr/share/c-blues-kde-settings/etc/skel/gitconfig /etc/skel/.gitconfig
cp -af /usr/share/c-blues-kde-settings/etc/skel/gitignore /etc/skel/.gitignore
cp -af /usr/share/c-blues-kde-settings/etc/skel/local /etc/skel/.local
## usr ##
cp -af /usr/share/c-blues-kde-settings/usr/* /usr
## xdg ##
cp -af /usr/share/c-blues-kde-settings/etc/xdg /etc
## settings ##
dconf update
;;

abort-upgrade|abort-remove|abort-deconfigure)
;;

*)
echo "postinst called with unknown argument \`$1'" >&2
exit 1
;;
esac

#DEBHELPER#

exit 0

+ 15
- 14
debian/control View File

@@ -1,24 +1,25 @@
Source: patience-kde-settings
Source: c-blues-kde-settings
Section: misc
Priority: optional
Maintainer: Alf Gaida <agaida@siduction.org>
Uploaders: Torsten Wohlfarth <towo@siduction.org>,
Ferdinand Thommes <devil@siduction.org>,
Ovidiu Angelescu <convbsd@siduction.net>
Hendrik Lehmbruch <hendrikl@siduction.org>
Build-Depends: debhelper (>= 11)
Standards-Version: 4.1.4
Vcs-Browser: https://git.siduction.org/extra/settings-kde
Vcs-Git: https://git.siduction.org/extra/settings-kde.git
Homepage: https://git.siduction.org/extra/settings-kde

Package: patience-kde-settings
Package: c-blues-kde-settings
Architecture: all
Depends: ${misc:Depends},
patience-kde-artwork,
patience-sddm-settings
| patience-lightdm-gtk-settings
| patience-gdm3-settings,
patience-common-settings
c-blues-kde-artwork,
c-blues-sddm-settings
| c-blues-lightdm-gtk-settings
| c-blues-gdm3-settings,
c-blues-common-settings
Recommends: xdg-browser-launcher
Description: KDE settings (installed mode)
Provides default settings for appearance and applications of the K Desktop
@@ -28,18 +29,18 @@ Description: KDE settings (installed mode)
configurable by the local user and don't override already existing user
profiles.

Package: patience-kde-livesettings
Package: c-blues-kde-livesettings
Architecture: all
Depends: ${misc:Depends},
kwin-x11 | kwin-wayland,
plasma-workspace,
siduction-icons,
patience-kde-artwork,
patience-kde-settings,
patience-common-livesettings,
patience-sddm-livesettings
| patience-ligthdm-gtk-livesettings
| patience-gdm3-livesettings
c-blues-kde-artwork,
c-blues-kde-settings,
c-blues-common-livesettings,
c-blues-sddm-livesettings
| c-blues-ligthdm-gtk-livesettings
| c-blues-gdm3-livesettings
Description: KDE settings (live mode)
Provides default settings for appearance and applications of the K Desktop
Environment in live mode.

+ 4
- 2
debian/copyright View File

@@ -3,14 +3,16 @@ Upstream-Name: settings-kde
Source: https://git.siduction.org/extra/settings-kde.git

Files: *
Copyright: 2012-2018 Alf Gaida <agaida@siduction.org>
Copyright: 2021 Hendrik Lehmbruch
2012-2018 Alf Gaida <agaida@siduction.org>
2012-2015 Ovidiu Angelescu <convbsd@siduction.net>
2011-2012 Ferdinand Thommes <devil@siduction.org>
2011-2012 Torsten Wohlfarth <towo@siduction.org>
License: GPL-2.0

Files: debian/*
Copyright: 2012-2018 Alf Gaida <agaida@siduction.org>
Copyright: 2021 Hendrik Lehmbruch
2012-2018 Alf Gaida <agaida@siduction.org>
License: GPL-2.0

License: GPL-2.0

+ 0
- 2
debian/patience-kde-livesettings.install View File

@@ -1,2 +0,0 @@
live/share usr/share/patience-kde-settings/
kde-cheatcodes usr/share/patience-kde-settings

+ 0
- 1
debian/patience-kde-livesettings.lintian-overrides View File

@@ -1 +0,0 @@
patience-kde-livesettings: init.d-script-call-internal-API etc/init.d/kde-cheatcodes

+ 0
- 11
debian/patience-kde-livesettings.service View File

@@ -1,11 +0,0 @@
[Unit]
Description=KDE cheatcodes in live media
ConditionPathExists=/usr/share/patience-kde-settings/
After=patience-common-livesettings.service

[Service]
Type=oneshot
ExecStart=/usr/share/patience-kde-settings/kde-cheatcodes start

[Install]
WantedBy=graphical.target

+ 0
- 4
debian/patience-kde-settings.install View File

@@ -1,4 +0,0 @@
*.js usr/share/patience-kde-settings
etc usr/share/patience-kde-settings/
usr usr/share/patience-kde-settings/
org.patience.desktop usr/share/plasma/look-and-feel

+ 0
- 43
debian/patience-kde-settings.postinst View File

@@ -1,43 +0,0 @@
#!/bin/sh
# postinst script for #PACKAGE#

set -e

case "$1" in
configure)
## dconf ##
cp -af /usr/share/patience-kde-settings/etc/dconf /etc
## grub ##
cp -af /usr/share/patience-kde-settings/etc/default /etc
## gtk-2.0 ##
cp -af /usr/share/patience-kde-settings/etc/gtk-2.0 /etc
## kde ##
cp -af /usr/share/patience-kde-settings/etc/kde-user-profile /etc
## policyḱit-1 ##
cp -af /usr/share/patience-kde-settings/etc/polkit-1 /etc
## skel ##
cp -af /usr/share/patience-kde-settings/etc/skel/dmrc /etc/skel/.dmrc
cp -af /usr/share/patience-kde-settings/etc/skel/config /etc/skel/.config
cp -af /usr/share/patience-kde-settings/etc/skel/gitconfig /etc/skel/.gitconfig
cp -af /usr/share/patience-kde-settings/etc/skel/gitignore /etc/skel/.gitignore
cp -af /usr/share/patience-kde-settings/etc/skel/local /etc/skel/.local
## usr ##
cp -af /usr/share/patience-kde-settings/usr/* /usr
## xdg ##
cp -af /usr/share/patience-kde-settings/etc/xdg /etc
## settings ##
dconf update
;;

abort-upgrade|abort-remove|abort-deconfigure)
;;

*)
echo "postinst called with unknown argument \`$1'" >&2
exit 1
;;
esac

#DEBHELPER#

exit 0

+ 2
- 2
etc/default/grub.d/siduction.cfg View File

@@ -1,6 +1,6 @@
GRUB_TERMINAL_OUTPUT=gfxterm
GRUB_GFXMODE=1280x1024
GRUB_GFXPAYLOAD_LINUX=1280x1024
GRUB_THEME=/usr/share/grub/themes/patience/theme.txt
GRUB_THEME=/usr/share/grub/themes/c-blues/theme.txt

GRUB_DISTRIBUTOR="siduction 2018.3.0 Patience (KDE)"
GRUB_DISTRIBUTOR="siduction 2021.1.0 c-blues (KDE)"

org.patience.desktop/contents/components/BreezeBlock.qml → org.c-blues.desktop/contents/components/BreezeBlock.qml View File


org.patience.desktop/contents/components/BreezeHeading.qml → org.c-blues.desktop/contents/components/BreezeHeading.qml View File


org.patience.desktop/contents/components/BreezeLabel.qml → org.c-blues.desktop/contents/components/BreezeLabel.qml View File


org.patience.desktop/contents/components/InfoPane.qml → org.c-blues.desktop/contents/components/InfoPane.qml View File


org.patience.desktop/contents/components/KeyboardLayoutButton.qml → org.c-blues.desktop/contents/components/KeyboardLayoutButton.qml View File


org.patience.desktop/contents/components/LogoutOptions.qml → org.c-blues.desktop/contents/components/LogoutOptions.qml View File


org.patience.desktop/contents/components/LogoutScreen.qml → org.c-blues.desktop/contents/components/LogoutScreen.qml View File


org.patience.desktop/contents/components/UserDelegate.qml → org.c-blues.desktop/contents/components/UserDelegate.qml View File


org.patience.desktop/contents/components/UserList.qml → org.c-blues.desktop/contents/components/UserList.qml View File


org.patience.desktop/contents/components/UserSelect.qml → org.c-blues.desktop/contents/components/UserSelect.qml View File


BIN
org.c-blues.desktop/contents/components/artwork/background.png View File


org.patience.desktop/contents/components/artwork/logout_primary.svgz → org.c-blues.desktop/contents/components/artwork/logout_primary.svgz View File


org.patience.desktop/contents/components/artwork/restart_primary.svgz → org.c-blues.desktop/contents/components/artwork/restart_primary.svgz View File


org.patience.desktop/contents/components/artwork/shutdown_primary.svgz → org.c-blues.desktop/contents/components/artwork/shutdown_primary.svgz View File


org.patience.desktop/contents/defaults → org.c-blues.desktop/contents/defaults View File

@@ -8,16 +8,16 @@ ColorScheme=Breeze
Theme=breeze

[plasmarc][Theme]
name==org.patience.desktop
name==org.c-blues.desktop

[kcminputrc][Mouse]
cursorTheme=breeze_cursors

[kwinrc][WindowSwitcher]
LayoutName=org.patience.desktop
LayoutName=org.c-blues.desktop

[kwinrc][DesktopSwitcher]
LayoutName=org.patience.desktop
LayoutName=org.c-blues.desktop

[kwinrc][LockScreen]
LayoutName=org.patience.desktop
LayoutName=org.c-blues.desktop

org.patience.desktop/contents/desktopswitcher/DesktopSwitcher.qml → org.c-blues.desktop/contents/desktopswitcher/DesktopSwitcher.qml View File


org.patience.desktop/contents/lockscreen/LockScreen.qml → org.c-blues.desktop/contents/lockscreen/LockScreen.qml View File


org.patience.desktop/contents/logout/Logout.qml → org.c-blues.desktop/contents/logout/Logout.qml View File


org.patience.desktop/contents/loginmanager/metadata.desktop → org.c-blues.desktop/contents/metadata.desktop View File

@@ -1,8 +1,8 @@
[SddmGreeterTheme]
Name=Patience
Description=Siduction Patience Theme
Name=c-blues
Description=Siduction c-blues Theme
Author=Hendrik Lehmbruch
Copyright=2015-2016, Hendrik Lehmbruch
Copyright=2015-2021, Hendrik Lehmbruch
License=CC-BY-SA
Type=sddm-theme
Version=0.1
@@ -11,6 +11,6 @@ Screenshot=breeze.jpg
MainScript=Main.qml
ConfigFile=theme.conf
TranslationsDirectory=translations
Email=hl@siduction.org
Theme-Id=patience
Email=hendrikl@siduction.org
Theme-Id=c-blues
Theme-API=2.0

org.patience.desktop/contents/osd/Osd.qml → org.c-blues.desktop/contents/osd/Osd.qml View File


org.patience.desktop/contents/osd/OsdItem.qml → org.c-blues.desktop/contents/osd/OsdItem.qml View File


org.patience.desktop/contents/previews/desktopswitcher.png → org.c-blues.desktop/contents/previews/desktopswitcher.png View File


org.patience.desktop/contents/previews/lockscreen.png → org.c-blues.desktop/contents/previews/lockscreen.png View File


org.patience.desktop/contents/previews/loginmanager.png → org.c-blues.desktop/contents/previews/loginmanager.png View File


org.patience.desktop/contents/previews/preview.png → org.c-blues.desktop/contents/previews/preview.png View File


org.patience.desktop/contents/previews/runcommand.png → org.c-blues.desktop/contents/previews/runcommand.png View File


org.patience.desktop/contents/previews/splash.png → org.c-blues.desktop/contents/previews/splash.png View File


org.patience.desktop/contents/previews/userswitcher.png → org.c-blues.desktop/contents/previews/userswitcher.png View File


org.patience.desktop/contents/previews/windowdecoration.png → org.c-blues.desktop/contents/previews/windowdecoration.png View File


org.patience.desktop/contents/previews/windowswitcher.png → org.c-blues.desktop/contents/previews/windowswitcher.png View File


org.patience.desktop/contents/runcommand/RunCommand.qml → org.c-blues.desktop/contents/runcommand/RunCommand.qml View File


org.patience.desktop/contents/splash/Splash.qml → org.c-blues.desktop/contents/splash/Splash.qml View File

@@ -65,7 +65,7 @@ Image {
bottom: parent.bottom
}
width: (parent.width / 6) * (stage - 1)
color: "#3daee9"
color: "#ff5500"
Behavior on width {
PropertyAnimation {
duration: 250

org.patience.desktop/contents/splash/images/siduction.svgz → org.c-blues.desktop/contents/splash/images/siduction.svgz View File


org.patience.desktop/contents/userswitcher/UserSwitcher.qml → org.c-blues.desktop/contents/userswitcher/UserSwitcher.qml View File


org.patience.desktop/contents/windowdecoration/WindowDecoration.qml → org.c-blues.desktop/contents/windowdecoration/WindowDecoration.qml View File


org.patience.desktop/contents/windowswitcher/WindowSwitcher.qml → org.c-blues.desktop/contents/windowswitcher/WindowSwitcher.qml View File


org.patience.desktop/metadata.desktop → org.c-blues.desktop/metadata.desktop View File

@@ -1,17 +1,17 @@
[Desktop Entry]
Comment=Siduction Desktop Design Language by Alf Gaida
Comment=Siduction Desktop Design Language by Team siduction.org
Encoding=UTF-8
Keywords=Desktop;Workspace;Appearance;Look and Feel;Logout;Lock;Suspend;Shutdown;Hibernate;
Name="Patience"
Name="c-blues"
Type=Service

X-KDE-ServiceTypes=Plasma/LookAndFeel
X-KDE-ParentApp=
X-KDE-PluginInfo-Author=Alf Gaida
X-KDE-PluginInfo-Author=Hendrik Lehmbruch
X-KDE-PluginInfo-Category=
X-KDE-PluginInfo-Email=agaida@siduction.org
X-KDE-PluginInfo-Email=web@siduction.org
X-KDE-PluginInfo-License=GPLv2+
X-KDE-PluginInfo-Name=org.patience.desktop
X-KDE-PluginInfo-Name=org.c-blues.desktop
X-KDE-PluginInfo-Version=2.0
X-KDE-PluginInfo-Website=http://git.siduction.org
X-Plasma-MainScript=defaults

BIN
org.patience.desktop/contents/components/artwork/background.png View File


+ 0
- 258
org.patience.desktop/contents/loginmanager/Main.qml View File

@@ -1,258 +0,0 @@
/*
* Copyright 2014 David Edmundson <davidedmundson@kde.org>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU Library General Public License as
* published by the Free Software Foundation; either version 2 or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details
*
* You should have received a copy of the GNU Library General Public
* License along with this program; if not, write to the
* Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/

import QtQuick 2.2
import QtQuick.Layouts 1.1
import QtQuick.Controls 1.1 as Controls

import org.kde.plasma.core 2.0 as PlasmaCore
import org.kde.plasma.components 2.0 as PlasmaComponents

import SddmComponents 2.0

import "./components"

Image {
id: root
width: 1000
height: 1000

Repeater {
model: screenModel
Background {
x: geometry.x; y: geometry.y; width: geometry.width; height:geometry.height
source: config.background
fillMode: Image.stretch
onStatusChanged: {
if (status == Image.Error && source != config.defaultBackground) {
source = config.defaultBackground
}
}
}
}

property bool debug: false

Rectangle {
id: debug3
color: "green"
visible: debug
width: 3
height: parent.height
anchors.horizontalCenter: root.horizontalCenter
}

Controls.StackView {
id: stackView

//Display the loginpromt only in the primary screen
readonly property rect geometry: screenModel.geometry(screenModel.primary)
width: geometry.width
x: geometry.x
height: units.largeSpacing*14
//Display the BreezeBlock in the middle of each screen
y: geometry.y + (geometry.height / 2) - (height / 2)

initialItem: BreezeBlock {
id: loginPrompt

//Enable clipping whilst animating, otherwise the items would be shifted to other screens in multiscreen setups
//As there are only 2 items (loginPrompt and logoutScreenComponent), it's sufficient to do it only in this component
//Remember to enable clipping whilst animating when creating additional items for the StackView!
Controls.Stack.onStatusChanged: {
if(Controls.Stack.status === Controls.Stack.Activating || Controls.Stack.status === Controls.Stack.Deactivating){
stackView.clip = true;
}else if(Controls.Stack.status === Controls.Stack.Active || Controls.Stack.status === Controls.Stack.Inactive){
stackView.clip = false;
}
}

main: UserSelect {
model: userModel
selectedIndex: userModel.lastIndex

//Resets the "Login Failed" notification after 3 seconds
Timer {
id: notificationResetTimer
interval: 3000
onTriggered: notification = ""
}

Connections {
target: sddm
onLoginFailed: {
notificationResetTimer.restart()
notification = i18nd("plasma_lookandfeel_org.kde.lookandfeel", "Login Failed")
}
}

}

controls: Item {
height: childrenRect.height

property alias password: passwordInput.text
property alias sessionIndex: sessionCombo.currentIndex
property alias buttonEnabled: loginButton.enabled
property alias pwFieldEnabled: passwordInput.enabled

ColumnLayout {
anchors.horizontalCenter: parent.horizontalCenter
spacing: 0
RowLayout {
//NOTE password is deliberately the first child so it gets focus
//be careful when re-ordering

anchors.horizontalCenter: parent.horizontalCenter
PlasmaComponents.TextField {
id: passwordInput
placeholderText: i18nd("plasma_lookandfeel_org.kde.lookandfeel","Password")
echoMode: TextInput.Password
onAccepted: loginPrompt.startLogin()
focus: true

//focus works in qmlscene
//but this seems to be needed when loaded from SDDM
//I don't understand why, but we have seen this before in the old lock screen
Timer {
interval: 200
running: true
onTriggered: passwordInput.forceActiveFocus()
}
//end hack

Keys.onEscapePressed: {
//nextItemInFocusChain(false) is previous Item
nextItemInFocusChain(false).forceActiveFocus();
}

//if empty and left or right is pressed change selection in user switch
//this cannot be in keys.onLeftPressed as then it doesn't reach the password box
Keys.onPressed: {
if (event.key == Qt.Key_Left && !text) {
loginPrompt.mainItem.decrementCurrentIndex();
event.accepted = true
}
if (event.key == Qt.Key_Right && !text) {
loginPrompt.mainItem.incrementCurrentIndex();
event.accepted = true
}
}

}

PlasmaComponents.Button {
id: loginButton
//this keeps the buttons the same width and thus line up evenly around the centre
Layout.minimumWidth: passwordInput.width
text: i18nd("plasma_lookandfeel_org.kde.lookandfeel","Login")
onClicked: loginPrompt.startLogin();
}
}

BreezeLabel {
id: capsLockWarning
text: i18nd("plasma_lookandfeel_org.kde.lookandfeel","Caps Lock is on")
visible: keystateSource.data["Caps Lock"]["Locked"]

anchors.horizontalCenter: parent.horizontalCenter
font.weight: Font.Bold

PlasmaCore.DataSource {
id: keystateSource
engine: "keystate"
connectedSources: "Caps Lock"
}
}
}

PlasmaComponents.ComboBox {
id: sessionCombo
model: sessionModel
currentIndex: sessionModel.lastIndex

width: 200
textRole: "name"

anchors.left: parent.left
}

LogoutOptions {
mode: ""
canShutdown: true
canReboot: true
canLogout: false
exclusive: false

anchors {
right: parent.right
}

onModeChanged: {
if (mode) {
stackView.push(logoutScreenComponent, {"mode": mode})
}
}
onVisibleChanged: if(visible) {
mode = ""
}
}

Connections {
target: sddm
onLoginFailed: {
//Re-enable button and textfield
passwordInput.enabled = true
passwordInput.selectAll()
passwordInput.forceActiveFocus()
loginButton.enabled = true;
}
}

}

function startLogin () {
//Disable button and textfield while password check is running
controlsItem.pwFieldEnabled = false;
controlsItem.buttonEnabled = false;
//Clear notification in case the notificationResetTimer hasn't expired yet
mainItem.notification = ""
sddm.login(mainItem.selectedUser, controlsItem.password, controlsItem.sessionIndex)
}

Component {
id: logoutScreenComponent
LogoutScreen {
onCancel: {
stackView.pop()
}

onShutdownRequested: {
sddm.powerOff()
}

onRebootRequested: {
sddm.reboot()
}
}
}
}

}
}

BIN
org.patience.desktop/contents/loginmanager/breeze.jpg View File


+ 0
- 2
org.patience.desktop/contents/loginmanager/theme.conf View File

@@ -1,2 +0,0 @@
[General]
background=components/artwork/background.png

Loading…
Cancel
Save