5e15cc49f6
This commit moves the original `AccountSelector` into StatusQ and makes it a `StatusAccountSelector`. The API has been preserved. The only difference is that it's internally relying completely on `StatusQ.Core.Theme` and `StatusQ.Controls` components instead. Usage: ```qml import StatusQ.Controls 0.1 StatusAccountSelector { accounts: ListModel { ListElement { name: "Pascal" address: "0x1234567891011" iconColor: "red" balance: "0" walletType: "generated" assets: [] fiatBalance: "1199.02" } ListElement { name: "Boris" address: "0x123" iconColor: "red" balance: "0" walletType: "generated" assets: [] fiatBalance: "0" } ListElement { name: "Alexandra" address: "0x123" iconColor: "yellow" balance: "0" walletType: "generated" assets: [] fiatBalance: "0" } ListElement { name: "Khushboo" address: "0x123" iconColor: "blue" balance: "0" walletType: "generated" assets: [] fiatBalance: "0" } } } ``` Closes #435
56 lines
1.4 KiB
QML
56 lines
1.4 KiB
QML
import QtQuick 2.14
|
|
import QtQuick.Controls 2.14
|
|
import QtQuick.Layouts 1.14
|
|
|
|
import StatusQ.Core 0.1
|
|
import StatusQ.Core.Theme 0.1
|
|
import StatusQ.Controls 0.1
|
|
import StatusQ.Popups 0.1
|
|
|
|
import Sandbox 0.1
|
|
|
|
Column {
|
|
spacing: 8
|
|
|
|
StatusAccountSelector {
|
|
accounts: ListModel {
|
|
ListElement {
|
|
name: "Pascal"
|
|
address: "0x1234567891011"
|
|
iconColor: "red"
|
|
balance: "0"
|
|
walletType: "generated"
|
|
assets: []
|
|
fiatBalance: "1199.02"
|
|
}
|
|
ListElement {
|
|
name: "Boris"
|
|
address: "0x123"
|
|
iconColor: "red"
|
|
balance: "0"
|
|
walletType: "generated"
|
|
assets: []
|
|
fiatBalance: "0"
|
|
}
|
|
ListElement {
|
|
name: "Alexandra"
|
|
address: "0x123"
|
|
iconColor: "yellow"
|
|
balance: "0"
|
|
walletType: "generated"
|
|
assets: []
|
|
fiatBalance: "0"
|
|
}
|
|
ListElement {
|
|
name: "Khushboo"
|
|
address: "0x123"
|
|
iconColor: "blue"
|
|
balance: "0"
|
|
walletType: "generated"
|
|
assets: []
|
|
fiatBalance: "0"
|
|
}
|
|
}
|
|
}
|
|
}
|