mirror of
https://github.com/HenkKalkwater/harbour-sailfin.git
synced 2025-09-05 18:22:46 +00:00
Minor UI tweaks
This commit is contained in:
parent
382af84846
commit
eda4994aac
9 changed files with 139 additions and 22 deletions
|
@ -25,13 +25,14 @@ Column {
|
|||
property real imageAspectRatio: 1.0
|
||||
property real playProgress: 0.0
|
||||
property bool favourited: false
|
||||
property alias imageBlurhash: playImage.blurhash
|
||||
signal playPressed(bool startFromBeginning)
|
||||
spacing: Theme.paddingLarge
|
||||
|
||||
BackgroundItem {
|
||||
width: parent.width
|
||||
height: width / imageAspectRatio
|
||||
HighlightImage {
|
||||
RemoteImage {
|
||||
id: playImage
|
||||
anchors.fill: parent
|
||||
fillMode: Image.PreserveAspectCrop
|
||||
|
|
|
@ -23,7 +23,10 @@ import Sailfish.Silica 1.0
|
|||
import nl.netsoj.chris.blurhash 1.0
|
||||
|
||||
/**
|
||||
* An image for "remote" images (loaded over e.g. http), with a spinner and a fallback image
|
||||
* An image for "remote" images (loaded over e.g. http), with a spinner and a fallback image.
|
||||
*
|
||||
* If placed in a page, it will delay the loading of the image until the transition is over,
|
||||
* displaying a simpler blurhash instead, to reduce the stutter during the transition
|
||||
*/
|
||||
SilicaItem {
|
||||
id: root
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue