refactor: replace StatusIcon and StatusLoadingIndicator with StatusQ components

This commit is contained in:
Pascal Precht 2021-10-26 16:21:08 +02:00 committed by Iuri Matias
parent cbbbedcc79
commit 2db77fa31c
17 changed files with 26 additions and 81 deletions

View File

@ -2,14 +2,12 @@ import QtQuick 2.1
import QtQuick.Controls 2.13
import QtGraphicalEffects 1.13
import StatusQ.Controls 0.1
import StatusQ.Components 0.1
import utils 1.0
import StatusQ.Controls 0.1
import "../../../../shared"
import "../../../../shared/panels"
import "../../../../shared/status/core"
import "../../../../shared/status"
Rectangle {
property bool downloadComplete: false

View File

@ -1,7 +1,8 @@
import QtQuick 2.13
import "../../../../../shared"
import StatusQ.Components 0.1
import "../../../../../shared/panels"
import "../../../../../shared/status/core"
import utils 1.0

View File

@ -1,9 +1,10 @@
import QtQuick 2.13
import "../../../../shared"
import StatusQ.Components 0.1
import "../../../../shared/panels"
import "../../../../shared/controls"
import "../../../../shared/status"
import "../../../../shared/status/core"
import utils 1.0
import "../panels"

View File

@ -2,15 +2,13 @@ import QtQuick 2.13
import QtQuick.Controls 2.13
import QtQuick.Layouts 1.12
import utils 1.0
import "../../../../shared"
import StatusQ.Core 0.1
import StatusQ.Popups 0.1
import StatusQ.Controls 0.1
import StatusQ.Core.Theme 0.1
import utils 1.0
StatusModal {
id: root
width: 400

View File

@ -2,13 +2,13 @@ import QtQuick 2.13
import QtQuick.Controls 2.13
import QtQuick.Layouts 1.13
import StatusQ.Components 0.1
import utils 1.0
import "../../../../shared"
import "../../../../shared/popups"
import "../../../../shared/panels"
import "../../../../shared/controls"
import "../../../../shared/views"
import "../../../../shared/status/core"
import "../../../../shared/status"
import "../panels"

View File

@ -4,7 +4,6 @@ import QtQuick.Layouts 1.13
import QtGraphicalEffects 1.13
import utils 1.0
import "../../../../shared"
import "../../../../shared/panels"
import "../../../../shared/status"
import "../../Onboarding/shared" as OnboardingComponents

View File

@ -1,11 +1,11 @@
import QtQuick 2.13
import QtGraphicalEffects 1.13
import StatusQ.Components 0.1
import utils 1.0
import "../../../../shared"
import "../../../../shared/panels"
import "../../../../shared/status/core"
import "../../../../shared/status"
Rectangle {
property url collectibleIconSource: "CryptoKitties"

View File

@ -2,7 +2,7 @@ import QtQuick 2.14
import QtQuick.Controls 2.14
import utils 1.0
import "../../../../shared"
import "../../../../shared/panels"
import StatusQ.Popups 0.1

View File

@ -5,7 +5,6 @@ import StatusQ.Popups 0.1
import StatusQ.Controls 0.1
import StatusQ.Core.Theme 0.1
import "../../../../shared"
import "../../../../shared/panels"
StatusModal {

View File

@ -2,10 +2,10 @@ import QtQuick 2.13
import QtQuick.Controls 2.13
import QtGraphicalEffects 1.13
import StatusQ.Components 0.1
import utils 1.0
import "../../../../shared"
import "../../../../shared/panels"
import "../../../../shared/status/core"
import "../popups"
import "collectibles"

View File

@ -4,7 +4,6 @@ import QtQuick.Layouts 1.13
import utils 1.0
import "../../../../shared"
import StatusQ.Controls 0.1
import StatusQ.Components 0.1

View File

@ -1,10 +1,9 @@
import QtQuick 2.3
import QtGraphicalEffects 1.13
import StatusQ.Components 0.1
import utils 1.0
import "../status/core"
import "../status"
import "../"
import "./"
Rectangle {

View File

@ -3,10 +3,10 @@ import QtQuick.Controls 2.13
import QtGraphicalEffects 1.13
import QtQml 2.14
import StatusQ.Components 0.1
import utils 1.0
import "../../shared"
import "../../shared/panels"
import "./core"
RoundButton {
property string type: "primary"

View File

@ -3,12 +3,13 @@ import QtQuick.Controls 2.13
import QtQuick.Layouts 1.3
import QtGraphicalEffects 1.0
import StatusQ.Components 0.1
import utils 1.0
import StatusQ.Controls 0.1 as StatusQControls
import "../../shared/panels"
import "../../shared/status/core"
import "../../shared/status"
//TODO improve this!
import "../../app/AppLayouts/Chat/stores"

View File

@ -1,32 +0,0 @@
import QtQuick 2.13
import QtGraphicalEffects 1.13
import utils 1.0
Image {
property string icon: ""
property color color
id: root
width: 24
height: 24
sourceSize.width: width
sourceSize.height: height
fillMode: Image.PreserveAspectFit
onIconChanged: {
if (icon !== "") {
source = Style.icon(icon);
}
}
ColorOverlay {
visible: root.color !== undefined
anchors.fill: root
source: root
color: root.color
antialiasing: true
smooth: true
rotation: root.rotation
}
}

View File

@ -1,17 +0,0 @@
import QtQuick 2.13
import "."
StatusIcon {
id: root
icon: "loading"
height: 17
width: 17
RotationAnimator {
target: root;
from: 0;
to: 360;
duration: 1200
running: true
loops: Animation.Infinite
}
}

View File

@ -3,9 +3,8 @@ import QtQuick.Controls 2.13
import QtQuick.Layouts 1.13
import QtGraphicalEffects 1.13
import StatusQ.Components 0.1
import utils 1.0
import "../status/core"
import "../status"
Item {
id: root