Changeset View
Changeset View
Standalone View
Standalone View
lookandfeel/contents/lockscreen/MediaControls.qml
Show First 20 Lines • Show All 106 Lines • ▼ Show 20 Line(s) | 106 | Item { // spacer | |||
---|---|---|---|---|---|
107 | width: units.smallSpacing | 107 | width: units.smallSpacing | ||
108 | height: 1 | 108 | height: 1 | ||
109 | } | 109 | } | ||
110 | 110 | | |||
111 | ColumnLayout { | 111 | ColumnLayout { | ||
112 | Layout.fillWidth: true | 112 | Layout.fillWidth: true | ||
113 | spacing: 0 | 113 | spacing: 0 | ||
114 | 114 | | |||
115 | PlasmaExtras.Heading { | 115 | PlasmaComponents.Label { | ||
116 | Layout.fillWidth: true | 116 | Layout.fillWidth: true | ||
117 | level: 5 | | |||
118 | wrapMode: Text.NoWrap | 117 | wrapMode: Text.NoWrap | ||
119 | elide: Text.ElideRight | 118 | elide: Text.ElideRight | ||
120 | text: mpris2Source.track || i18nd("plasma_lookandfeel_org.kde.lookandfeel", "No media playing") | 119 | text: mpris2Source.track || i18nd("plasma_lookandfeel_org.kde.lookandfeel", "No media playing") | ||
121 | textFormat: Text.PlainText | 120 | textFormat: Text.PlainText | ||
122 | font.weight: Font.Bold | 121 | font.pointSize: theme.defaultFont.pointSize + 1 | ||
123 | } | 122 | } | ||
124 | 123 | | |||
125 | PlasmaExtras.Heading { | 124 | PlasmaExtras.DescriptiveLabel { | ||
126 | Layout.fillWidth: true | 125 | Layout.fillWidth: true | ||
127 | level: 5 | | |||
128 | wrapMode: Text.NoWrap | 126 | wrapMode: Text.NoWrap | ||
129 | elide: Text.ElideRight | 127 | elide: Text.ElideRight | ||
130 | // if no artist is given, show player name instead | 128 | // if no artist is given, show player name instead | ||
131 | text: mpris2Source.artist || mpris2Source.identity || "" | 129 | text: mpris2Source.artist || mpris2Source.identity || "" | ||
132 | textFormat: Text.PlainText | 130 | textFormat: Text.PlainText | ||
133 | opacity: 0.75 | 131 | font.pointSize: theme.smallestFont.pointSize + 1 | ||
134 | } | 132 | } | ||
broulik: Use `PlasmaExtras.DescriptiveLabel` instead | |||||
135 | } | 133 | } | ||
136 | 134 | | |||
137 | PlasmaComponents.ToolButton { | 135 | PlasmaComponents.ToolButton { | ||
138 | enabled: mpris2Source.canGoBack | 136 | enabled: mpris2Source.canGoBack | ||
139 | iconName: LayoutMirroring.enabled ? "media-skip-forward" : "media-skip-backward" | 137 | iconName: LayoutMirroring.enabled ? "media-skip-forward" : "media-skip-backward" | ||
140 | onClicked: mpris2Source.goPrevious() | 138 | onClicked: mpris2Source.goPrevious() | ||
141 | visible: mpris2Source.canGoBack || mpris2Source.canGoNext | 139 | visible: mpris2Source.canGoBack || mpris2Source.canGoNext | ||
142 | Accessible.name: i18nd("plasma_lookandfeel_org.kde.lookandfeel", "Previous track") | 140 | Accessible.name: i18nd("plasma_lookandfeel_org.kde.lookandfeel", "Previous track") | ||
Show All 19 Lines |
Use PlasmaExtras.DescriptiveLabel instead