Files
neochat/imports/NeoChat/Page/SettingsPage.qml
Carl Schwan 5d221b995a Add an unified room list view
This is off by default and can be enabled in the setting
2020-11-23 17:41:56 +00:00

40 lines
1.0 KiB
QML

/**
* SPDX-FileCopyrightText: 2020 Tobias Fella <fella@posteo.de>
*
* SPDX-License-Identifier: GPL-2.0-or-later
*/
import QtQuick 2.14
import QtQuick.Controls 2.14 as QQC2
import QtQuick.Layouts 1.14
import org.kde.kirigami 2.12 as Kirigami
import org.kde.neochat 1.0
Kirigami.ScrollablePage {
title: i18n("Settings")
Kirigami.FormLayout {
QQC2.CheckBox {
id: showNotifications
Kirigami.FormData.label: i18n("Show Notifications:")
checked: Config.showNotifications
onToggled: Config.showNotifications = checked
}
QQC2.RadioButton {
id: mergeRoomList
Kirigami.FormData.label: i18n("Rooms and private chats:")
text: i18n("Separated")
checked: Config.mergeRoomList
onToggled: Config.mergeRoomList = true
}
QQC2.RadioButton {
id: mergeRoomList
text: i18n("Intermixed")
checked: !Config.mergeRoomList
onToggled: Config.mergeRoomList = false
}
}
}