Permalink
Browse files

WallVideo: Update the 'cover' behavior

  • Loading branch information...
3unjee committed Feb 5, 2019
1 parent 853f288 commit f3b7c865426f4171bfd016923647573c3b159ae8
@@ -100,6 +100,8 @@

- WallVideo: Update the 'player back' item.

- WallVideo: Update the 'cover' behavior.

- ComponentTabBrowser, ComponentWallBookmarkTrack: Update the 'icon' source and caching.


@@ -119,7 +119,7 @@ void WDeclarativeImageBasePrivate::loadUrl()
{
if (file->isLoading())
{
if (asynchronous == false || pix.pixmap().isNull())
if (pix.pixmap().isNull())
{
pix.clear(q);

@@ -1985,14 +1985,10 @@ WBackendVlc::WBackendVlc() : WAbstractBackend(new WBackendVlcPrivate(this))

setStateLoad(StateLoadDefault);
#else
if (d->stateLoad == StateLoadResuming)
{
// FIXME Qt5: Waiting for the first frame.
QTimer::singleShot(64, this, SLOT(onUpdateState()));
// FIXME Qt5: Waiting for the first frame.
QTimer::singleShot(64, this, SLOT(onUpdateState()));

return true;
}
else setStateLoad(StateLoadDefault);
return true;
}
else setStateLoad(StateLoadDefault);
#endif
@@ -130,9 +130,6 @@ ComponentWall
itemImage.sourceDefault: parent.logo
//#END

itemImage.loadMode: (isCurrent) ? ImageBase.LoadVisible
: ImageBase.LoadAlways

itemImage.cache: false

itemImage.scaling: itemImage.isSourceDefault
@@ -1904,8 +1904,8 @@ Item
itemList_colorCurrentA = itemList_colorDefaultA;
itemList_colorCurrentB = itemList_colorDefaultB;

itemList_colorCurrentHoverA = itemList_colorHoverA;
itemList_colorCurrentHoverB = itemList_colorHoverB;
itemList_colorCurrentHoverA = "#484848";
itemList_colorCurrentHoverB = itemList_colorCurrentHoverA;

itemList_colorBorder = "#202020";
itemList_colorBorderDefault = border_color;
@@ -561,7 +561,7 @@ WallBookmarkTrack

z: player.z

visible: (player.isResuming || (player.visible && pAudio))
visible: (player.isStarting || player.isResuming || (player.visible && pAudio))

gradient: Gradient
{
@@ -602,7 +602,7 @@ WallBookmarkTrack
}
else return playerTab.cover;
}
else return playerTab.videoShot;
else return playerTab.coverShot;
}

sourceDefault: logo
@@ -677,16 +677,15 @@ WallBookmarkTrack

sourceDefault: logo

loadMode: (pExpanded) ? ImageBase.LoadVisible
: ImageBase.LoadAlways

fillMode: Image.PreserveAspectFit

asynchronous: wall.asynchronous

cache: false

scaling: isSourceDefault

onVisibleChanged: if (visible) loadNow()
}
}

0 comments on commit f3b7c86

Please sign in to comment.