Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Multimedia
Elisa
Commits
f807e02a
Commit
f807e02a
authored
Feb 04, 2020
by
Alexander Stippich
Browse files
compute playlist delegate height based on font size
parent
15e58cfb
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/qml/BaseTheme.qml
View file @
f807e02a
...
...
@@ -42,14 +42,6 @@ Item {
property
int
layoutHorizontalMargin
:
8
property
int
layoutVerticalMargin
:
6
// FIXME: don't hardcode these; derive them from the layouts they're used in
FontMetrics
{
id
:
playListTrackTextHeight
font.weight
:
Font
.
Bold
}
property
int
playListDelegateHeight
:
(
playListTrackTextHeight
.
height
>
28
)
?
playListTrackTextHeight
.
height
:
28
// END FIXME
property
int
playListAlbumArtSize
:
60
property
int
coverImageSize
:
180
...
...
src/qml/PlayListEntry.qml
View file @
f807e02a
...
...
@@ -56,12 +56,18 @@ FocusScope {
Accessible.role
:
Accessible
.
ListItem
Accessible.name
:
title
+
'
'
+
album
+
'
'
+
artist
TextMetrics
{
id
:
mainCompactLabelSize
font
:
mainCompactLabel
.
font
text
:
mainCompactLabel
.
text
}
Keys.onReturnPressed
:
{
playListEntry
.
switchToTrack
(
playListEntry
.
index
)
playListEntry
.
startPlayback
()
}
height
:
elisaTheme
.
p
lay
ListDelegateHeight
height
:
mainCompactLabelSize
.
height
+
2
*
elisaTheme
.
lay
outVerticalMargin
Loader
{
id
:
metadataLoader
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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