Port to Qt6/Plasma 6
This commit is contained in:
parent
0e721d2cf7
commit
d845917d4d
@ -4,8 +4,8 @@
|
|||||||
// Config created by https://github.com/MarianArlt
|
// Config created by https://github.com/MarianArlt
|
||||||
// Config modified by keyitdev https://github.com/keyitdev
|
// Config modified by keyitdev https://github.com/keyitdev
|
||||||
|
|
||||||
import QtQuick 2.11
|
import QtQuick 2.15
|
||||||
import QtQuick.Controls 2.4
|
import QtQuick.Controls 2.15
|
||||||
|
|
||||||
Column {
|
Column {
|
||||||
id: clock
|
id: clock
|
||||||
|
|||||||
@ -4,10 +4,10 @@
|
|||||||
// Config created by https://github.com/MarianArlt
|
// Config created by https://github.com/MarianArlt
|
||||||
// Config modified by keyitdev https://github.com/keyitdev
|
// Config modified by keyitdev https://github.com/keyitdev
|
||||||
|
|
||||||
import QtQuick 2.11
|
import QtQuick 2.15
|
||||||
import QtQuick.Layouts 1.11
|
import QtQuick.Layouts 1.15
|
||||||
import QtQuick.Controls 2.4
|
import QtQuick.Controls 2.15
|
||||||
import QtGraphicalEffects 1.0
|
import Qt5Compat.GraphicalEffects
|
||||||
|
|
||||||
Column {
|
Column {
|
||||||
id: inputContainer
|
id: inputContainer
|
||||||
@ -78,7 +78,7 @@ Column {
|
|||||||
icon.width: parent.height * 0.25
|
icon.width: parent.height * 0.25
|
||||||
enabled: false
|
enabled: false
|
||||||
icon.color: root.palette.text
|
icon.color: root.palette.text
|
||||||
icon.source: Qt.resolvedUrl("../Assets/User.svgz")
|
icon.source: Qt.resolvedUrl("../Assets/User.svg")
|
||||||
}
|
}
|
||||||
|
|
||||||
background: Rectangle {
|
background: Rectangle {
|
||||||
|
|||||||
@ -4,8 +4,8 @@
|
|||||||
// Config created by https://github.com/MarianArlt
|
// Config created by https://github.com/MarianArlt
|
||||||
// Config modified by keyitdev https://github.com/keyitdev
|
// Config modified by keyitdev https://github.com/keyitdev
|
||||||
|
|
||||||
import QtQuick 2.11
|
import QtQuick 2.15
|
||||||
import QtQuick.Layouts 1.11
|
import QtQuick.Layouts 1.15
|
||||||
import SddmComponents 2.0 as SDDM
|
import SddmComponents 2.0 as SDDM
|
||||||
|
|
||||||
ColumnLayout {
|
ColumnLayout {
|
||||||
|
|||||||
@ -4,9 +4,9 @@
|
|||||||
// Config created by https://github.com/MarianArlt
|
// Config created by https://github.com/MarianArlt
|
||||||
// Config modified by keyitdev https://github.com/keyitdev
|
// Config modified by keyitdev https://github.com/keyitdev
|
||||||
|
|
||||||
import QtQuick 2.11
|
import QtQuick 2.15
|
||||||
import QtQuick.Controls 2.4
|
import QtQuick.Controls 2.15
|
||||||
import QtGraphicalEffects 1.0
|
import Qt5Compat.GraphicalEffects
|
||||||
|
|
||||||
Item {
|
Item {
|
||||||
id: sessionButton
|
id: sessionButton
|
||||||
|
|||||||
@ -4,9 +4,9 @@
|
|||||||
// Config created by https://github.com/MarianArlt
|
// Config created by https://github.com/MarianArlt
|
||||||
// Config modified by keyitdev https://github.com/keyitdev
|
// Config modified by keyitdev https://github.com/keyitdev
|
||||||
|
|
||||||
import QtQuick 2.11
|
import QtQuick 2.15
|
||||||
import QtQuick.Layouts 1.11
|
import QtQuick.Layouts 1.15
|
||||||
import QtQuick.Controls 2.4
|
import QtQuick.Controls 2.15
|
||||||
|
|
||||||
RowLayout {
|
RowLayout {
|
||||||
|
|
||||||
@ -28,7 +28,7 @@ RowLayout {
|
|||||||
text: modelData[1]
|
text: modelData[1]
|
||||||
font.pointSize: root.font.pointSize * 0.8
|
font.pointSize: root.font.pointSize * 0.8
|
||||||
Layout.alignment: Qt.AlignHCenter
|
Layout.alignment: Qt.AlignHCenter
|
||||||
icon.source: modelData ? Qt.resolvedUrl("../Assets/" + modelData[0] + ".svgz") : ""
|
icon.source: modelData ? Qt.resolvedUrl("../Assets/" + modelData[0] + ".svg") : ""
|
||||||
icon.height: 2 * Math.round((root.font.pointSize * 3) / 2)
|
icon.height: 2 * Math.round((root.font.pointSize * 3) / 2)
|
||||||
icon.width: 2 * Math.round((root.font.pointSize * 3) / 2)
|
icon.width: 2 * Math.round((root.font.pointSize * 3) / 2)
|
||||||
display: AbstractButton.TextUnderIcon
|
display: AbstractButton.TextUnderIcon
|
||||||
|
|||||||
@ -4,9 +4,9 @@
|
|||||||
// Config created by https://github.com/MarianArlt
|
// Config created by https://github.com/MarianArlt
|
||||||
// Config modified by keyitdev https://github.com/keyitdev
|
// Config modified by keyitdev https://github.com/keyitdev
|
||||||
|
|
||||||
import QtQuick 2.11
|
import QtQuick 2.15
|
||||||
import QtQuick.Controls 2.4
|
import QtQuick.Controls 2.15
|
||||||
import QtGraphicalEffects 1.0
|
import Qt5Compat.GraphicalEffects
|
||||||
|
|
||||||
Item {
|
Item {
|
||||||
id: usernameField
|
id: usernameField
|
||||||
@ -63,7 +63,7 @@ Item {
|
|||||||
icon.width: parent.height * 0.25
|
icon.width: parent.height * 0.25
|
||||||
enabled: false
|
enabled: false
|
||||||
icon.color: root.palette.text
|
icon.color: root.palette.text
|
||||||
icon.source: Qt.resolvedUrl("../Assets/User.svgz")
|
icon.source: Qt.resolvedUrl("../Assets/User.svg")
|
||||||
}
|
}
|
||||||
|
|
||||||
background: Rectangle {
|
background: Rectangle {
|
||||||
|
|||||||
@ -4,7 +4,7 @@
|
|||||||
// Config created by https://github.com/MarianArlt
|
// Config created by https://github.com/MarianArlt
|
||||||
// Config modified by keyitdev https://github.com/keyitdev
|
// Config modified by keyitdev https://github.com/keyitdev
|
||||||
|
|
||||||
import QtQuick 2.11
|
import QtQuick 2.15
|
||||||
import QtQuick.VirtualKeyboard 2.3
|
import QtQuick.VirtualKeyboard 2.3
|
||||||
|
|
||||||
InputPanel {
|
InputPanel {
|
||||||
|
|||||||
8
Main.qml
Normal file → Executable file
8
Main.qml
Normal file → Executable file
@ -4,10 +4,10 @@
|
|||||||
// Config created by https://github.com/MarianArlt
|
// Config created by https://github.com/MarianArlt
|
||||||
// Config modified by keyitdev https://github.com/keyitdev
|
// Config modified by keyitdev https://github.com/keyitdev
|
||||||
|
|
||||||
import QtQuick 2.11
|
import QtQuick 2.15
|
||||||
import QtQuick.Layouts 1.11
|
import QtQuick.Layouts 1.15
|
||||||
import QtQuick.Controls 2.4
|
import QtQuick.Controls 2.15
|
||||||
import QtGraphicalEffects 1.0
|
import Qt5Compat.GraphicalEffects
|
||||||
import "Components"
|
import "Components"
|
||||||
|
|
||||||
Pane {
|
Pane {
|
||||||
|
|||||||
3
metadata.desktop
Normal file → Executable file
3
metadata.desktop
Normal file → Executable file
@ -5,8 +5,11 @@ Author=keyitdev
|
|||||||
License=GPL-3.0-or-later
|
License=GPL-3.0-or-later
|
||||||
Type=sddm-theme
|
Type=sddm-theme
|
||||||
Version=1.0
|
Version=1.0
|
||||||
|
Website=https://github.com/Keyitdev/sddm-astronaut-theme
|
||||||
Screenshot=Previews/preview.png
|
Screenshot=Previews/preview.png
|
||||||
MainScript=Main.qml
|
MainScript=Main.qml
|
||||||
ConfigFile=theme.conf
|
ConfigFile=theme.conf
|
||||||
TranslationsDirectory=translations
|
TranslationsDirectory=translations
|
||||||
Theme-Id=sddm-astronaut-theme
|
Theme-Id=sddm-astronaut-theme
|
||||||
|
Theme-API=2.0
|
||||||
|
QtVersion=6
|
||||||
|
|||||||
2
theme.conf
Normal file → Executable file
2
theme.conf
Normal file → Executable file
@ -1,6 +1,6 @@
|
|||||||
[General]
|
[General]
|
||||||
|
|
||||||
Background="Backgrounds/background.png"
|
Background="background.png"
|
||||||
## Path relative to the theme root directory. Most standard image file formats are allowed including support for transparency. (e.g. background.jpeg/illustration.GIF/Foto.png/undraw.svgz)
|
## Path relative to the theme root directory. Most standard image file formats are allowed including support for transparency. (e.g. background.jpeg/illustration.GIF/Foto.png/undraw.svgz)
|
||||||
|
|
||||||
DimBackgroundImage="0.0"
|
DimBackgroundImage="0.0"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user