82 lines
1.9 KiB
QML
82 lines
1.9 KiB
QML
import QtQuick 2.13
|
|
import QtQuick.Controls 2.13
|
|
import QtQuick.Layouts 1.13
|
|
import "../../../imports"
|
|
import "../../../shared"
|
|
import "./Sections"
|
|
|
|
SplitView {
|
|
property var appSettings
|
|
property int contentMargin: 120
|
|
|
|
id: profileView
|
|
Layout.fillHeight: true
|
|
Layout.fillWidth: true
|
|
|
|
handle: SplitViewHandle {}
|
|
|
|
Component.onCompleted: this.restoreState(appSettings.profileSplitView)
|
|
Component.onDestruction: appSettings.profileSplitView = this.saveState()
|
|
|
|
LeftTab {
|
|
id: leftTab
|
|
SplitView.preferredWidth: Style.current.leftTabPrefferedSize
|
|
SplitView.minimumWidth: Style.current.leftTabMinimumWidth
|
|
SplitView.maximumWidth: Style.current.leftTabMaximumWidth
|
|
}
|
|
|
|
StackLayout {
|
|
id: profileContainer
|
|
anchors.top: parent.top
|
|
anchors.topMargin: 0
|
|
anchors.bottom: parent.bottom
|
|
anchors.bottomMargin: 0
|
|
anchors.right: parent.right
|
|
anchors.rightMargin: Style.current.padding
|
|
anchors.left: leftTab.right
|
|
anchors.leftMargin: Style.current.padding
|
|
currentIndex: leftTab.currentTab
|
|
|
|
// This list needs to match LeftTab/constants.js
|
|
// Would be better if we could make them match automatically
|
|
MyProfileContainer {
|
|
username: profileModel.profile.username
|
|
identicon: profileModel.profile.identicon
|
|
pubkey: profileModel.profile.pubKey
|
|
address: profileModel.profile.address
|
|
}
|
|
|
|
ContactsContainer {}
|
|
|
|
EnsContainer {}
|
|
|
|
PrivacyContainer {}
|
|
|
|
AppearanceContainer {}
|
|
|
|
SoundsContainer {}
|
|
|
|
LanguageContainer {}
|
|
|
|
NotificationsContainer {}
|
|
|
|
SyncContainer {}
|
|
|
|
DevicesContainer {}
|
|
|
|
AdvancedContainer {
|
|
appSettings: profileView.appSettings
|
|
}
|
|
|
|
HelpContainer {}
|
|
|
|
AboutContainer {}
|
|
}
|
|
}
|
|
|
|
/*##^##
|
|
Designer {
|
|
D{i:0;autoSize:true;height:480;width:640}
|
|
}
|
|
##^##*/
|