10 changed files with 157 additions and 46 deletions
After Width: | Height: | Size: 11 KiB |
@ -0,0 +1,12 @@ |
|||
<?xml version="1.0" encoding="utf-8"?> |
|||
<layer-list xmlns:android="http://schemas.android.com/apk/res/android"> |
|||
<item> |
|||
<shape android:shape="rectangle" > |
|||
<solid android:color="#FFFFFFFF"/> |
|||
</shape> |
|||
</item> |
|||
<item> |
|||
<bitmap android:src="@drawable/cwtch_logo" |
|||
android:gravity="center" /> |
|||
</item> |
|||
</layer-list> |
@ -0,0 +1,6 @@ |
|||
<?xml version="1.0" encoding="utf-8"?> |
|||
<resources> |
|||
<style name="AppTheme" parent="@android:style/Theme.DeviceDefault.Light.NoActionBar"> |
|||
<item name="android:windowBackground">@drawable/splash</item> |
|||
</style> |
|||
</resources> |
After Width: | Height: | Size: 11 KiB |
@ -0,0 +1,30 @@ |
|||
import QtQuick 2.7 |
|||
import QtQuick.Controls 2.4 |
|||
import QtQuick.Controls.Material 2.0 |
|||
import QtQuick.Layouts 1.3 |
|||
import QtQuick.Window 2.11 |
|||
import QtQuick.Controls 1.4 |
|||
import QtQuick.Controls.Styles 1.4 |
|||
import "../styles" |
|||
|
|||
Item { |
|||
Image { |
|||
id: splashImage |
|||
anchors.horizontalCenter: parent.horizontalCenter |
|||
anchors.verticalCenter: parent.verticalCenter |
|||
|
|||
source: "qrc:/qml/images/cwtch_logo.png" |
|||
} |
|||
|
|||
ProgressBar { |
|||
anchors.horizontalCenter: parent.horizontalCenter |
|||
anchors.top: splashImage.bottom |
|||
anchors.topMargin: 10 |
|||
|
|||
indeterminate: true |
|||
|
|||
style: ProgressBarStyle { |
|||
progress: CwtchProgress {} |
|||
} |
|||
} |
|||
} |
@ -0,0 +1,35 @@ |
|||
import QtQuick 2.7 |
|||
import QtQuick.Controls 2.4 |
|||
import QtQuick.Controls.Material 2.0 |
|||
import QtQuick.Layouts 1.3 |
|||
import QtQuick.Window 2.11 |
|||
import QtQuick.Controls 1.4 |
|||
import QtQuick.Controls.Styles 1.4 |
|||
|
|||
|
|||
Rectangle { |
|||
border.color: "#D2C0DD" |
|||
color: "red" |
|||
|
|||
// Indeterminate animation by animating alternating stripes: |
|||
Item { |
|||
anchors.fill: parent |
|||
anchors.margins: 1 |
|||
visible: control.indeterminate |
|||
clip: true |
|||
Row { |
|||
Repeater { |
|||
Rectangle { |
|||
color: index % 2 ? "#D2C0DD" : "#b29dbe" |
|||
width: 20 ; height: control.height |
|||
} |
|||
model: control.width / 20 + 2 |
|||
} |
|||
XAnimator on x { |
|||
from: 0 ; to: -40 |
|||
loops: Animation.Infinite |
|||
running: parentStack.currentIndex == 0 |
|||
} |
|||
} |
|||
} |
|||
} |
Reference in new issue