Skip to content

Commit a4e80dd

Browse files
committed
Dim the indicator away over the timeout in author configuration
1 parent f7e3969 commit a4e80dd

1 file changed

Lines changed: 15 additions & 19 deletions

File tree

configuration/author.properties

Lines changed: 15 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -112,35 +112,31 @@ _hint-indicator-mode=_indicator-mode
112112
_hint-indicator-mode.indicator.enabled=false | _{ismousepressing | mouseanimation} -> true
113113
_hint-indicator-mode.indicator.opacity=0 | _{mousefill | mouseburst} -> 0.2 | _{ismousepressing} ^{mouseanimation} -> 0.2
114114
_hint-indicator-mode.indicator.inner-outline-thickness=0 | _{mousefill} -> 12.5 | _{mouseburst} ^{mousefill} -> 21.5 | _{mouseanimation} ^{mouseburst} -> 0 | _{ismousepressing} ^{mouseanimation} -> 0.5
115+
_hint-indicator-mode.indicator.color=last-selected-hint-box-color
116+
_hint-indicator-mode.indicator.inner-outline-color=last-selected-hint-box-color
117+
_hint-indicator-mode.indicator.shadow-color=last-selected-hint-box-color
115118
_hint-indicator-mode.macro.clickanimation=+isleftmousepressing | +ismiddlemousepressing | +isrightmousepressing -> #mousefill #mouseburst #mouseanimation wait-0 \
116119
~mousefill wait-55 ~mouseburst wait-150 ~mouseanimation ~leftmouseanimation ~middlemouseanimation ~rightmouseanimation
117120
# Leaving normal-mode mid-click would cut the animation short. idle-mode borrows the
118121
# indicator as it is and keeps drawing it until the animation releases mouseanimation.
119122
idle-mode.indicator=_indicator-mode.indicator
120123
idle-mode.indicator.enabled=false | _{mouseanimation} -> true
121-
normal-mode.to.normal-timeout4-mode=_{isidling} wait-1000
122-
_normal-timeout-mode=normal-mode
123-
#_normal-timeout-mode.indicator.render-as-cursor=false
124-
_normal-timeout-mode.hide-cursor.enabled=true
124+
normal-mode.to.normal-timeout-mode=_{isidling} wait-1000
125+
normal-timeout-mode=normal-mode
126+
#normal-timeout-mode.indicator.render-as-cursor=false
127+
normal-timeout-mode.hide-cursor.enabled=true
125128
virtual-key.never=released
126129
# never is read by combos that must not fire, and pressed by nothing.
127-
# Override the inherited normal-mode.to.normal-timeout4-mode.
128-
_normal-timeout-mode.to.normal-timeout4-mode=+never
129-
_normal-timeout-mode.to.normal-mode=^{isidling}
130+
# Override the inherited normal-mode.to.normal-timeout-mode.
131+
normal-timeout-mode.to.normal-timeout-mode=+never
132+
normal-timeout-mode.to.normal-mode=^{isidling}
130133
# Drop the fasttrackkey press, otherwise it reaches _recursive-hint-mode.start-wheel.
131134
normal-mode.break-combo-preparation=^{leftalt} +fasttrackkey
132-
normal-timeout4-mode=_normal-timeout-mode
133-
normal-timeout4-mode.indicator.label-text=4
134-
normal-timeout4-mode.to.normal-timeout3-mode=wait-1000
135-
normal-timeout3-mode=_normal-timeout-mode
136-
normal-timeout3-mode.indicator.label-text=3
137-
normal-timeout3-mode.to.normal-timeout2-mode=wait-1000
138-
normal-timeout2-mode=_normal-timeout-mode
139-
normal-timeout2-mode.indicator.label-text=2
140-
normal-timeout2-mode.to.normal-timeout1-mode=wait-1000
141-
normal-timeout1-mode=_normal-timeout-mode
142-
normal-timeout1-mode.indicator.label-text=1
143-
normal-timeout1-mode.to.idle-mode=wait-1000
135+
# The transition dims the indicator away over the timeout.
136+
normal-timeout-mode.indicator.transition-animation-duration-millis=4000
137+
normal-timeout-mode.indicator.opacity=0
138+
normal-timeout-mode.indicator.inner-outline-opacity=0
139+
normal-timeout-mode.to.idle-mode=wait-4000
144140
normal-mode.to.idle-mode=#rightctrl | #hintback
145141
normal-mode.mouse.initial-velocity=200
146142
normal-mode.mouse.max-velocity=1200

0 commit comments

Comments
 (0)