Port Plasma 6 version of Plasmoid to changes in alpha release of Plasma

This commit is contained in:
Martchus 2023-11-14 01:50:24 +01:00
parent e5a55b1809
commit 237b4d0e50
9 changed files with 10 additions and 9 deletions

View File

@ -2,13 +2,14 @@ import QtQuick 2.0
import QtQuick.Layouts 1.1
import org.kde.plasma.plasmoid 2.0
import org.kde.plasma.core 2.0 as PlasmaCore
import org.kde.kirigami 2.20 as Kirigami
MouseArea {
Layout.fillWidth: false
hoverEnabled: true
onClicked: plasmoid.expanded = !plasmoid.expanded
PlasmaCore.IconItem {
Kirigami.Icon {
id: icon
anchors.fill: parent
source: plasmoid.statusIcon

View File

@ -17,7 +17,7 @@ Item {
id: detailRow
width: parent.width
PlasmaCore.IconItem {
Kirigami.Icon {
source: detailIcon
Layout.leftMargin: Kirigami.Units.iconSizes.small * 1.1
Layout.preferredWidth: Kirigami.Units.iconSizes.small

View File

@ -34,7 +34,7 @@ Item {
RowLayout {
Layout.fillWidth: true
PlasmaCore.IconItem {
Kirigami.Icon {
Layout.preferredWidth: Kirigami.Units.iconSizes.small
Layout.preferredHeight: Kirigami.Units.iconSizes.small
Layout.alignment: Qt.AlignVCenter | Qt.AlignLeft

View File

@ -53,7 +53,7 @@ ColumnLayout {
id: itemSummary
Layout.fillWidth: true
PlasmaCore.IconItem {
Kirigami.Icon {
Layout.preferredWidth: units.iconSizes.small
Layout.preferredHeight: units.iconSizes.small
Layout.alignment: Qt.AlignVCenter | Qt.AlignLeft

View File

@ -85,7 +85,7 @@ Item {
delegate: RowLayout {
width: detailsView.width
PlasmaCore.IconItem {
Kirigami.Icon {
Layout.preferredWidth: Kirigami.Units.iconSizes.medium
Layout.preferredHeight: Kirigami.Units.iconSizes.medium
Layout.alignment: Qt.AlignVCenter | Qt.AlignLeft

View File

@ -26,7 +26,7 @@ Item {
spacing: 0
RowLayout {
Layout.fillWidth: true
PlasmaCore.IconItem {
Kirigami.Icon {
Layout.preferredWidth: Kirigami.Units.iconSizes.small
Layout.preferredHeight: Kirigami.Units.iconSizes.small
Layout.alignment: Qt.AlignVCenter | Qt.AlignLeft

View File

@ -20,7 +20,7 @@ PlasmaComponents3.TabButton {
contentItem: RowLayout {
spacing: label.visible ? Kirigami.Units.smallSpacing : 0
PlasmaCore.ColorScope.inherit: true
Kirigami.Theme.inherit: true
width: parent.width
Item {
Layout.fillWidth: true

View File

@ -11,7 +11,7 @@ PlasmaComponents3.ToolButton {
columns: 2
columnSpacing: label.visible ? Kirigami.Units.smallSpacing : 0
verticalItemAlignment: Grid.AlignVCenter
PlasmaCore.ColorScope.inherit: true
Kirigami.Theme.inherit: true
Image {
source: root.icon.source
cache: false

View File

@ -7,7 +7,7 @@ import org.kde.kirigami 2.20 as Kirigami
RowLayout {
spacing: Kirigami.Units.smallSpacing
PlasmaCore.IconItem {
Kirigami.Icon {
id: tooltipIcon
source: plasmoid.statusIcon
Layout.alignment: Qt.AlignCenter