mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-25 20:48:52 +03:00
Fix UserSettings in QML
This commit is contained in:
parent
6bb73f84a3
commit
07ffd9e7e9
4 changed files with 5 additions and 19 deletions
|
@ -48,7 +48,7 @@ Flow {
|
|||
|
||||
TextMetrics {
|
||||
id: textMetrics
|
||||
font.family: settings.emoji_font_family
|
||||
font.family: settings.emojiFont
|
||||
elide: Text.ElideRight
|
||||
elideWidth: 150
|
||||
text: model.key
|
||||
|
@ -58,7 +58,7 @@ Flow {
|
|||
anchors.baseline: reactionCounter.baseline
|
||||
id: reactionText
|
||||
text: textMetrics.elidedText + (textMetrics.elidedText == textMetrics.text ? "" : "…")
|
||||
font.family: settings.emoji_font_family
|
||||
font.family: settings.emojiFont
|
||||
color: reaction.hovered ? colors.highlight : colors.text
|
||||
maximumLineCount: 1
|
||||
}
|
||||
|
|
|
@ -25,20 +25,6 @@ Page {
|
|||
id: fontMetrics
|
||||
}
|
||||
|
||||
Settings {
|
||||
id: settings
|
||||
category: "user"
|
||||
property bool avatar_circles: true
|
||||
property string emoji_font_family: "default"
|
||||
}
|
||||
|
||||
Settings {
|
||||
id: timelineSettings
|
||||
category: "user/timeline"
|
||||
property bool buttons: true
|
||||
property bool message_hover_highlight: false
|
||||
}
|
||||
|
||||
EmojiPicker {
|
||||
id: emojiPopup
|
||||
width: 7 * 52 + 20
|
||||
|
|
|
@ -76,7 +76,7 @@ Popup {
|
|||
contentItem: Text {
|
||||
horizontalAlignment: Text.AlignHCenter
|
||||
verticalAlignment: Text.AlignVCenter
|
||||
font.family: settings.emoji_font_family
|
||||
font.family: settings.emojiFont
|
||||
|
||||
font.pixelSize: 36
|
||||
text: model.unicode
|
||||
|
@ -276,7 +276,7 @@ Popup {
|
|||
sourceSize.height: 32
|
||||
fillMode: Image.Pad
|
||||
smooth: true
|
||||
source: "image://colorimage/:/icons/icons/ui/search.png?" + (parent.hovered ? colors.highlight : colors.buttonText)
|
||||
source: "image://colorimage/:/icons/icons/emoji-categories/search.png?" + (parent.hovered ? colors.highlight : colors.buttonText)
|
||||
}
|
||||
|
||||
MouseArea
|
||||
|
|
Loading…
Reference in a new issue