ui-improvements

This commit is contained in:
molan-git 2020-06-10 11:44:58 +02:00
parent 7eaad1b867
commit 5dad14eafb
6 changed files with 15 additions and 10 deletions

View file

@ -162,5 +162,5 @@ Component {
}
}
}
}

View file

@ -319,6 +319,7 @@ FullscreenContentPage {
FileDownloader.downloadFile(mediaURL, filename[filename.length-1]);
}
}
VerticalScrollDecorator { flickable: imageFlickable }
}

View file

@ -12,7 +12,7 @@ Item {
property string bg: ""
width: parent.width
height: icon.height + Theme.paddingLarge*2
height: avatarImage.height + Theme.paddingLarge*2
Rectangle {
id: bgImage
@ -33,10 +33,10 @@ Item {
}
Image {
id: icon
id: avatarImage
asynchronous: true
source:
if (icon.status === Image.Error)
if (avatarImage.status === Image.Error)
source = "../../images/icon-l-profile.svg?" + (pressed
? Theme.highlightColor
: Theme.primaryColor)
@ -69,7 +69,7 @@ Item {
Column {
anchors {
left: icon.right
left: avatarImage.right
leftMargin: Theme.paddingLarge
right: parent.right
rightMargin: Theme.paddingLarge

View file

@ -3,10 +3,11 @@ import Sailfish.Silica 1.0
FullscreenContentPage {
id: profileImage
allowedOrientations: Orientation.All
property string image: ""
allowedOrientations: Orientation.All
Image {
source: image
fillMode: Image.PreserveAspectFit

View file

@ -4,11 +4,11 @@ import QtGraphicalEffects 1.0
BackgroundItem {
id: delegate
signal send (string notice)
signal navigateTo(string link)
id: delegate
//property string text: "0"
width: parent.width
height: lblText.paintedHeight + (lblText.text.length > 0 ? Theme.paddingLarge : 0 )+ lblName.paintedHeight + (type.length ? Theme.paddingLarge + iconRT.height : 0) + Theme.paddingLarge

View file

@ -22,7 +22,10 @@ BackgroundItem {
width: parent.width
height: parent.height
opacity: 0.3
color: Theme.highlightBackgroundColor
gradient: Gradient {
GradientStop { position: -1.5; color: "transparent" }
GradientStop { position: 0.6; color: Theme.highlightBackgroundColor }
}
}
Rectangle {