Changeset View
Changeset View
Standalone View
Standalone View
src/qml/HeaderBar.qml
Show All 26 Lines | 24 | FocusScope { | |||
---|---|---|---|---|---|
27 | property string title | 27 | property string title | ||
28 | property string artist | 28 | property string artist | ||
29 | property string albumArtist | 29 | property string albumArtist | ||
30 | property string album | 30 | property string album | ||
31 | property string image | 31 | property string image | ||
32 | property string newImage | 32 | property string newImage | ||
33 | property string oldImage | 33 | property string oldImage | ||
34 | property string tracksCount | 34 | property string tracksCount | ||
35 | property string fileName | ||||
35 | property int trackRating | 36 | property int trackRating | ||
36 | property int albumID | 37 | property int albumID | ||
37 | property bool ratingVisible | 38 | property bool ratingVisible | ||
38 | property alias playerControl: playControlItem | 39 | property alias playerControl: playControlItem | ||
39 | property alias isMaximized: playControlItem.isMaximized | 40 | property alias isMaximized: playControlItem.isMaximized | ||
40 | 41 | | |||
41 | signal openArtist() | 42 | signal openArtist() | ||
42 | signal openAlbum() | 43 | signal openAlbum() | ||
▲ Show 20 Lines • Show All 170 Lines • ▼ Show 20 Line(s) | 208 | ColumnLayout { | |||
213 | Layout.preferredHeight: contentZone.height * 0.9 | 214 | Layout.preferredHeight: contentZone.height * 0.9 | ||
214 | Layout.minimumHeight: contentZone.height * 0.9 | 215 | Layout.minimumHeight: contentZone.height * 0.9 | ||
215 | Layout.maximumHeight: contentZone.height * 0.9 | 216 | Layout.maximumHeight: contentZone.height * 0.9 | ||
216 | 217 | | |||
217 | Layout.fillWidth: true | 218 | Layout.fillWidth: true | ||
218 | 219 | | |||
219 | LabelWithToolTip { | 220 | LabelWithToolTip { | ||
220 | id: mainLabel | 221 | id: mainLabel | ||
221 | text: title | 222 | text: title ? title : fileName | ||
222 | Layout.alignment: Qt.AlignLeft | 223 | Layout.alignment: Qt.AlignLeft | ||
223 | elide: Text.ElideRight | 224 | elide: Text.ElideRight | ||
224 | // Hardcoded because the headerbar blur always makes a dark-ish | 225 | // Hardcoded because the headerbar blur always makes a dark-ish | ||
225 | // background, so we don't want to use a color scheme color that | 226 | // background, so we don't want to use a color scheme color that | ||
226 | // might also be dark | 227 | // might also be dark | ||
227 | color: "white" | 228 | color: "white" | ||
228 | font.pointSize: Math.round(elisaTheme.defaultFontPointSize * 2.5) | 229 | font.pointSize: Math.round(elisaTheme.defaultFontPointSize * 2.5) | ||
229 | font.bold: true | 230 | font.bold: true | ||
▲ Show 20 Lines • Show All 194 Lines • Show Last 20 Lines |