From 7ec8d5f54a2aafaf825de90d7260ecd79ac7dea8 Mon Sep 17 00:00:00 2001 From: Devin Lin Date: Sat, 9 Mar 2024 00:48:49 -0500 Subject: [PATCH] widgets/mediacontrols: Fix uncentered icon in buttons Use QQC2 components instead of PC3 components, now that theming works properly --- .../qml/widgets/mediacontrols/MediaControlsWidget.qml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/components/mobileshell/qml/widgets/mediacontrols/MediaControlsWidget.qml b/components/mobileshell/qml/widgets/mediacontrols/MediaControlsWidget.qml index 4dc812ad..8e56d29b 100644 --- a/components/mobileshell/qml/widgets/mediacontrols/MediaControlsWidget.qml +++ b/components/mobileshell/qml/widgets/mediacontrols/MediaControlsWidget.qml @@ -10,7 +10,6 @@ import org.kde.kirigami as Kirigami import org.kde.plasma.private.mobileshell as MobileShell import org.kde.plasma.private.mobileshell.state as MobileShellState -import org.kde.plasma.components 3.0 as PlasmaComponents3 import org.kde.plasma.private.mpris as Mpris @@ -160,7 +159,7 @@ Item { } } - PlasmaComponents3.ToolButton { + QQC2.ToolButton { Layout.fillHeight: true Layout.preferredWidth: height @@ -176,7 +175,7 @@ Item { Accessible.name: i18nd("plasma_lookandfeel_org.kde.lookandfeel", "Previous track") } - PlasmaComponents3.ToolButton { + QQC2.ToolButton { Layout.fillHeight: true Layout.preferredWidth: height @@ -190,7 +189,7 @@ Item { Accessible.name: i18nd("plasma_lookandfeel_org.kde.lookandfeel", "Play or Pause media") } - PlasmaComponents3.ToolButton { + QQC2.ToolButton { Layout.fillHeight: true Layout.preferredWidth: height