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 QtQuick.Layouts 1.1
import org.kde.plasma.plasmoid 2.0 import org.kde.plasma.plasmoid 2.0
import org.kde.plasma.core 2.0 as PlasmaCore import org.kde.plasma.core 2.0 as PlasmaCore
import org.kde.kirigami 2.20 as Kirigami
MouseArea { MouseArea {
Layout.fillWidth: false Layout.fillWidth: false
hoverEnabled: true hoverEnabled: true
onClicked: plasmoid.expanded = !plasmoid.expanded onClicked: plasmoid.expanded = !plasmoid.expanded
PlasmaCore.IconItem { Kirigami.Icon {
id: icon id: icon
anchors.fill: parent anchors.fill: parent
source: plasmoid.statusIcon source: plasmoid.statusIcon

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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