refactor: replace StatusIcon and StatusLoadingIndicator with StatusQ components
This commit is contained in:
parent
cbbbedcc79
commit
2db77fa31c
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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
|
||||
}
|
||||
}
|
||||
|
|
@ -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
|
||||
}
|
||||
}
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue