Page MenuHomePhorge

No OneTemporary

Size
1 KB
Referenced Files
None
Subscribers
None
diff --git a/src/contents/ui/MainPage.qml b/src/contents/ui/MainPage.qml
index d2c1919..362953f 100644
--- a/src/contents/ui/MainPage.qml
+++ b/src/contents/ui/MainPage.qml
@@ -1,58 +1,57 @@
/*
* This file is part of kazv.
* SPDX-FileCopyrightText: 2020-2023 tusooa <tusooa@kazv.moe>
* SPDX-License-Identifier: AGPL-3.0-or-later
*/
import QtQuick 2.2
-import QtQuick.Layouts 1.15
+import QtQuick.Layouts 6.6
import QtQuick.Controls 2.15
import moe.kazv.mxc.kazv 0.0 as MK
import org.kde.kirigami 2.13 as Kirigami
import '.' as Kazv
Kirigami.ScrollablePage {
title: l10n.get('main-page-title', { userId: matrixSdk.userId })
property var currentTagId: ''
onCurrentTagIdChanged: sdkVars.roomList.setTagId(currentTagId)
header: ColumnLayout {
+ spacing: 0
+
TextField {
text: sdkVars.roomList.filter
onTextChanged: sdkVars.roomList.filter = text
placeholderText: l10n.get('main-page-room-filter-prompt')
Layout.fillWidth: true
}
- RowLayout {
- ToolButton {
+ TabBar {
+ Layout.fillWidth: true
+ TabButton {
icon.name: 'clock'
- Layout.fillWidth: true
text: l10n.get('main-page-recent-tab-title')
onClicked: currentTagId = ''
- display: AbstractButton.TextUnderIcon
checkable: true
checked: currentTagId === ''
}
- ToolButton {
+ TabButton {
icon.name: 'non-starred-symbolic'
- Layout.fillWidth: true
text: l10n.get('main-page-favourites-tab-title')
onClicked: currentTagId = 'm.favourite'
- display: AbstractButton.TextUnderIcon
checkable: true
checked: currentTagId === 'm.favourite'
}
}
}
Kazv.RoomListView {
roomList: sdkVars.roomList
anchors.fill: parent
}
}

File Metadata

Mime Type
text/x-diff
Expires
Sun, Jan 19, 12:54 PM (8 h, 10 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
55181
Default Alt Text
(1 KB)

Event Timeline