diff --git a/Modules/DankDash/DankDashPopout.qml b/Modules/DankDash/DankDashPopout.qml index 63cc8d23..8fc1cdab 100644 --- a/Modules/DankDash/DankDashPopout.qml +++ b/Modules/DankDash/DankDashPopout.qml @@ -179,6 +179,11 @@ DankPopout { tabBar.tabClicked(2) } } + + onSwitchToMediaTab: { + tabBar.currentIndex = 1 + tabBar.tabClicked(1) + } } MediaPlayerTab { diff --git a/Modules/DankDash/Overview/MediaOverviewCard.qml b/Modules/DankDash/Overview/MediaOverviewCard.qml index 2a3e4d47..c7bf7681 100644 --- a/Modules/DankDash/Overview/MediaOverviewCard.qml +++ b/Modules/DankDash/Overview/MediaOverviewCard.qml @@ -9,6 +9,8 @@ import qs.Widgets Card { id: root + signal clicked() + property MprisPlayer activePlayer: MprisController.activePlayer property real currentPosition: activePlayer?.positionSupported ? activePlayer.position : 0 property real displayPosition: currentPosition @@ -192,4 +194,16 @@ Card { } } } + + MouseArea { + anchors.top: parent.top + anchors.left: parent.left + anchors.right: parent.right + anchors.bottom: parent.bottom + anchors.bottomMargin: 123 + hoverEnabled: true + cursorShape: Qt.PointingHandCursor + onClicked: root.clicked() + visible: activePlayer + } } \ No newline at end of file diff --git a/Modules/DankDash/OverviewTab.qml b/Modules/DankDash/OverviewTab.qml index 51c85e0f..963eb243 100644 --- a/Modules/DankDash/OverviewTab.qml +++ b/Modules/DankDash/OverviewTab.qml @@ -13,6 +13,7 @@ Item { implicitHeight: 410 signal switchToWeatherTab() + signal switchToMediaTab() Item { anchors.fill: parent @@ -65,6 +66,8 @@ Item { y: 100 + Theme.spacingM width: parent.width * 0.2 height: 300 + + onClicked: root.switchToMediaTab() } } } \ No newline at end of file