Notice event line: respect UI zoom

This commit is contained in:
miruka 2020-03-15 15:29:57 -04:00
parent 64d67234ab
commit de729e42d9
3 changed files with 3 additions and 2 deletions

View File

@ -163,6 +163,7 @@ HRowLayout {
Rectangle { Rectangle {
visible: model.event_type === "RoomMessageNotice" visible: model.event_type === "RoomMessageNotice"
// y: parent.height / 2 - height / 2
width: theme.chat.message.noticeLineWidth width: theme.chat.message.noticeLineWidth
height: parent.height height: parent.height
radius: parent.radius radius: parent.radius

View File

@ -348,7 +348,7 @@ chat:
color date: colors.dimText color date: colors.dimText
color noticeBody: colors.halfDimText color noticeBody: colors.halfDimText
int noticeLineWidth: 1 int noticeLineWidth: 1 * uiScale
color quote: hsluv( color quote: hsluv(
135, colors.coloredTextSaturation, colors.coloredTextIntensity, 135, colors.coloredTextSaturation, colors.coloredTextIntensity,

View File

@ -358,7 +358,7 @@ chat:
color date: colors.dimText color date: colors.dimText
color noticeBody: colors.halfDimText color noticeBody: colors.halfDimText
int noticeLineWidth: 1 int noticeLineWidth: 1 * uiScale
color quote: hsluv( color quote: hsluv(
135, colors.coloredTextSaturation, colors.coloredTextIntensity, 135, colors.coloredTextSaturation, colors.coloredTextIntensity,