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,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"
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue