Changeset View
Changeset View
Standalone View
Standalone View
src/qml/BasicPlayListAlbumHeader.qml
Show First 20 Lines • Show All 44 Lines • ▼ Show 20 Line(s) | 26 | RowLayout { | |||
---|---|---|---|---|---|
45 | } | 45 | } | ||
46 | 46 | | |||
47 | spacing: elisaTheme.layoutHorizontalMargin | 47 | spacing: elisaTheme.layoutHorizontalMargin | ||
48 | 48 | | |||
49 | Image { | 49 | Image { | ||
50 | id: mainIcon | 50 | id: mainIcon | ||
51 | 51 | | |||
52 | property int layoutMargin: headerRow.height - elisaTheme.smallDelegateToolButtonSize - | 52 | property int layoutMargin: headerRow.height - elisaTheme.smallDelegateToolButtonSize - | ||
53 | trackNumberSize.width - | 53 | (trackNumberSize.boundingRect.width - trackNumberSize.boundingRect.x) - | ||
54 | fakeDiscNumberSize.width - | 54 | (fakeDiscNumberSize.boundingRect.width - fakeDiscNumberSize.boundingRect.x) - | ||
55 | (elisaTheme.layoutHorizontalMargin * 5 / 4) | 55 | (elisaTheme.layoutHorizontalMargin * 5 / 4) | ||
56 | 56 | | |||
57 | source: (imageUrl != '' ? imageUrl : Qt.resolvedUrl(elisaTheme.defaultAlbumImage)) | 57 | source: (imageUrl != '' ? imageUrl : Qt.resolvedUrl(elisaTheme.defaultAlbumImage)) | ||
58 | 58 | | |||
59 | Layout.minimumWidth: headerRow.height - layoutMargin | 59 | Layout.minimumWidth: headerRow.height - layoutMargin | ||
60 | Layout.maximumWidth: headerRow.height - layoutMargin | 60 | Layout.maximumWidth: headerRow.height - layoutMargin | ||
61 | Layout.preferredWidth: headerRow.height - layoutMargin | 61 | Layout.preferredWidth: headerRow.height - layoutMargin | ||
62 | Layout.minimumHeight: headerRow.height - layoutMargin | 62 | Layout.minimumHeight: headerRow.height - layoutMargin | ||
Show All 21 Lines | 76 | ColumnLayout { | |||
84 | spacing: 0 | 84 | spacing: 0 | ||
85 | 85 | | |||
86 | LabelWithToolTip { | 86 | LabelWithToolTip { | ||
87 | id: mainLabel | 87 | id: mainLabel | ||
88 | 88 | | |||
89 | text: album | 89 | text: album | ||
90 | 90 | | |||
91 | font.weight: Font.Bold | 91 | font.weight: Font.Bold | ||
92 | font.pointSize: elisaTheme.defaultFontPointSize * 1.4 | 92 | font.pointSize: Math.round(elisaTheme.defaultFontPointSize * 1.4) | ||
93 | 93 | | |||
94 | horizontalAlignment: Text.AlignLeft | 94 | horizontalAlignment: Text.AlignLeft | ||
95 | 95 | | |||
96 | Layout.fillWidth: true | 96 | Layout.fillWidth: true | ||
97 | Layout.alignment: Qt.AlignVCenter | Qt.AlignLeft | 97 | Layout.alignment: Qt.AlignVCenter | Qt.AlignLeft | ||
98 | Layout.topMargin: elisaTheme.layoutVerticalMargin | 98 | Layout.topMargin: elisaTheme.layoutVerticalMargin | ||
99 | 99 | | |||
100 | elide: Text.ElideRight | 100 | elide: Text.ElideRight | ||
Show All 24 Lines |