Changeset View
Changeset View
Standalone View
Standalone View
src/qml/ContextView.qml
Show All 21 Lines | |||||
22 | import QtQml.Models 2.2 | 22 | import QtQml.Models 2.2 | ||
23 | import QtQuick.Layouts 1.2 | 23 | import QtQuick.Layouts 1.2 | ||
24 | 24 | | |||
25 | import org.kde.elisa 1.0 | 25 | import org.kde.elisa 1.0 | ||
26 | 26 | | |||
27 | FocusScope { | 27 | FocusScope { | ||
28 | id: topItem | 28 | id: topItem | ||
29 | 29 | | |||
30 | property var viewType | ||||
30 | property int databaseId: 0 | 31 | property int databaseId: 0 | ||
31 | property alias title: titleLabel.text | 32 | property alias title: titleLabel.text | ||
32 | property string albumName: '' | 33 | property string albumName: '' | ||
33 | property string artistName: '' | 34 | property string artistName: '' | ||
34 | property url albumArtUrl: '' | 35 | property url albumArtUrl: '' | ||
35 | property string fileUrl: '' | 36 | property string fileUrl: '' | ||
36 | 37 | | |||
37 | TrackContextMetaDataModel { | 38 | TrackContextMetaDataModel { | ||
Show All 12 Lines | 49 | TextMetrics { | |||
50 | text: viewTitle.text | 51 | text: viewTitle.text | ||
51 | font: viewTitle.font | 52 | font: viewTitle.font | ||
52 | } | 53 | } | ||
53 | 54 | | |||
54 | // Header with title | 55 | // Header with title | ||
55 | HeaderFooterToolbar { | 56 | HeaderFooterToolbar { | ||
56 | type: "header" | 57 | type: "header" | ||
57 | contentItems: [ | 58 | contentItems: [ | ||
59 | Image { | ||||
60 | id: mainIcon | ||||
61 | source: elisaTheme.nowPlayingIcon | ||||
62 | | ||||
63 | height: viewTitle.height | ||||
64 | width: height | ||||
65 | sourceSize.height: height | ||||
66 | sourceSize.width: width | ||||
67 | | ||||
68 | fillMode: Image.PreserveAspectFit | ||||
69 | asynchronous: true | ||||
70 | | ||||
71 | Layout.alignment: Qt.AlignVCenter | Qt.AlignLeft | ||||
72 | }, | ||||
73 | Item { | ||||
74 | id: spacer | ||||
75 | width: elisaTheme.layoutHorizontalMargin | ||||
76 | }, | ||||
58 | LabelWithToolTip { | 77 | LabelWithToolTip { | ||
59 | id: viewTitle | 78 | id: viewTitle | ||
60 | Layout.fillWidth: true | 79 | Layout.fillWidth: true | ||
61 | Layout.alignment: Qt.AlignLeft | Qt.AlignVCenter | 80 | Layout.alignment: Qt.AlignLeft | Qt.AlignVCenter | ||
62 | 81 | | |||
63 | text: i18nc("Title of the context view related to the currently playing track", "Now Playing") | 82 | text: i18nc("Title of the context view related to the currently playing track", "Now Playing") | ||
64 | 83 | | |||
65 | font.pointSize: elisaTheme.headerTitleFontSize | 84 | font.pointSize: elisaTheme.headerTitleFontSize | ||
▲ Show 20 Lines • Show All 193 Lines • Show Last 20 Lines |