Changeset View
Changeset View
Standalone View
Standalone View
src/contents/ui/Bubble.qml
| Show First 20 Lines • Show All 209 Lines • ▼ Show 20 Lines | RowLayout { | ||||
| room.resendMessage(event.txnId); | room.resendMessage(event.txnId); | ||||
| } | } | ||||
| } | } | ||||
| Label { | Label { | ||||
| objectName: 'timeIndicator' | objectName: 'timeIndicator' | ||||
| visible: !compactMode && !event.isLocalEcho | visible: !compactMode && !event.isLocalEcho | ||||
| text: event.formattedTime | text: event.formattedTime | ||||
| ToolTip.text: event.formattedDateTime | |||||
| ToolTip.delay: Kirigami.Units.toolTipDelay | |||||
| ToolTip.timeout: Helpers.toolTipTimeout | |||||
nannanko: I noticed that there are several places where the same values of `ToolTip.delay` and `ToolTip. | |||||
Done Inline ActionsDone in https://iron.lily-is.land/D137 . Also changed here. tusooa: Done in https://iron.lily-is.land/D137 . Also changed here. | |||||
| ToolTip.visible: hoverHandlerTime.hovered | |||||
| HoverHandler { id: hoverHandlerTime } | |||||
| font.pointSize: Kirigami.Theme.defaultFont.pointSize * 0.8 | font.pointSize: Kirigami.Theme.defaultFont.pointSize * 0.8 | ||||
| } | } | ||||
| Label { | Label { | ||||
| objectName: 'editedIndicator' | objectName: 'editedIndicator' | ||||
| visible: !compactMode && event.isEdited | visible: !compactMode && event.isEdited | ||||
| text: l10n.get('event-edited-indicator') | text: l10n.get('event-edited-indicator') | ||||
| font.pointSize: Kirigami.Theme.defaultFont.pointSize * 0.8 | font.pointSize: Kirigami.Theme.defaultFont.pointSize * 0.8 | ||||
| Show All 18 Lines | |||||
I noticed that there are several places where the same values of ToolTip.delay and ToolTip.timeout are used.
Why not set the preferences for ToolTip.delay and ToolTip.timeout as variables in main.qml or some other way?