2021-02-17 16:31:59 +00:00
|
|
|
import QtQuick 2.3
|
|
|
|
import QtQuick.Controls 2.3
|
|
|
|
import QtQuick.Layouts 1.3
|
|
|
|
import Qt.labs.platform 1.1
|
|
|
|
import "../../../../imports"
|
|
|
|
import "../../../../shared"
|
|
|
|
import "../../../../shared/status"
|
|
|
|
|
|
|
|
Column {
|
|
|
|
spacing: 12
|
|
|
|
width: parent.width
|
|
|
|
height: childrenRect.height
|
|
|
|
|
|
|
|
Rectangle {
|
|
|
|
width: 40
|
|
|
|
height: 1
|
2021-04-13 15:24:07 +00:00
|
|
|
color: Style.current.appBarDividerColor
|
2021-02-17 16:31:59 +00:00
|
|
|
anchors.horizontalCenter: parent.horizontalCenter
|
|
|
|
}
|
|
|
|
|
|
|
|
StatusIconTabButton {
|
|
|
|
id: walletBtn
|
|
|
|
enabled: isExperimental === "1" || appSettings.walletEnabled
|
|
|
|
icon.name: "wallet"
|
2021-04-20 16:44:26 +00:00
|
|
|
icon.width: 20
|
|
|
|
icon.height: 20
|
2021-02-17 16:31:59 +00:00
|
|
|
section: Constants.wallet
|
|
|
|
}
|
|
|
|
|
|
|
|
StatusIconTabButton {
|
|
|
|
id: browserBtn
|
|
|
|
enabled: isExperimental === "1" || appSettings.browserEnabled
|
|
|
|
icon.name: "compass"
|
2021-04-20 16:44:26 +00:00
|
|
|
icon.width: 22
|
|
|
|
icon.height: 22
|
2021-02-17 16:31:59 +00:00
|
|
|
section: Constants.browser
|
|
|
|
}
|
|
|
|
|
|
|
|
StatusIconTabButton {
|
|
|
|
id: timelineBtn
|
|
|
|
enabled: isExperimental === "1" || appSettings.timelineEnabled
|
|
|
|
icon.name: "timeline"
|
2021-04-20 16:44:26 +00:00
|
|
|
icon.width: 22
|
|
|
|
icon.height: 22
|
2021-02-17 16:31:59 +00:00
|
|
|
section: Constants.timeline
|
|
|
|
}
|
|
|
|
|
|
|
|
StatusIconTabButton {
|
|
|
|
id: profileBtn
|
|
|
|
icon.name: "profile"
|
2021-04-20 16:44:26 +00:00
|
|
|
icon.width: 22
|
|
|
|
icon.height: 22
|
2021-02-17 16:31:59 +00:00
|
|
|
section: Constants.profile
|
|
|
|
|
|
|
|
Rectangle {
|
|
|
|
id: profileBadge
|
|
|
|
visible: !profileModel.mnemonic.isBackedUp && sLayout.children[sLayout.currentIndex] !== profileLayoutContainer
|
|
|
|
anchors.top: parent.top
|
|
|
|
anchors.right: parent.right
|
|
|
|
anchors.rightMargin: 4
|
|
|
|
anchors.topMargin: 5
|
|
|
|
radius: height / 2
|
|
|
|
color: Style.current.blue
|
2021-04-13 10:17:32 +00:00
|
|
|
border.color: profileBtn.hovered ? Style.current.secondaryBackground : Style.current.mainMenuBackground
|
2021-02-17 16:31:59 +00:00
|
|
|
border.width: 2
|
|
|
|
width: 14
|
|
|
|
height: 14
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
StatusIconTabButton {
|
|
|
|
id: nodeBtn
|
|
|
|
enabled: isExperimental === "1" && appSettings.nodeManagementEnabled
|
|
|
|
icon.name: "node"
|
|
|
|
section: Constants.node
|
|
|
|
}
|
|
|
|
|
|
|
|
StatusIconTabButton {
|
|
|
|
id: uiComponentBtn
|
|
|
|
enabled: isExperimental === "1"
|
|
|
|
icon.name: "node"
|
|
|
|
section: Constants.ui
|
|
|
|
}
|
|
|
|
}
|