1
0
Fork 0
mirror of https://git.jami.net/savoirfairelinux/jami-client-qt.git synced 2025-09-10 12:03:18 +02:00

chatview: update font sizes and margin

Change-Id: I8186083bbe0854dfa6e1d48b61b14b4aef6d135b
GitLab: #1213
This commit is contained in:
Aline Gondim Santos 2023-06-28 10:35:40 -03:00 committed by Sébastien Blin
parent 26212b21b2
commit 3383f43688
8 changed files with 16 additions and 15 deletions

View file

@ -84,7 +84,7 @@ SBSMessageBase {
}
horizontalAlignment: Qt.AlignHCenter
font.pixelSize: JamiTheme.emojiBubbleSize
font.pointSize: JamiTheme.mediumFontSize
font.hintingPreference: Font.PreferNoHinting
font.bold: true
renderType: Text.NativeRendering

View file

@ -90,13 +90,14 @@ Control {
id: usernameblock
Layout.preferredHeight: (seq === MsgSeq.first || seq === MsgSeq.single) ? 10 : 0
visible: !isReply
Layout.topMargin: (seq === MsgSeq.first || seq === MsgSeq.single) && !isOutgoing ? 20 : 0
Label {
id: username
text: UtilsAdapter.getBestNameForUri(CurrentAccount.id, Author)
font.bold: true
visible: (seq === MsgSeq.first || seq === MsgSeq.single) && !isOutgoing
font.pixelSize: JamiTheme.usernameBlockFontSize
font.pointSize: JamiTheme.smallFontSize
color: JamiTheme.chatviewUsernameColor
lineHeight: JamiTheme.usernameBlockLineHeight
leftPadding: JamiTheme.usernameBlockPadding

View file

@ -86,7 +86,7 @@ SBSMessageBase {
wrapMode: Label.WrapAtWordBoundaryOrAnywhere
selectByMouse: true
font.pixelSize: isEmojiOnly ? JamiTheme.chatviewEmojiSize : JamiTheme.emojiBubbleSize
font.pointSize: isEmojiOnly ? JamiTheme.chatviewEmojiSize : JamiTheme.mediumFontSize
font.hintingPreference: Font.PreferNoHinting
renderType: Text.NativeRendering
textFormat: Text.RichText

View file

@ -302,6 +302,8 @@ Item {
property real indicatorFontSize: calcSize(6)
property real tinyFontSize: calcSize(7 + fontSizeOffset)
property real textFontSize: calcSize(9 + fontSizeOffset)
property real smallFontSize: calcSize(9 + fontSizeOffsetSmall)
property real mediumFontSize: calcSize(10.5 + fontSizeOffset)
property real bigFontSize: calcSize(22)
property real settingsFontSize: calcSize(11 + fontSizeOffset)
property real buttonFontSize: calcSize(9)
@ -314,9 +316,7 @@ Item {
property real tinyCreditsTextSize: calcSize(13 + fontSizeOffset)
property real creditsTextSize: calcSize(15 + fontSizeOffset)
property real primaryRadius: calcSize(4)
property real smartlistItemFontSize: calcSize(10.5 + fontSizeOffset)
property real smartlistItemInfoFontSize: calcSize(9 + fontSizeOffsetSmall)
property real filterItemFontSize: calcSize(smartlistItemFontSize)
property real filterItemFontSize: calcSize(mediumFontSize)
property real filterBadgeFontSize: calcSize(8.25)
property real editedFontSize: calcSize(8)
property real accountListItemHeight: 64

View file

@ -53,7 +53,7 @@ JamiListView {
verticalCenter: parent.verticalCenter
}
text: headerLabel + " (" + root.count + ")"
font.pointSize: JamiTheme.smartlistItemFontSize
font.pointSize: JamiTheme.mediumFontSize
font.weight: Font.DemiBold
color: JamiTheme.textColor
}

View file

@ -169,7 +169,7 @@ Rectangle {
Layout.preferredWidth: root.width
Layout.topMargin: 8
font.pointSize: JamiTheme.smartlistItemFontSize
font.pointSize: JamiTheme.mediumFontSize
horizontalAlignment: Text.AlignHCenter
verticalAlignment: Text.AlignVCenter
@ -238,7 +238,7 @@ Rectangle {
Layout.preferredWidth: JamiTheme.callButtonPreferredSize
Layout.preferredHeight: JamiTheme.preferredFieldHeight
font.pointSize: JamiTheme.smartlistItemInfoFontSize
font.pointSize: JamiTheme.smallFontSize
font.kerning: true
color: actionButton.hovered ? JamiTheme.whiteColor : JamiTheme.whiteColorTransparent

View file

@ -139,7 +139,7 @@ ItemDelegate {
elide: Text.ElideMiddle
text: Title === undefined ? "" : Title
textFormat: TextEdit.PlainText
font.pointSize: JamiTheme.smartlistItemFontSize
font.pointSize: JamiTheme.mediumFontSize
font.weight: UnreadMessagesCount ? Font.Bold : Font.Normal
color: JamiTheme.textColor
}
@ -157,7 +157,7 @@ ItemDelegate {
Layout.alignment: Qt.AlignVCenter
text: lastInteractionFormattedDate === undefined ? "" : lastInteractionFormattedDate
textFormat: TextEdit.PlainText
font.pointSize: JamiTheme.smartlistItemInfoFontSize
font.pointSize: JamiTheme.smallFontSize
font.weight: UnreadMessagesCount ? Font.DemiBold : Font.Normal
color: JamiTheme.textColor
}
@ -172,7 +172,7 @@ ItemDelegate {
Draft :
(LastInteraction === undefined ? "" : LastInteraction)
textFormat: TextEdit.PlainText
font.pointSize: JamiTheme.smartlistItemInfoFontSize
font.pointSize: JamiTheme.smallFontSize
font.weight: UnreadMessagesCount ? Font.Normal : Font.Light
font.hintingPreference: Font.PreferNoHinting
maximumLineCount: 1
@ -186,7 +186,7 @@ ItemDelegate {
text: JamiStrings.banned
textFormat: TextEdit.PlainText
visible: IsBanned
font.pointSize: JamiTheme.smartlistItemFontSize
font.pointSize: JamiTheme.mediumFontSize
font.weight: Font.Bold
color: JamiTheme.textColor
}
@ -232,7 +232,7 @@ ItemDelegate {
Layout.alignment: Qt.AlignRight
text: InCall ? UtilsAdapter.getCallStatusStr(CallState) : ""
textFormat: TextEdit.PlainText
font.pointSize: JamiTheme.smartlistItemInfoFontSize
font.pointSize: JamiTheme.smallFontSize
font.weight: Font.Medium
color: JamiTheme.textColor
}

View file

@ -430,7 +430,7 @@ Rectangle {
}
maxWidth: settingsSwarmItem.width / 2 - JamiTheme.contactMessageAvatarSize
font.pointSize: eText === JamiStrings.none ? JamiTheme.settingsFontSize : JamiTheme.smartlistItemInfoFontSize
font.pointSize: eText === JamiStrings.none ? JamiTheme.settingsFontSize : JamiTheme.smallFontSize
font.weight: eText === JamiStrings.none ? Font.Medium : Font.Normal
color: JamiTheme.primaryForegroundColor
font.kerning: true