Add a compact room list option

This commit is contained in:
Gary Wang
2022-12-20 18:06:44 +08:00
committed by Tobias Fella
parent 3c33bea7db
commit 304054a4bb
3 changed files with 23 additions and 6 deletions

View File

@@ -199,8 +199,20 @@ Kirigami.ScrollablePage {
}
}
}
MobileForm.FormDelegateSeparator { below: compactRoomListDelegate }
MobileForm.FormCheckDelegate {
id: compactRoomListDelegate
text: i18n("Use compact room list")
checked: Config.compactRoomList
onToggled: {
Config.compactRoomList = checked;
Config.save();
}
}
MobileForm.FormDelegateSeparator { below: colorSchemeDelegate.item ; visible: colorSchemeDelegate.visible }
MobileForm.FormDelegateSeparator { above: compactRoomListDelegate ; below: colorSchemeDelegate.item ; visible: colorSchemeDelegate.visible }
Loader {
id: colorSchemeDelegate