From ff6bff208a7e3e3154b3918f8006253d2b190486 Mon Sep 17 00:00:00 2001 From: Carl Schwan Date: Sat, 6 Feb 2021 01:40:45 +0100 Subject: [PATCH] Remove room description from room header After using it for some time, I don't think it is really usefull but it makes the UI more visually heavy, it doesn't show it completely and also has very bad contrast. Fix #197 --- imports/NeoChat/Page/RoomPage.qml | 29 ----------------------------- 1 file changed, 29 deletions(-) diff --git a/imports/NeoChat/Page/RoomPage.qml b/imports/NeoChat/Page/RoomPage.qml index 958055e09..fa24de407 100644 --- a/imports/NeoChat/Page/RoomPage.qml +++ b/imports/NeoChat/Page/RoomPage.qml @@ -92,35 +92,6 @@ Kirigami.ScrollablePage { } } - titleDelegate: Component { - RowLayout { - visible: !Kirigami.Settings.isMobile - Layout.fillWidth: true - Layout.maximumWidth: implicitWidth + 1 // The +1 is to make sure we do not trigger eliding at max width - Layout.minimumWidth: 0 - spacing: Kirigami.Units.gridUnit * 0.8 - Kirigami.Heading { - id: titleLabel - level: 2 - Layout.alignment: Qt.AlignVCenter - text: page.title - opacity: page.isCurrentPage ? 1 : 0.4 - maximumLineCount: 1 - elide: Text.ElideRight - } - QQC2.Label { - Layout.fillWidth: true - Layout.alignment: Qt.AlignVCenter - anchors.baseline: lineCount < 2 ? titleLabel.baseline : undefined // necessary, since there is no way to do this with Layout.alignment - text: currentRoom.topic - maximumLineCount: 2 - wrapMode: Text.Wrap - elide: Text.ElideRight - color: Kirigami.Theme.disabledTextColor - font.pointSize: Kirigami.Theme.defaultFont.pointSize * 0.9 - } - } - } focus: true Keys.onTabPressed: {