[AI] Add background to text sections of osd
The background is a solid color rectangle that is added for more visiblility.
This commit is contained in:
+19
-3
@@ -171,28 +171,44 @@ Item {
|
|||||||
ColumnLayout {
|
ColumnLayout {
|
||||||
Layout.fillHeight: true
|
Layout.fillHeight: true
|
||||||
spacing: 2
|
spacing: 2
|
||||||
|
Layout.rightMargin: 8
|
||||||
|
|
||||||
|
Rectangle {
|
||||||
|
Layout.fillWidth: true
|
||||||
|
Layout.preferredHeight: 44
|
||||||
|
color: blendedColors.colSecondaryContainer
|
||||||
|
radius: 4
|
||||||
|
|
||||||
|
ColumnLayout {
|
||||||
|
id: titleBlock
|
||||||
|
spacing: 1
|
||||||
|
|
||||||
StyledText {
|
StyledText {
|
||||||
id: trackTitle
|
id: trackTitle
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
|
Layout.leftMargin: 8
|
||||||
|
Layout.rightMargin: 8
|
||||||
font.pixelSize: Appearance.font.pixelSize.large
|
font.pixelSize: Appearance.font.pixelSize.large
|
||||||
color: blendedColors.colOnLayer0
|
color: blendedColors.colOnSecondaryContainer
|
||||||
elide: Text.ElideRight
|
elide: Text.ElideRight
|
||||||
text: playerController.player?.trackTitle || "Untitled"
|
text: playerController.player?.trackTitle || "Untitled"
|
||||||
}
|
}
|
||||||
StyledText {
|
StyledText {
|
||||||
id: trackArtist
|
id: trackArtist
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
|
Layout.leftMargin: 8
|
||||||
|
Layout.rightMargin: 8
|
||||||
font.pixelSize: Appearance.font.pixelSize.smaller
|
font.pixelSize: Appearance.font.pixelSize.smaller
|
||||||
color:blendedColors.colSubtext
|
color: blendedColors.colOnSecondaryContainer
|
||||||
elide: Text.ElideRight
|
elide: Text.ElideRight
|
||||||
text: playerController.player?.trackArtist
|
text: playerController.player?.trackArtist
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
Rectangle {
|
Rectangle {
|
||||||
id: scrubberOutline
|
id: scrubberOutline
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
Layout.preferredHeight: 12
|
Layout.preferredHeight: 12
|
||||||
Layout.rightMargin: 8
|
|
||||||
color: blendedColors.colSecondaryContainer
|
color: blendedColors.colSecondaryContainer
|
||||||
visible: playerController.player?.length > 0
|
visible: playerController.player?.length > 0
|
||||||
radius: parent.height / 2
|
radius: parent.height / 2
|
||||||
|
|||||||
Reference in New Issue
Block a user