Changeset View
Changeset View
Standalone View
Standalone View
src/qml/MediaPlayListView.qml
Show First 20 Lines • Show All 98 Lines • ▼ Show 20 Line(s) | 92 | { | |||
---|---|---|---|---|---|
99 | } | 99 | } | ||
100 | } | 100 | } | ||
101 | } | 101 | } | ||
102 | 102 | | |||
103 | ColumnLayout { | 103 | ColumnLayout { | ||
104 | anchors.fill: parent | 104 | anchors.fill: parent | ||
105 | spacing: 0 | 105 | spacing: 0 | ||
106 | 106 | | |||
107 | ColumnLayout { | | |||
108 | height: elisaTheme.navigationBarHeight | | |||
109 | Layout.preferredHeight: elisaTheme.navigationBarHeight | | |||
110 | Layout.minimumHeight: elisaTheme.navigationBarHeight | | |||
111 | Layout.maximumHeight: elisaTheme.navigationBarHeight | | |||
112 | spacing: 0 | | |||
113 | | ||||
114 | Layout.leftMargin: elisaTheme.layoutHorizontalMargin | | |||
115 | Layout.rightMargin: elisaTheme.layoutHorizontalMargin | | |||
116 | | ||||
117 | TextMetrics { | 107 | TextMetrics { | ||
118 | id: titleHeight | 108 | id: titleHeight | ||
119 | text: viewTitleHeight.text | 109 | text: viewTitleHeight.text | ||
120 | font | 110 | font | ||
121 | { | 111 | { | ||
122 | pointSize: viewTitleHeight.font.pointSize | 112 | pointSize: viewTitleHeight.font.pointSize | ||
123 | bold: viewTitleHeight.font.bold | 113 | bold: viewTitleHeight.font.bold | ||
124 | } | 114 | } | ||
Show All 25 Lines | 128 | RowLayout { | |||
150 | Item { Layout.fillWidth: true } | 140 | Item { Layout.fillWidth: true } | ||
151 | 141 | | |||
152 | Controls1.ToolButton { action: showCurrentTrack } | 142 | Controls1.ToolButton { action: showCurrentTrack } | ||
153 | Controls1.ToolButton { action: savePlaylist } | 143 | Controls1.ToolButton { action: savePlaylist } | ||
154 | Controls1.ToolButton { action: loadPlaylist } | 144 | Controls1.ToolButton { action: loadPlaylist } | ||
155 | Controls1.ToolButton { action: clearPlayList } | 145 | Controls1.ToolButton { action: clearPlayList } | ||
156 | } | 146 | } | ||
157 | 147 | | |||
158 | Item { Layout.fillHeight: true } | | |||
159 | | ||||
160 | } | | |||
161 | | ||||
162 | ColumnLayout { | 148 | ColumnLayout { | ||
163 | id: emptyPlaylistText | 149 | id: emptyPlaylistText | ||
164 | spacing: 0 | 150 | spacing: 0 | ||
165 | visible: playListModelDelegate.count === 0 | 151 | visible: playListModelDelegate.count === 0 | ||
166 | Layout.alignment: Qt.AlignHCenter | Qt.AlignVCenter | 152 | Layout.alignment: Qt.AlignHCenter | Qt.AlignVCenter | ||
167 | Layout.fillHeight: true | 153 | Layout.fillHeight: true | ||
168 | Layout.fillWidth: true | 154 | Layout.fillWidth: true | ||
169 | 155 | | |||
Show All 9 Lines | 158 | Image { | |||
179 | opacity: 0.25 | 165 | opacity: 0.25 | ||
180 | 166 | | |||
181 | sourceSize { | 167 | sourceSize { | ||
182 | width: elisaTheme.viewSelectorDelegateHeight * 5 | 168 | width: elisaTheme.viewSelectorDelegateHeight * 5 | ||
183 | height: elisaTheme.viewSelectorDelegateHeight * 5 | 169 | height: elisaTheme.viewSelectorDelegateHeight * 5 | ||
184 | } | 170 | } | ||
185 | } | 171 | } | ||
186 | 172 | | |||
187 | Text { | 173 | Label { | ||
188 | font.pointSize: elisaTheme.defaultFontPointSize * 2 | | |||
189 | Layout.fillWidth: true | 174 | Layout.fillWidth: true | ||
190 | Layout.alignment: Qt.AlignHCenter | 175 | Layout.alignment: Qt.AlignHCenter | ||
176 | Layout.rightMargin: elisaTheme.layoutHorizontalMargin | ||||
177 | Layout.leftMargin: elisaTheme.layoutHorizontalMargin | ||||
178 | | ||||
179 | font.pointSize: elisaTheme.defaultFontPointSize * 2 | ||||
180 | wrapMode: Text.WordWrap | ||||
191 | 181 | | |||
192 | color: myPalette.text | | |||
193 | horizontalAlignment: Text.AlignHCenter | 182 | horizontalAlignment: Text.AlignHCenter | ||
194 | text: i18nc("Your playlist is empty", "Your playlist is empty") | 183 | text: i18nc("Your playlist is empty", "Your playlist is empty") | ||
195 | } | 184 | } | ||
196 | 185 | | |||
197 | Text { | 186 | Label { | ||
198 | Layout.topMargin: 5 | 187 | Layout.topMargin: 5 | ||
199 | font.pointSize: elisaTheme.defaultFontPointSize | 188 | Layout.fillWidth: true | ||
200 | Layout.maximumWidth: 300 | | |||
201 | Layout.preferredWidth: 300 | | |||
202 | Layout.alignment: Qt.AlignHCenter | 189 | Layout.alignment: Qt.AlignHCenter | ||
190 | Layout.rightMargin: elisaTheme.layoutHorizontalMargin | ||||
191 | Layout.leftMargin: elisaTheme.layoutHorizontalMargin | ||||
192 | | ||||
203 | wrapMode: Text.WordWrap | 193 | wrapMode: Text.WordWrap | ||
204 | color: myPalette.text | 194 | | ||
205 | horizontalAlignment: Text.AlignHCenter | 195 | horizontalAlignment: Text.AlignHCenter | ||
206 | text: i18nc("Text shown when play list is empty", "Add some songs to get started. You can browse your music using the views on the left.") | 196 | text: i18nc("Text shown when play list is empty", "Add some songs to get started. You can browse your music using the views on the left.") | ||
207 | } | 197 | } | ||
208 | 198 | | |||
209 | Item { Layout.fillHeight: true } | 199 | Item { Layout.fillHeight: true } | ||
210 | 200 | | |||
211 | } | 201 | } | ||
212 | 202 | | |||
▲ Show 20 Lines • Show All 134 Lines • Show Last 20 Lines |