mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-22 11:00:48 +03:00
Fix a few things
This commit is contained in:
parent
6e7e22b0e7
commit
4a7e6d3f48
2 changed files with 4 additions and 16 deletions
|
@ -31,7 +31,7 @@ Page {
|
|||
anchors.right: parent.right
|
||||
height: parent.height
|
||||
model: Rooms
|
||||
reuseItems: false
|
||||
reuseItems: true
|
||||
|
||||
ScrollHelper {
|
||||
flickable: parent
|
||||
|
@ -139,7 +139,7 @@ Page {
|
|||
height: avatarSize + 2 * Nheko.paddingMedium
|
||||
width: ListView.view.width
|
||||
state: "normal"
|
||||
ToolTip.visible: hovered && collapsed && !collapsedBubbleHover.hovered && !notificationBubbleHover.hovered
|
||||
ToolTip.visible: hovered && collapsed
|
||||
ToolTip.text: roomName
|
||||
onClicked: {
|
||||
console.log("tapped " + roomId);
|
||||
|
@ -239,8 +239,6 @@ Page {
|
|||
width: Math.min(Math.max(collapsedBubbleText.width + Nheko.paddingMedium, height), parent.width)
|
||||
radius: height / 2
|
||||
color: hasLoudNotification ? Nheko.theme.red : roomItem.bubbleBackground
|
||||
ToolTip.text: notificationCount
|
||||
ToolTip.visible: collapsedBubbleHover.hovered && (notificationCount > 9999)
|
||||
|
||||
Label {
|
||||
id: collapsedBubbleText
|
||||
|
@ -255,10 +253,6 @@ Page {
|
|||
text: notificationCount > 9999 ? "9999+" : notificationCount
|
||||
}
|
||||
|
||||
HoverHandler {
|
||||
id: collapsedBubbleHover
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -345,12 +339,6 @@ Page {
|
|||
color: hasLoudNotification ? "white" : roomItem.bubbleText
|
||||
text: notificationCount > 9999 ? "9999+" : notificationCount
|
||||
|
||||
onTextChanged: {
|
||||
let old = parent.width
|
||||
parent.width = Math.max(probableWidth + Nheko.paddingMedium, parent.height)
|
||||
console.log(old + " changed to " + parent.width)
|
||||
}
|
||||
|
||||
HoverHandler {
|
||||
id: notificationBubbleHover
|
||||
}
|
||||
|
|
|
@ -14,7 +14,7 @@ Rectangle {
|
|||
required property int encryptionError
|
||||
required property string eventId
|
||||
|
||||
radius: fontMetrics.xHeight + Nheko.paddingMedium
|
||||
radius: fontMetrics.lineSpacing / 2 + Nheko.paddingMedium
|
||||
width: parent ? parent.width : undefined
|
||||
height: contents.implicitHeight + Nheko.paddingMedium * 2
|
||||
color: Nheko.colors.alternateBase
|
||||
|
@ -56,7 +56,7 @@ Rectangle {
|
|||
return qsTr("Unknown decryption error");
|
||||
}
|
||||
}
|
||||
color: Nheko.colors.buttonText
|
||||
color: Nheko.colors.text
|
||||
width: parent ? parent.width : undefined
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue