Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F113732
D137.1732488807.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D137.1732488807.diff
View Options
diff --git a/src/contents/ui/Bubble.qml b/src/contents/ui/Bubble.qml
--- a/src/contents/ui/Bubble.qml
+++ b/src/contents/ui/Bubble.qml
@@ -184,8 +184,8 @@
Accessible.role: Accessible.StaticText
Accessible.name: l10n.get('event-encrypted')
ToolTip.text: l10n.get('event-encrypted')
- ToolTip.delay: 1000
- ToolTip.timeout: 5000
+ ToolTip.delay: Kirigami.Units.toolTipDelay
+ ToolTip.timeout: Helpers.toolTipTimeout
ToolTip.visible: hoverHandlerEncIcon.hovered
HoverHandler { id: hoverHandlerEncIcon }
@@ -202,8 +202,8 @@
Accessible.role: event.isSending ? Accessible.StaticText : Accessible.Button
Accessible.name: event.isSending ? l10n.get('event-sending') : l10n.get('event-resend')
ToolTip.text: event.isSending ? l10n.get('event-sending') : l10n.get('event-send-failed')
- ToolTip.delay: 1000
- ToolTip.timeout: 5000
+ ToolTip.delay: Kirigami.Units.toolTipDelay
+ ToolTip.timeout: Helpers.toolTipTimeout
ToolTip.visible: hovered
onClicked: {
diff --git a/src/contents/ui/event-types/TextTemplate.qml b/src/contents/ui/event-types/TextTemplate.qml
--- a/src/contents/ui/event-types/TextTemplate.qml
+++ b/src/contents/ui/event-types/TextTemplate.qml
@@ -13,6 +13,7 @@
import '.' as Types
import '..' as Kazv
+import '../matrix-helpers.js' as Helpers
Types.Simple {
id: upper
@@ -69,7 +70,8 @@
label.ToolTip.text = '';
}
}
- ToolTip.delay: Kirigami.Units.shortDuration
+ ToolTip.delay: Kirigami.Units.toolTipDelay
+ ToolTip.timeout: Helpers.toolTipTimeout
}
data: [
diff --git a/src/js/matrix-helpers.js b/src/js/matrix-helpers.js
--- a/src/js/matrix-helpers.js
+++ b/src/js/matrix-helpers.js
@@ -123,3 +123,5 @@
return globalName;
}
}
+
+const toolTipTimeout = 5000;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Nov 24, 2:53 PM (10 h, 38 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
39880
Default Alt Text
D137.1732488807.diff (1 KB)
Attached To
Mode
D137: Unify tooltip delay and timeout
Attached
Detach File
Event Timeline
Log In to Comment