Add full name/topic tooltip to room header
This commit is contained in:
parent
66871aefe6
commit
cde0c15a68
5
TODO.md
5
TODO.md
|
@ -35,10 +35,10 @@
|
|||
- Room header descriptions: styled text
|
||||
|
||||
- Message selection
|
||||
- Make scroll wheel usable
|
||||
- Copy to X11 selection
|
||||
- Link previews
|
||||
- Support images not just at the end of the message
|
||||
- Support showing images at the place they should be instead of always
|
||||
at the end of the message
|
||||
|
||||
- Just use Shortcut onHeld instead of analyzing the current velocity
|
||||
in `smartVerticalFlick()`
|
||||
|
@ -159,6 +159,7 @@
|
|||
|
||||
- nio
|
||||
- `AsyncClient.share_group_session`: send device batches concurrently
|
||||
- Guard against asyncio OSError Network unreachable
|
||||
|
||||
- downloads API
|
||||
- MatrixRoom invited members list
|
||||
|
|
|
@ -11,6 +11,10 @@ ToolTip {
|
|||
theme.fontSize.normal * 0.5 * 75,
|
||||
)
|
||||
|
||||
|
||||
property alias label: label
|
||||
|
||||
|
||||
background: Rectangle {
|
||||
id: background
|
||||
color: theme.controls.toolTip.background
|
||||
|
@ -19,6 +23,7 @@ ToolTip {
|
|||
}
|
||||
|
||||
contentItem: HLabel {
|
||||
id: label
|
||||
color: theme.controls.toolTip.text
|
||||
text: toolTip.text
|
||||
wrapMode: Text.Wrap
|
||||
|
|
|
@ -43,6 +43,8 @@ Rectangle {
|
|||
viewButtons.width -
|
||||
(expandButton.visible ? expandButton.width : 0)
|
||||
)
|
||||
|
||||
HoverHandler { id: nameHover }
|
||||
}
|
||||
|
||||
HLabel {
|
||||
|
@ -60,6 +62,20 @@ Rectangle {
|
|||
roomName.width - viewButtons.width -
|
||||
(expandButton.visible ? expandButton.width : 0)
|
||||
)
|
||||
|
||||
HoverHandler { id: topicHover }
|
||||
}
|
||||
|
||||
HToolTip {
|
||||
text: name && topic ? (name + "<br>" + topic) : (name || topic)
|
||||
label.textFormat: Text.StyledText
|
||||
visible: text && (nameHover.hovered || topicHover.hovered)
|
||||
|
||||
readonly property string name:
|
||||
roomName.truncated ?
|
||||
("<b>" + chatPage.roomInfo.display_name + "</b>") : ""
|
||||
readonly property string topic:
|
||||
roomTopic.truncated ? chatPage.roomInfo.topic : ""
|
||||
}
|
||||
|
||||
HSpacer {}
|
||||
|
|
Loading…
Reference in New Issue
Block a user