Lukáš Tinkl d9d6d90dc9 [Style] remove legacy Style and its themes
- legacy Style and ThemePalette removed
- moved and deduplicated font definitions into `Theme` (unrelated to a
color palette)
- `Style.current.foo` -> `Theme.foo`
- `Style.current.fooColor` -> `Theme.palette.fooColor`
- upgrade the imports to 5.15
- removed some mode dead components

Fixes #16514
2024-10-22 15:54:31 +02:00

121 lines
3.4 KiB
QML

import QtQuick 2.15
import QtQuick.Controls 2.15
import StatusQ.Core 0.1
import StatusQ.Core.Theme 0.1
import StatusQ.Controls 0.1
import StatusQ.Components 0.1
import StatusQ.Popups 0.1
import utils 1.0
import "../stores"
Item {
id: root
property AddAccountStore store
signal continueOnKeycard()
Column {
anchors.left: parent.left
anchors.right: parent.right
anchors.margins: Theme.padding
StatusListItem {
title: qsTr("Add new master key")
enabled: false
}
StatusListItem {
objectName: "AddAccountPopup-ImportUsingSeedPhrase"
title: qsTr("Import using seed phrase")
asset {
name: "key_pair_seed_phrase"
color: Theme.palette.primaryColor1
bgColor: Theme.palette.primaryColor3
}
components: [
StatusIcon {
icon: "tiny/chevron-right"
color: Theme.palette.baseColor1
}
]
onClicked: {
root.store.cleanSeedPhrase()
root.store.currentState.doPrimaryAction()
}
}
StatusListItem {
objectName: "AddAccountPopup-ImportPrivateKey"
title: qsTr("Import private key")
asset {
name: "objects"
color: Theme.palette.primaryColor1
bgColor: Theme.palette.primaryColor3
}
components: [
StatusIcon {
icon: "tiny/chevron-right"
color: Theme.palette.baseColor1
}
]
onClicked: {
root.store.cleanPrivateKey()
root.store.currentState.doSecondaryAction()
}
}
StatusListItem {
objectName: "AddAccountPopup-GenerateNewMasterKey"
title: qsTr("Generate new master key")
asset {
name: "objects"
color: Theme.palette.primaryColor1
bgColor: Theme.palette.primaryColor3
}
components: [
StatusIcon {
icon: "tiny/chevron-right"
color: Theme.palette.baseColor1
}
]
onClicked: {
root.store.resetStoreValues()
root.store.currentState.doTertiaryAction()
}
}
StatusModalDivider {
width: parent.width
}
StatusListItem {
title: qsTr("Use Keycard")
sensor.enabled: false
sensor.hoverEnabled: false
statusListItemIcon.enabled: false
statusListItemIcon.hoverEnabled: false
asset {
name: "keycard"
color: Theme.palette.primaryColor1
bgColor: Theme.palette.primaryColor3
}
components: [
StatusButton {
objectName: "AddAccountPopup-GoToKeycardSettings"
text: qsTr("Continue in Keycard settings")
onClicked: {
root.continueOnKeycard()
Global.changeAppSectionBySectionType(Constants.appSection.profile, Constants.settingsSubsection.keycard)
}
}
]
}
}
}