mirror of
https://github.com/HenkKalkwater/harbour-sailfin.git
synced 2024-11-15 05:55:18 +00:00
Chris Josten
53b3eac213
Features so far: - Login is working, both on back-end and GUI-wise - Saving and reusing login tokens is working - The home page is mostly functional - Show details can be received and displayed in a basic manner Following features are taken into account, but have not been fully implemented: - Support for multiple accounts/servers - Securely saving login tokens
30 lines
712 B
QML
30 lines
712 B
QML
import QtQuick 2.6
|
|
import Sailfish.Silica 1.0
|
|
|
|
Image {
|
|
property string fallbackImage
|
|
property bool usingFallbackImage
|
|
|
|
BusyIndicator {
|
|
anchors.centerIn: parent
|
|
running: parent.status == Image.Loading
|
|
}
|
|
|
|
Rectangle {
|
|
id: fallbackBackground
|
|
anchors.fill: parent
|
|
gradient: Gradient {
|
|
GradientStop { position: 0.0; color: Theme.highlightColor; }
|
|
GradientStop { position: 1.0; color: Theme.highlightDimmerColor; }
|
|
}
|
|
visible: parent.status == Image.Error
|
|
}
|
|
|
|
Image {
|
|
id: fallbackImageItem
|
|
anchors.centerIn: parent
|
|
visible: parent.status == Image.Error
|
|
source: fallbackImage ? fallbackImage : "image://theme/icon-m-question"
|
|
}
|
|
}
|