Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Graham Littlewood
Elisa
Commits
0a030c67
Commit
0a030c67
authored
Mar 10, 2017
by
Matthieu Gallien
🎵
Browse files
tune visual appearance of invalid play list entries
parent
3ca8f02e
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/MediaPlayListView.qml
View file @
0a030c67
...
...
@@ -229,6 +229,7 @@ Item {
model
.
album
else
''
isValid
:
model
.
isValid
isPlaying
:
model
.
isPlaying
isSelected
:
item
.
DelegateModel
.
inSelected
containsMouse
:
item
.
containsMouse
...
...
src/PlayListEntry.qml
View file @
0a030c67
...
...
@@ -37,6 +37,7 @@ Rectangle {
property
int
discNumber
property
alias
isPlaying
:
playIcon
.
visible
property
bool
isSelected
property
bool
isValid
property
bool
isAlternateColor
property
bool
containsMouse
property
bool
hasAlbumHeader
...
...
@@ -68,7 +69,7 @@ Rectangle {
id
:
playNow
text
:
i18nc
(
"
Play now current track from play list
"
,
"
Play Now
"
)
iconName
:
"
media-playback-start
"
enabled
:
!
isPlaying
enabled
:
!
isPlaying
&&
isValid
onTriggered
:
{
playListControler
.
switchTo
(
viewAlbumDelegate
.
index
)
}
...
...
@@ -101,7 +102,7 @@ Rectangle {
Image
{
id
:
mainIcon
source
:
(
viewAlbumDelegate
.
itemDecoration
?
viewAlbumDelegate
.
itemDecoration
:
'
image://icon/media-optical-audio
'
)
source
:
(
isValid
?
(
viewAlbumDelegate
.
itemDecoration
?
viewAlbumDelegate
.
itemDecoration
:
'
image://icon/media-optical-audio
'
)
:
'
image://icon/error
'
)
Layout.minimumWidth
:
headerRow
.
height
-
4
Layout.maximumWidth
:
headerRow
.
height
-
4
...
...
@@ -116,6 +117,26 @@ Rectangle {
fillMode
:
Image
.
PreserveAspectFit
asynchronous
:
true
visible
:
isValid
}
BrightnessContrast
{
source
:
mainIcon
cached
:
true
visible
:
!
isValid
contrast
:
-
0.9
Layout.minimumWidth
:
headerRow
.
height
-
4
Layout.maximumWidth
:
headerRow
.
height
-
4
Layout.preferredWidth
:
headerRow
.
height
-
4
Layout.minimumHeight
:
headerRow
.
height
-
4
Layout.maximumHeight
:
headerRow
.
height
-
4
Layout.preferredHeight
:
headerRow
.
height
-
4
Layout.alignment
:
Qt
.
AlignVCenter
|
Qt
.
AlignHCenter
}
ColumnLayout
{
...
...
@@ -179,6 +200,22 @@ Rectangle {
Layout.fillWidth
:
true
Layout.alignment
:
Qt
.
AlignVCenter
|
Qt
.
AlignLeft
visible
:
isValid
elide
:
"
ElideRight
"
}
Text
{
id
:
mainInvalidCompactLabel
text
:
title
font.weight
:
Font
.
Bold
Layout.fillWidth
:
true
Layout.alignment
:
Qt
.
AlignVCenter
|
Qt
.
AlignLeft
visible
:
!
isValid
elide
:
"
ElideRight
"
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment