Commit a1f64f11 authored by Nate Graham's avatar Nate Graham 🔩
Browse files

[applets/mediacontroller] Don't show player name when there's only one player

Doing so takes up extra space and I don't think it's useful information
anyway. If there's only one media player going, the user already knows
which one it is.
parent 9f2abd0a
...@@ -511,27 +511,13 @@ PlasmaExtras.Representation { ...@@ -511,27 +511,13 @@ PlasmaExtras.Representation {
header: PlasmaExtras.PlasmoidHeading { header: PlasmaExtras.PlasmoidHeading {
id: headerItem id: headerItem
location: PlasmaExtras.PlasmoidHeading.Location.Header location: PlasmaExtras.PlasmoidHeading.Location.Header
visible: playerList.model.length > 1 visible: playerList.model.length > 2 // more than one player, @multiplex is always there
//this removes top padding to allow tabbar to touch the edge //this removes top padding to allow tabbar to touch the edge
topPadding: topInset topPadding: topInset
bottomPadding: -bottomInset bottomPadding: -bottomInset
implicitHeight: PlasmaCore.Units.gridUnit * 2 implicitHeight: PlasmaCore.Units.gridUnit * 2
PlasmaExtras.Heading { // Song Title
anchors.fill: parent
anchors.leftMargin: PlasmaCore.Units.smallSpacing
level: 2
textFormat: Text.PlainText
fontSizeMode: Text.VerticalFit
elide: Text.ElideRight
text: root.identity
visible: playerList.count <= 2
}
PlasmaComponents3.TabBar { PlasmaComponents3.TabBar {
id: playerSelector id: playerSelector
visible: playerList.model.length > 2 // more than one player, @multiplex is always there
position: PlasmaComponents3.TabBar.Header position: PlasmaComponents3.TabBar.Header
anchors.fill: parent anchors.fill: parent
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment