Changeset View
Changeset View
Standalone View
Standalone View
src/qml/ContentView.qml
Show First 20 Lines • Show All 339 Lines • ▼ Show 20 Line(s) | 323 | Rectangle { | |||
---|---|---|---|---|---|
340 | Layout.maximumWidth: 1 | 340 | Layout.maximumWidth: 1 | ||
341 | } | 341 | } | ||
342 | 342 | | |||
343 | MediaPlayListView { | 343 | MediaPlayListView { | ||
344 | id: playList | 344 | id: playList | ||
345 | 345 | | |||
346 | Layout.fillHeight: true | 346 | Layout.fillHeight: true | ||
347 | Layout.leftMargin: elisaTheme.layoutHorizontalMargin | 347 | Layout.leftMargin: elisaTheme.layoutHorizontalMargin | ||
348 | Layout.rightMargin: elisaTheme.layoutHorizontalMargin | | |||
349 | 348 | | |||
350 | Layout.minimumWidth: contentZone.width | 349 | Layout.minimumWidth: contentZone.width | ||
351 | Layout.maximumWidth: contentZone.width | 350 | Layout.maximumWidth: contentZone.width | ||
352 | Layout.preferredWidth: contentZone.width | 351 | Layout.preferredWidth: contentZone.width | ||
353 | 352 | | |||
354 | onStartPlayback: elisa.audioControl.ensurePlay() | 353 | onStartPlayback: elisa.audioControl.ensurePlay() | ||
355 | 354 | | |||
356 | onPausePlayback: elisa.audioControl.playPause() | 355 | onPausePlayback: elisa.audioControl.playPause() | ||
Show All 16 Lines | 360 | Rectangle { | |||
373 | 372 | | |||
374 | Layout.fillHeight: true | 373 | Layout.fillHeight: true | ||
375 | 374 | | |||
376 | Layout.preferredWidth: 1 | 375 | Layout.preferredWidth: 1 | ||
377 | Layout.minimumWidth: 1 | 376 | Layout.minimumWidth: 1 | ||
378 | Layout.maximumWidth: 1 | 377 | Layout.maximumWidth: 1 | ||
379 | } | 378 | } | ||
380 | 379 | | |||
381 | ContextView { | 380 | Loader { | ||
382 | id: albumContext | 381 | id: albumContext | ||
383 | 382 | | |||
384 | Layout.fillHeight: true | 383 | active: Layout.minimumWidth != 0 | ||
385 | 384 | | |||
386 | Layout.minimumWidth: contentZone.width | 385 | sourceComponent: ContextView { | ||
387 | Layout.maximumWidth: contentZone.width | | |||
388 | Layout.preferredWidth: contentZone.width | | |||
389 | 386 | | |||
390 | visible: Layout.minimumWidth != 0 | 387 | anchors.fill: parent | ||
391 | 388 | | |||
389 | databaseId: elisa.manageHeaderBar.databaseId | ||||
390 | title: elisa.manageHeaderBar.title | ||||
392 | artistName: elisa.manageHeaderBar.artist | 391 | artistName: elisa.manageHeaderBar.artist | ||
393 | albumName: elisa.manageHeaderBar.album | 392 | albumName: elisa.manageHeaderBar.album | ||
394 | albumArtUrl: elisa.manageHeaderBar.image | 393 | albumArtUrl: elisa.manageHeaderBar.image | ||
394 | fileUrl: elisa.manageHeaderBar.fileName | ||||
395 | } | ||||
396 | | ||||
397 | Layout.fillHeight: true | ||||
398 | | ||||
399 | Layout.minimumWidth: 0 | ||||
400 | Layout.maximumWidth: 0 | ||||
401 | Layout.preferredWidth: 0 | ||||
402 | Layout.leftMargin: elisaTheme.layoutHorizontalMargin * 1.5 | ||||
403 | | ||||
404 | visible: Layout.minimumWidth != 0 | ||||
395 | } | 405 | } | ||
396 | } | 406 | } | ||
397 | } | 407 | } | ||
398 | 408 | | |||
399 | states: [ | 409 | states: [ | ||
400 | State { | 410 | State { | ||
401 | name: 'playList' | 411 | name: 'playList' | ||
402 | when: listViews.currentIndex === 0 | 412 | when: listViews.currentIndex === 0 | ||
403 | PropertyChanges { | 413 | PropertyChanges { | ||
404 | target: mainContentView | 414 | target: mainContentView | ||
405 | Layout.minimumWidth: 0 | 415 | Layout.minimumWidth: 0 | ||
406 | Layout.maximumWidth: 0 | 416 | Layout.maximumWidth: 0 | ||
407 | Layout.preferredWidth: 0 | 417 | Layout.preferredWidth: 0 | ||
408 | } | 418 | } | ||
409 | PropertyChanges { | 419 | PropertyChanges { | ||
410 | target: firstViewSeparatorItem | 420 | target: firstViewSeparatorItem | ||
411 | Layout.minimumWidth: 0 | 421 | Layout.minimumWidth: 0 | ||
412 | Layout.maximumWidth: 0 | 422 | Layout.maximumWidth: 0 | ||
413 | Layout.preferredWidth: 0 | 423 | Layout.preferredWidth: 0 | ||
414 | } | 424 | } | ||
415 | PropertyChanges { | 425 | PropertyChanges { | ||
416 | target: playList | 426 | target: playList | ||
417 | Layout.minimumWidth: contentZone.width / 2 | 427 | Layout.minimumWidth: contentZone.width * 2 / 5 + elisaTheme.layoutHorizontalMargin | ||
418 | Layout.maximumWidth: contentZone.width / 2 | 428 | Layout.maximumWidth: contentZone.width * 2 / 5 + elisaTheme.layoutHorizontalMargin | ||
419 | Layout.preferredWidth: contentZone.width / 2 | 429 | Layout.preferredWidth: contentZone.width * 2 / 5 + elisaTheme.layoutHorizontalMargin | ||
420 | } | 430 | } | ||
421 | PropertyChanges { | 431 | PropertyChanges { | ||
422 | target: viewSeparatorItem | 432 | target: viewSeparatorItem | ||
423 | Layout.minimumWidth: 1 | 433 | Layout.minimumWidth: 1 | ||
424 | Layout.maximumWidth: 1 | 434 | Layout.maximumWidth: 1 | ||
425 | Layout.preferredWidth: 1 | 435 | Layout.preferredWidth: 1 | ||
426 | } | 436 | } | ||
427 | PropertyChanges { | 437 | PropertyChanges { | ||
428 | target: albumContext | 438 | target: albumContext | ||
429 | Layout.minimumWidth: contentZone.width / 2 | 439 | Layout.minimumWidth: contentZone.width * 3 / 5 - 2 - 3.5 * elisaTheme.layoutHorizontalMargin | ||
430 | Layout.maximumWidth: contentZone.width / 2 | 440 | Layout.maximumWidth: contentZone.width * 3 / 5 - 2 - 3.5 * elisaTheme.layoutHorizontalMargin | ||
431 | Layout.preferredWidth: contentZone.width / 2 | 441 | Layout.preferredWidth: contentZone.width * 3 / 5 - 2 - 3.5 * elisaTheme.layoutHorizontalMargin | ||
432 | } | 442 | } | ||
433 | }, | 443 | }, | ||
434 | State { | 444 | State { | ||
435 | name: "browsingViewsNoPlaylist" | 445 | name: "browsingViewsNoPlaylist" | ||
436 | when: listViews.currentIndex !== 0 && contentViewContainer.showPlaylist !== true | 446 | when: listViews.currentIndex !== 0 && contentViewContainer.showPlaylist !== true | ||
437 | extend: "browsingViews" | 447 | extend: "browsingViews" | ||
438 | PropertyChanges { | 448 | PropertyChanges { | ||
439 | target: mainContentView | 449 | target: mainContentView | ||
▲ Show 20 Lines • Show All 103 Lines • Show Last 20 Lines |