mirror of
https://gitgud.io/wackyideas/aerothemeplasma.git
synced 2024-08-15 00:43:43 +00:00
Very early KDE 6 release.
This commit is contained in:
parent
7cc4ccabbc
commit
686046d4f7
6272 changed files with 140920 additions and 529657 deletions
|
@ -0,0 +1,48 @@
|
|||
/*
|
||||
SPDX-FileCopyrightText: 2014 Aleix Pol Gonzalez <aleixpol@blue-systems.com>
|
||||
|
||||
SPDX-License-Identifier: GPL-2.0-or-later
|
||||
*/
|
||||
|
||||
import QtQuick 2.15
|
||||
import QtQuick.Controls 2.3
|
||||
import org.kde.plasma.core 2.0 as PlasmaCore
|
||||
|
||||
TextField {
|
||||
id: root
|
||||
|
||||
signal clicked
|
||||
activeFocusOnTab: true
|
||||
|
||||
Keys.priority: Keys.AfterItem
|
||||
Keys.onPressed: (event) => {
|
||||
if(event.key == Qt.Key_Return) {
|
||||
root.clicked();
|
||||
}
|
||||
}
|
||||
onAccepted: {
|
||||
root.clicked();
|
||||
}
|
||||
|
||||
color: "black"
|
||||
padding: 4
|
||||
background: Rectangle {
|
||||
color: "#2c628b"
|
||||
radius: 3
|
||||
implicitWidth: 100
|
||||
implicitHeight: 24
|
||||
border.color: "#7FFFFFFF"
|
||||
border.width: 1
|
||||
|
||||
Rectangle {
|
||||
anchors.fill: parent
|
||||
anchors.margins: 1
|
||||
color: "white"
|
||||
radius: 2
|
||||
implicitWidth: 100
|
||||
implicitHeight: 24
|
||||
border.color: "#2c628b"
|
||||
border.width: 1
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,30 @@
|
|||
/*
|
||||
SPDX-FileCopyrightText: 2014 Aleix Pol Gonzalez <aleixpol@blue-systems.com>
|
||||
|
||||
SPDX-License-Identifier: GPL-2.0-or-later
|
||||
*/
|
||||
|
||||
import QtQuick 2.0
|
||||
import org.kde.plasma.core 2.0 as PlasmaCore
|
||||
import org.kde.plasma.components 3.0 as PlasmaComponents3
|
||||
|
||||
GenericButton {
|
||||
id: root
|
||||
implicitWidth: 38
|
||||
implicitHeight: 28
|
||||
focusPolicy: Qt.NoFocus
|
||||
|
||||
iconSource: "access"
|
||||
/*PlasmaCore.IconItem {
|
||||
id: elementIcon
|
||||
|
||||
anchors.centerIn: root
|
||||
width: PlasmaCore.Units.iconSizes.smallMedium
|
||||
height: width
|
||||
|
||||
animated: false
|
||||
usesPlasmaTheme: false
|
||||
|
||||
source: "access"
|
||||
}*/
|
||||
}
|
|
@ -0,0 +1,87 @@
|
|||
import QtQuick 2.4
|
||||
import QtQuick.Controls 2.15
|
||||
import QtQuick.Layouts 1.1
|
||||
import QtQuick.Window 2.1
|
||||
import Qt5Compat.GraphicalEffects
|
||||
|
||||
import org.kde.kirigami 2.20 as Kirigami
|
||||
import org.kde.ksvg as KSvg
|
||||
import org.kde.plasma.core 2.0 as PlasmaCore
|
||||
import org.kde.plasma.components 3.0 as PlasmaComponents
|
||||
import org.kde.plasma.extras 2.0 as PlasmaExtras
|
||||
|
||||
Control {
|
||||
id: genericButton
|
||||
signal clicked
|
||||
|
||||
property string text: "";
|
||||
property var iconSource: "";
|
||||
property int iconSize: Kirigami.Units.iconSizes.smallMedium;
|
||||
property alias label: btnLabel
|
||||
|
||||
Keys.priority: Keys.AfterItem
|
||||
Keys.onPressed: (event) => {
|
||||
if(event.key == Qt.Key_Return) {
|
||||
genericButton.clicked();
|
||||
}
|
||||
}
|
||||
|
||||
KSvg.FrameSvgItem {
|
||||
id: texture
|
||||
z: -1
|
||||
anchors.fill: parent
|
||||
imagePath: Qt.resolvedUrl("../images/button.svg");
|
||||
prefix: {
|
||||
var result = "";
|
||||
if(genericButton.focus) result = "focus-";
|
||||
if(buttonMA.containsPress) result = "pressed";
|
||||
else if(buttonMA.containsMouse) result += "hover";
|
||||
else result += "normal";
|
||||
return result;
|
||||
}
|
||||
}
|
||||
MouseArea {
|
||||
id: buttonMA
|
||||
z: 99
|
||||
anchors.fill: parent
|
||||
hoverEnabled: true
|
||||
acceptedButtons: Qt.LeftButton;
|
||||
onClicked: {
|
||||
genericButton.clicked();
|
||||
}
|
||||
}
|
||||
Kirigami.Icon {
|
||||
id: btnIcon
|
||||
z: 0
|
||||
anchors.centerIn: genericButton
|
||||
width: genericButton.iconSize
|
||||
height: width
|
||||
animated: false
|
||||
//usesPlasmaTheme: false
|
||||
source: genericButton.iconSource
|
||||
visible: genericButton.iconSource !== ""
|
||||
}
|
||||
PlasmaComponents.Label {
|
||||
id: btnLabel
|
||||
z: 0
|
||||
anchors.fill: parent
|
||||
text: genericButton.text
|
||||
visible: genericButton.text !== ""
|
||||
verticalAlignment: Text.AlignVCenter
|
||||
horizontalAlignment: Text.AlignHCenter
|
||||
elide: Text.ElideRight
|
||||
renderType: Text.NativeRendering
|
||||
font.hintingPreference: Font.PreferFullHinting
|
||||
font.kerning: false
|
||||
layer.enabled: genericButton.text !== ""
|
||||
layer.effect: DropShadow {
|
||||
//visible: !softwareRendering
|
||||
horizontalOffset: 0
|
||||
verticalOffset: 1
|
||||
radius: 6
|
||||
samples: 14
|
||||
spread: 0.0001
|
||||
color: "#bf000000"
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,25 @@
|
|||
/*
|
||||
SPDX-FileCopyrightText: 2014 Aleix Pol Gonzalez <aleixpol@blue-systems.com>
|
||||
|
||||
SPDX-License-Identifier: GPL-2.0-or-later
|
||||
*/
|
||||
|
||||
import QtQuick 2.15
|
||||
import org.kde.plasma.components 3.0 as PlasmaComponents3
|
||||
|
||||
Image {
|
||||
id: root
|
||||
property alias containsMouse: mouseArea.containsMouse
|
||||
|
||||
signal clicked
|
||||
activeFocusOnTab: true
|
||||
|
||||
source: mouseArea.containsPress ? "../images/gopressed.png" : (activeFocus || containsMouse ? "../images/gohover.png" : "../images/go.png")
|
||||
|
||||
MouseArea {
|
||||
id: mouseArea
|
||||
hoverEnabled: true
|
||||
onClicked: root.clicked()
|
||||
anchors.fill: parent
|
||||
}
|
||||
}
|
|
@ -0,0 +1,22 @@
|
|||
/*
|
||||
SPDX-FileCopyrightText: 2014 Aleix Pol Gonzalez <aleixpol@blue-systems.com>
|
||||
|
||||
SPDX-License-Identifier: GPL-2.0-or-later
|
||||
*/
|
||||
|
||||
import QtQuick 2.0
|
||||
import org.kde.plasma.components 3.0 as PlasmaComponents3
|
||||
|
||||
GenericButton {
|
||||
id: root
|
||||
implicitWidth: 45
|
||||
implicitHeight: 28
|
||||
focusPolicy: Qt.TabFocus
|
||||
Accessible.description: i18ndc("plasma_lookandfeel_org.kde.lookandfeel", "Button to show/hide virtual keyboard", "Virtual Keyboard")
|
||||
|
||||
//iconSource: "../images/osk.png"
|
||||
Image {
|
||||
anchors.centerIn: root
|
||||
source: "../images/osk.png"
|
||||
}
|
||||
}
|
|
@ -0,0 +1,64 @@
|
|||
/*
|
||||
SPDX-FileCopyrightText: 2014 Aleix Pol Gonzalez <aleixpol@blue-systems.com>
|
||||
|
||||
SPDX-License-Identifier: GPL-2.0-or-later
|
||||
*/
|
||||
|
||||
import QtQuick 2.0
|
||||
import org.kde.plasma.core 2.0 as PlasmaCore
|
||||
import org.kde.plasma.components 3.0 as PlasmaComponents3
|
||||
import org.kde.kirigami 2.20 as Kirigami
|
||||
import Qt5Compat.GraphicalEffects
|
||||
|
||||
Item {
|
||||
id: root
|
||||
|
||||
property string avatarPath
|
||||
property string iconSource: "user-symbolic"
|
||||
|
||||
implicitWidth: 190
|
||||
implicitHeight: 190
|
||||
|
||||
Item {
|
||||
id: imageSource
|
||||
|
||||
anchors.centerIn: root
|
||||
width: 126
|
||||
height: 126
|
||||
|
||||
Image {
|
||||
id: face
|
||||
source: avatarPath
|
||||
fillMode: Image.PreserveAspectCrop
|
||||
anchors.fill: parent
|
||||
}
|
||||
|
||||
LinearGradient {
|
||||
id: gradient
|
||||
anchors.fill: parent
|
||||
z: -1
|
||||
start: Qt.point(0,0)
|
||||
end: Qt.point(gradient.width, gradient.height)
|
||||
gradient: Gradient {
|
||||
GradientStop { position: 0.0; color: "#eeecee" }
|
||||
GradientStop { position: 1.0; color: "#a39ea3" }
|
||||
}
|
||||
}
|
||||
Kirigami.Icon {
|
||||
id: faceIcon
|
||||
source: iconSource
|
||||
visible: (face.status == Image.Error || face.status == Image.Null)
|
||||
anchors.fill: parent
|
||||
anchors.margins: Kirigami.Units.gridUnit * 0.5 // because mockup says so...
|
||||
//colorGroup: PlasmaCore.ColorScope.colorGroup
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Image {
|
||||
id: imageFrame
|
||||
|
||||
anchors.fill: root
|
||||
source: "../images/pfpframe.png"
|
||||
}
|
||||
}
|
53
plasma/look-and-feel/authui7/contents/components/Status.qml
Normal file
53
plasma/look-and-feel/authui7/contents/components/Status.qml
Normal file
|
@ -0,0 +1,53 @@
|
|||
/*
|
||||
SPDX-FileCopyrightText: 2016 David Edmundson <davidedmundson@kde.org>
|
||||
|
||||
SPDX-License-Identifier: LGPL-2.0-or-later
|
||||
*/
|
||||
|
||||
import QtQuick 2.15
|
||||
import QtQuick.Layouts 1.1
|
||||
import QtQuick.Controls 2.15
|
||||
|
||||
import Qt5Compat.GraphicalEffects
|
||||
|
||||
RowLayout {
|
||||
id: root
|
||||
|
||||
property string statusText
|
||||
property int spinnum: 0
|
||||
property bool speen
|
||||
|
||||
spacing: 8
|
||||
Image {
|
||||
id: loadingspinner
|
||||
source: "../images/100/spin"+spinnum+".png"
|
||||
}
|
||||
Label {
|
||||
id: welcomeLbl
|
||||
z: 1
|
||||
text: statusText
|
||||
color: "#FFFFFF"
|
||||
font.pointSize: 18
|
||||
renderType: Text.NativeRendering
|
||||
font.hintingPreference: Font.PreferFullHinting
|
||||
font.kerning: false
|
||||
layer.enabled: true
|
||||
layer.effect: DropShadow {
|
||||
//visible: !softwareRendering
|
||||
horizontalOffset: 0
|
||||
verticalOffset: 1
|
||||
radius: 6
|
||||
samples: 14
|
||||
spread: 0.0001
|
||||
color: "#bf000000"
|
||||
}
|
||||
}
|
||||
|
||||
SequentialAnimation {
|
||||
id: spinner
|
||||
running: speen
|
||||
loops: Animation.Infinite
|
||||
NumberAnimation { target: root; property: "spinnum"; to: 17; duration: 900 }
|
||||
NumberAnimation { target: root; property: "spinnum"; to: 0; duration: 0 }
|
||||
}
|
||||
}
|
|
@ -0,0 +1,72 @@
|
|||
/*
|
||||
SPDX-FileCopyrightText: 2017 Martin Gräßlin <mgraesslin@kde.org>
|
||||
|
||||
SPDX-License-Identifier: GPL-2.0-or-later
|
||||
*/
|
||||
|
||||
import QtQuick 2.15
|
||||
import QtQuick.VirtualKeyboard 2.4
|
||||
|
||||
import org.kde.plasma.core 2.0 as PlasmaCore
|
||||
import org.kde.kirigami 2.20 as Kirigami
|
||||
|
||||
InputPanel {
|
||||
id: inputPanel
|
||||
property bool activated: false
|
||||
active: activated && Qt.inputMethod.visible
|
||||
width: parent.width
|
||||
|
||||
states: [
|
||||
State {
|
||||
name: "visible"
|
||||
when: inputPanel.active
|
||||
PropertyChanges {
|
||||
target: inputPanel
|
||||
y: inputPanel.parent.height - inputPanel.height
|
||||
opacity: 1
|
||||
visible: true
|
||||
}
|
||||
},
|
||||
State {
|
||||
name: "hidden"
|
||||
when: !inputPanel.active
|
||||
PropertyChanges {
|
||||
target: inputPanel
|
||||
y: inputPanel.parent.height
|
||||
opacity: 0
|
||||
visible:false
|
||||
}
|
||||
}
|
||||
]
|
||||
|
||||
transitions: [
|
||||
Transition {
|
||||
to: "visible"
|
||||
ParallelAnimation {
|
||||
YAnimator {
|
||||
// NOTE this is necessary as otherwise the keyboard always starts the transition with Y as 0, due to the internal reparenting happening when becomes active
|
||||
from: inputPanel.parent.height
|
||||
duration: Kirigami.Units.longDuration
|
||||
easing.type: Easing.OutQuad
|
||||
}
|
||||
OpacityAnimator {
|
||||
duration: Kirigami.Units.longDuration
|
||||
easing.type: Easing.OutQuad
|
||||
}
|
||||
}
|
||||
},
|
||||
Transition {
|
||||
to: "hidden"
|
||||
ParallelAnimation {
|
||||
YAnimator {
|
||||
duration: Kirigami.Units.longDuration
|
||||
easing.type: Easing.InQuad
|
||||
}
|
||||
OpacityAnimator {
|
||||
duration: Kirigami.Units.longDuration
|
||||
easing.type: Easing.InQuad
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
|
@ -0,0 +1,25 @@
|
|||
/*
|
||||
SPDX-FileCopyrightText: 2021 Aleix Pol Gonzalez <aleixpol@kde.org>
|
||||
|
||||
SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
|
||||
*/
|
||||
|
||||
import QtQuick 2.15
|
||||
|
||||
import org.kde.plasma.workspace.keyboardlayout 1.0 as Keyboards
|
||||
|
||||
Item {
|
||||
id: inputPanel
|
||||
readonly property bool active: Keyboards.KWinVirtualKeyboard.visible
|
||||
property bool activated: false
|
||||
visible: Keyboards.KWinVirtualKeyboard.visible
|
||||
|
||||
x: Qt.inputMethod.keyboardRectangle.x
|
||||
y: Qt.inputMethod.keyboardRectangle.y
|
||||
height: Qt.inputMethod.keyboardRectangle.height
|
||||
width: Qt.inputMethod.keyboardRectangle.width
|
||||
|
||||
onActivatedChanged: if (activated) {
|
||||
Keyboards.KWinVirtualKeyboard.enabled = true
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue