File tree Expand file tree Collapse file tree 2 files changed +10
-3
lines changed
src-dbg/flow_storm/debugger/ui Expand file tree Collapse file tree 2 files changed +10
-3
lines changed Original file line number Diff line number Diff line change 6
6
7
7
### Changes
8
8
9
+ - Make tooltips have a 400ms delay instead of default 1000ms
10
+
9
11
### Bugs fixed
10
12
11
13
## 3.9.1 (12-01-2024)
Original file line number Diff line number Diff line change 16
16
[javafx.beans.value ObservableValue]
17
17
[javafx.scene Node]
18
18
[javafx.scene.layout HBox Priority VBox Region]
19
+ [javafx.util Duration]
19
20
[java.util.function Predicate]
20
21
[org.kordamp.ikonli.javafx FontIcon]
21
22
[javafx.collections FXCollections ObservableList]
127
128
(defn icon [^String icon-name]
128
129
(FontIcon. icon-name))
129
130
131
+ (defn- tool-tip [text]
132
+ (doto (Tooltip. text)
133
+ (.setShowDelay (Duration. 400 ))))
134
+
130
135
(defn button [& {:keys [label classes on-click disable tooltip]}]
131
136
(let [b (Button. label)]
132
137
140
145
(when disable
141
146
(.setDisable b true ))
142
147
143
- (when tooltip (.setTooltip b (Tooltip. tooltip)))
148
+ (when tooltip (.setTooltip b (tool-tip tooltip)))
144
149
145
150
b))
146
151
147
152
(defn icon-button [& {:keys [icon-name classes on-click disable tooltip]}]
148
153
(let [b (doto (Button. )
149
154
(.setGraphic (FontIcon. icon-name)))]
150
155
151
- (when tooltip (.setTooltip b (Tooltip. tooltip)))
156
+ (when tooltip (.setTooltip b (tool-tip tooltip)))
152
157
(when on-click
153
158
(.setOnAction b (event-handler [_] (on-click ))))
154
159
291
296
(when on-selection-changed
292
297
(.setOnSelectionChanged t on-selection-changed))
293
298
294
- (when tooltip (.setTooltip t (Tooltip. tooltip)))
299
+ (when tooltip (.setTooltip t (tool-tip tooltip)))
295
300
296
301
t))
297
302
You can’t perform that action at this time.
0 commit comments