2023-03-20 12:29:05 +00:00
|
|
|
import QtQuick 2.14
|
|
|
|
import QtQuick.Controls 2.14
|
|
|
|
|
|
|
|
import StatusQ.Core 0.1
|
|
|
|
import StatusQ.Core.Utils 0.1 as CoreUtils
|
|
|
|
|
|
|
|
import mainui 1.0
|
|
|
|
import AppLayouts.Profile.panels 1.0
|
|
|
|
|
|
|
|
import utils 1.0
|
|
|
|
|
|
|
|
import Storybook 1.0
|
|
|
|
import Models 1.0
|
|
|
|
|
|
|
|
SplitView {
|
|
|
|
id: root
|
|
|
|
|
|
|
|
Logs { id: logs }
|
|
|
|
|
|
|
|
orientation: Qt.Vertical
|
|
|
|
|
|
|
|
Popups {
|
|
|
|
popupParent: root
|
|
|
|
rootStore: QtObject {}
|
|
|
|
}
|
|
|
|
|
|
|
|
readonly property string currentWallet: "0xcdc2ea3b6ba8fed3a3402f8db8b2fab53e7b7420"
|
|
|
|
|
|
|
|
ListModel {
|
|
|
|
id: accountsModel
|
|
|
|
ListElement {
|
|
|
|
name: "My Status Account"
|
|
|
|
address: "0xcdc2ea3b6ba8fed3a3402f8db8b2fab53e7b7420"
|
2023-05-22 15:55:47 +00:00
|
|
|
colorId: "primary"
|
2023-03-20 12:29:05 +00:00
|
|
|
emoji: "🇨🇿"
|
|
|
|
walletType: ""
|
|
|
|
}
|
|
|
|
ListElement {
|
|
|
|
name: "testing (no emoji, colored, seed)"
|
|
|
|
address: "0xcdc2ea3b6ba8fed3a3402f8db8b2fab53e7b7000"
|
2023-05-22 15:55:47 +00:00
|
|
|
colorId: ""
|
2023-03-20 12:29:05 +00:00
|
|
|
emoji: ""
|
|
|
|
walletType: "seed"
|
|
|
|
}
|
|
|
|
ListElement {
|
|
|
|
name: "My Bro's Account"
|
|
|
|
address: "0xcdc2ea3b6ba8fed3a3402f8db8b2fab53e7b7421"
|
2023-05-22 15:55:47 +00:00
|
|
|
colorId: "orange"
|
2023-03-20 12:29:05 +00:00
|
|
|
emoji: "🇸🇰"
|
|
|
|
walletType: "watch"
|
|
|
|
}
|
|
|
|
ListElement {
|
|
|
|
name: "Keycard"
|
|
|
|
address: "0xdeadbeef"
|
2023-05-22 15:55:47 +00:00
|
|
|
colorId: "turquoise"
|
2023-03-20 12:29:05 +00:00
|
|
|
emoji: ""
|
|
|
|
walletType: "key"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
StatusScrollView { // wrapped in a ScrollView on purpose; to simulate SettingsContentBase.qml
|
|
|
|
SplitView.fillWidth: true
|
|
|
|
SplitView.preferredHeight: 500
|
|
|
|
ProfileShowcaseAccountsPanel {
|
|
|
|
id: showcasePanel
|
|
|
|
width: 500
|
|
|
|
baseModel: accountsModel
|
|
|
|
currentWallet: root.currentWallet
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
LogsAndControlsPanel {
|
|
|
|
id: logsAndControlsPanel
|
|
|
|
|
|
|
|
SplitView.minimumHeight: 100
|
|
|
|
SplitView.preferredHeight: 200
|
|
|
|
|
|
|
|
logsView.logText: logs.logText
|
|
|
|
|
|
|
|
Button {
|
|
|
|
text: "Reset (clear settings)"
|
|
|
|
onClicked: showcasePanel.settings.reset()
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2023-07-31 12:21:14 +00:00
|
|
|
|
|
|
|
// category: Panels
|
2023-10-03 11:56:30 +00:00
|
|
|
|
|
|
|
// https://www.figma.com/file/idUoxN7OIW2Jpp3PMJ1Rl8/%E2%9A%99%EF%B8%8F-Settings-%7C-Desktop?node-id=14580-339549&t=RkXAEv3G6mp3EUvl-0
|
|
|
|
// https://www.figma.com/file/idUoxN7OIW2Jpp3PMJ1Rl8/%E2%9A%99%EF%B8%8F-Settings-%7C-Desktop?node-id=14729-233846&t=RkXAEv3G6mp3EUvl-0
|
|
|
|
// https://www.figma.com/file/idUoxN7OIW2Jpp3PMJ1Rl8/%E2%9A%99%EF%B8%8F-Settings-%7C-Desktop?node-id=14609-237740&t=RkXAEv3G6mp3EUvl-0
|