From de729e42d9d9b4f3238b09b904b427a027ed4b66 Mon Sep 17 00:00:00 2001 From: miruka Date: Sun, 15 Mar 2020 15:29:57 -0400 Subject: [PATCH] Notice event line: respect UI zoom --- src/gui/Pages/Chat/Timeline/EventContent.qml | 1 + src/themes/Glass.qpl | 2 +- src/themes/Midnight.qpl | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/gui/Pages/Chat/Timeline/EventContent.qml b/src/gui/Pages/Chat/Timeline/EventContent.qml index 1cccb6bb..59a11bb7 100644 --- a/src/gui/Pages/Chat/Timeline/EventContent.qml +++ b/src/gui/Pages/Chat/Timeline/EventContent.qml @@ -163,6 +163,7 @@ HRowLayout { Rectangle { visible: model.event_type === "RoomMessageNotice" + // y: parent.height / 2 - height / 2 width: theme.chat.message.noticeLineWidth height: parent.height radius: parent.radius diff --git a/src/themes/Glass.qpl b/src/themes/Glass.qpl index da5b0221..846d1348 100644 --- a/src/themes/Glass.qpl +++ b/src/themes/Glass.qpl @@ -348,7 +348,7 @@ chat: color date: colors.dimText color noticeBody: colors.halfDimText - int noticeLineWidth: 1 + int noticeLineWidth: 1 * uiScale color quote: hsluv( 135, colors.coloredTextSaturation, colors.coloredTextIntensity, diff --git a/src/themes/Midnight.qpl b/src/themes/Midnight.qpl index b753a744..701abc5f 100644 --- a/src/themes/Midnight.qpl +++ b/src/themes/Midnight.qpl @@ -358,7 +358,7 @@ chat: color date: colors.dimText color noticeBody: colors.halfDimText - int noticeLineWidth: 1 + int noticeLineWidth: 1 * uiScale color quote: hsluv( 135, colors.coloredTextSaturation, colors.coloredTextIntensity,