mirror of
https://github.com/status-im/status-desktop.git
synced 2025-01-09 22:06:25 +00:00
59631cad8f
Added currency picker into `LanguageView.qml`. Added `category` and `imageSource` property to existing `CurrenciesStore.qml`. Renamed `code` to `shortName`. Added `currenciesModel` property to `WalletStore.qml`. Added wallet store into `LanguageView.qml` in order to link to the currencies model. Added some tokens in the currencies store. Made wallet and any currency related UI code that uses current currency use the new Display Currency value. Removed no longer used wallet/settings related files. Closes #5385
136 lines
3.6 KiB
QML
136 lines
3.6 KiB
QML
import QtQuick 2.13
|
|
import QtQuick.Controls 2.13
|
|
import QtQuick.Layouts 1.13
|
|
|
|
import utils 1.0
|
|
import shared 1.0
|
|
|
|
import "stores"
|
|
import "popups"
|
|
import "views"
|
|
|
|
import StatusQ.Layout 0.1
|
|
|
|
StatusAppTwoPanelLayout {
|
|
id: profileView
|
|
|
|
property ProfileSectionStore store
|
|
property var globalStore
|
|
property var systemPalette
|
|
property var emojiPopup
|
|
|
|
Component.onCompleted: {
|
|
Global.privacyModuleInst = store.privacyStore.privacyModule
|
|
}
|
|
|
|
QtObject {
|
|
id: _internal
|
|
readonly property int contentMaxWidth: 624
|
|
readonly property int contentMinWidth: 450
|
|
property int profileContentWidth: Math.max(contentMinWidth, Math.min(profileContainer.width * 0.8, contentMaxWidth))
|
|
}
|
|
|
|
leftPanel: LeftTabView {
|
|
id: leftTab
|
|
store: profileView.store
|
|
anchors.fill: parent
|
|
}
|
|
|
|
rightPanel: StackLayout {
|
|
id: profileContainer
|
|
|
|
anchors.fill: parent
|
|
|
|
currentIndex: Global.settingsSubsection
|
|
|
|
onCurrentIndexChanged: {
|
|
if(visibleChildren[0] === ensContainer){
|
|
ensContainer.goToStart();
|
|
}
|
|
}
|
|
|
|
MyProfileView {
|
|
Layout.fillWidth: true
|
|
Layout.fillHeight: true
|
|
|
|
profileStore: profileView.store.profileStore
|
|
profileContentWidth: _internal.profileContentWidth
|
|
}
|
|
|
|
ContactsView {
|
|
contactsStore: profileView.store.contactsStore
|
|
profileContentWidth: _internal.profileContentWidth
|
|
}
|
|
|
|
EnsView {
|
|
id: ensContainer
|
|
ensUsernamesStore: profileView.store.ensUsernamesStore
|
|
contactsStore: profileView.store.contactsStore
|
|
stickersStore: profileView.store.stickersStore
|
|
profileContentWidth: _internal.profileContentWidth
|
|
}
|
|
|
|
MessagingView {
|
|
id: messagingView
|
|
messagingStore: profileView.store.messagingStore
|
|
profileContentWidth: _internal.profileContentWidth
|
|
}
|
|
|
|
WalletView {
|
|
id: walletView
|
|
walletStore: profileView.store.walletStore
|
|
emojiPopup: profileView.emojiPopup
|
|
}
|
|
|
|
PrivacyView {
|
|
privacyStore: profileView.store.privacyStore
|
|
profileContentWidth: _internal.profileContentWidth
|
|
}
|
|
|
|
AppearanceView {
|
|
appearanceStore: profileView.store.appearanceStore
|
|
profileContentWidth: _internal.profileContentWidth
|
|
systemPalette: profileView.systemPalette
|
|
}
|
|
|
|
SoundsView {
|
|
profileContentWidth: _internal.profileContentWidth
|
|
}
|
|
|
|
LanguageView {
|
|
languageStore: profileView.store.languageStore
|
|
currencyStore: profileView.store.walletStore.currencyStore
|
|
profileContentWidth: _internal.profileContentWidth
|
|
}
|
|
|
|
NotificationsView {
|
|
notificationsStore: profileView.store.notificationsStore
|
|
profileContentWidth: _internal.profileContentWidth
|
|
}
|
|
|
|
DevicesView {
|
|
devicesStore: profileView.store.devicesStore
|
|
}
|
|
|
|
BrowserView {
|
|
store: profileView.store
|
|
profileContentWidth: _internal.profileContentWidth
|
|
}
|
|
|
|
AdvancedView {
|
|
advancedStore: profileView.store.advancedStore
|
|
profileContentWidth: _internal.profileContentWidth
|
|
}
|
|
|
|
HelpView {
|
|
profileContentWidth: _internal.profileContentWidth
|
|
}
|
|
|
|
AboutView {
|
|
store: profileView.store
|
|
globalStore: profileView.globalStore
|
|
profileContentWidth: _internal.profileContentWidth
|
|
}
|
|
}
|
|
}
|