Commit 14c26605 authored by Your Name's avatar Your Name

Loop animations. Remove user conf files. Fix texture extension logic.

parent fe718255
This diff is collapsed.
......@@ -18,7 +18,7 @@ Item {
// Battery liquid rotation
property real __bRotation: Math.max(-maxLiquidRotation, Math.min(root.rotation+90, maxLiquidRotation))
property string textureExtension: Qt.application.version === "5.6" ? ".png" : ".ktx"
property string textureExtension: (Qt.application.version % 5) * 10 < 11 ? ".png" : ".ktx"
width: batteryImage.width
height: batteryImage.height / 1.8
......
......@@ -11,8 +11,8 @@ Window {
id: mainView
visible: true
property int pixelSize: mainView.height / 8
property string textureExtension: Qt.application.version === "5.6" || "5.9" ? ".png" : ".ktx"
property int pixelSize: height / 8
property string textureExtension: (Qt.application.version % 5) * 10 < 11 ? ".png" : ".ktx"
function fontSource()
{
......@@ -62,7 +62,12 @@ Window {
source: background
radius: 64
Behavior on radius {
NumberAnimation { duration: 30000 }
NumberAnimation {
from:0
duration: 30000
loops: Animation.Infinite
}
}
}
HueSaturation {
......@@ -71,11 +76,15 @@ Window {
hue: -1.0
saturation: 0.5
lightness: -0.1
NumberAnimation on hue {
from: -1.0
to: 1
duration: 30000
}
SequentialAnimation on hue {
running: true
loops: Animation.Infinite
NumberAnimation {
from: -1.0
to: 1
duration: 30000
}
}
}
......@@ -89,17 +98,26 @@ Window {
renderType: Text.QtRendering
opacity: 0.1
ColorAnimation on color {
from: "black"
to: "#42f450"
duration: 30000
}
OpacityAnimator on opacity {
from: 0.1
to: 0.5
SequentialAnimation on color {
running: true
duration: 30000
}
loops: Animation.Infinite
ColorAnimation {
from: "black"
to: "#42f450"
duration: 30000
}
}
SequentialAnimation on opacity {
running: true
loops: Animation.Infinite
OpacityAnimator {
from: 0.1
to: 0.5
running: true
duration: 30000
}
}
}
Text {
......@@ -147,8 +165,8 @@ Window {
// Main visiable elements
Column {
anchors.verticalCenter: parent.verticalCenter
anchors.horizontalCenter: parent.horizontalCenter
spacing: 90
Row{
QUItBattery {
......
This file can be edited to change the style of the application
; See Styling Qt Quick Controls 2 in the documentation for details:
; http://doc.qt.io/qt-5/qtquickcontrols2-styles.html
[Controls]
Style=Default
[Universal]
Theme=Light
;Accent=Steel
[Material]
Theme=Light
;Accent=BlueGrey
;Primary=BlueGray
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment