Files
pay/guis/mobile/MainView.qml
T

83 lines
2.6 KiB
QML
Raw Permalink Normal View History

2022-11-15 11:38:28 +01:00
/*
* This file is part of the Flowee project
2025-02-25 19:38:39 +01:00
* Copyright (C) 2022-2025 Tom Zander <tom@flowee.org>
2022-11-15 11:38:28 +01:00
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
2022-11-26 10:44:52 +01:00
import QtQuick
import "../Flowee" as Flowee
2022-11-15 11:38:28 +01:00
MainViewBase {
id: root
2025-06-24 22:19:37 +02:00
showFilterIcon: activityTab.showFilterIcon && currentIndex === 0
showAllWalletsOption: activityTab.showAllWalletsOption && currentIndex === 0
2024-10-22 00:03:58 +02:00
2025-06-24 22:19:37 +02:00
ActivityTab {
id: activityTab
2022-11-15 11:38:28 +01:00
anchors.fill: parent
2025-07-12 16:56:08 +02:00
property bool showHeaderGradient: false
allWalletsEntrySelected: root.allWalletsEntrySelected
2022-12-19 21:01:07 +01:00
PopupOverlay { id: popupOverlay }
2024-10-22 00:03:58 +02:00
Component {
id: filterPopup
FilterPopup { }
}
2022-11-15 11:38:28 +01:00
}
2025-06-24 22:19:37 +02:00
2022-11-26 18:01:11 +01:00
SendTransactionsTab {
2022-11-15 11:38:28 +01:00
anchors.fill: parent
}
ReceiveTab {
2022-11-15 11:38:28 +01:00
anchors.fill: parent
anchors.leftMargin: 10
anchors.rightMargin: 10
2022-11-15 11:38:28 +01:00
}
2024-12-21 13:04:19 +01:00
FocusScope {
id: apps
2026-03-14 21:14:42 +01:00
property string icon: "qrc:/exploretab" + (Pay.useDarkSkin ? "-light.svg" : ".svg")
2025-02-25 19:38:39 +01:00
property string title: qsTr("Explore")
property int buttonId: 73573
2024-12-21 13:04:19 +01:00
anchors.fill: parent
anchors.leftMargin: 10
anchors.rightMargin: 10
Column {
width: parent.width
2024-12-22 17:23:27 +01:00
Repeater {
model: ModuleManager.exploreTabItems
2024-12-21 13:04:19 +01:00
TextButton {
2024-12-22 17:23:27 +01:00
text: modelData.text
subtext: modelData.subtext
iconSource: modelData.icon
2024-12-23 18:51:55 +01:00
pageButton: true
2024-12-22 17:23:27 +01:00
onClicked: thePile.push(modelData.qml)
2024-12-21 13:04:19 +01:00
}
}
2024-12-22 17:23:27 +01:00
TextButton {
width: parent.width
text: qsTr("Find More")
2026-03-14 21:14:42 +01:00
iconSource: "qrc:/more" + (Pay.useDarkSkin ? "-light" : "") + ".svg"
2024-12-23 18:51:55 +01:00
pageButton: true
2025-02-25 19:38:39 +01:00
buttonId: 95231
2024-12-22 17:23:27 +01:00
onClicked: thePile.push("ExploreModules.qml")
}
2024-12-21 13:04:19 +01:00
}
}
2024-10-22 00:03:58 +02:00
// only visible on AccountHistory for now.
onFilterIconClicked: popupOverlay.open(filterPopup, null)
2022-11-15 11:38:28 +01:00
}