forked from Blendman974/faceclaw
Change symbol for tap from U+00B7 (· middle dot) to U+25CF (● black circle)
This commit is contained in:
1 parent
bd5ca21017
commit
c27dcacfee
1 file changed
+5
-5
+5
-5
@@ -2,13 +2,13 @@
|
||||
* Compact glyphs for the ring gestures, used in on-glasses hint text instead
|
||||
* of spelling the gesture out. All codepoints exist in terminus12/16.
|
||||
*
|
||||
* click · (U+00B7 middle dot)
|
||||
* double-click ·· (twice)
|
||||
* click ● (U+00B7 middle dot)
|
||||
* double-click ●● (twice)
|
||||
* scroll ▲▼ (U+25B2 / U+25BC)
|
||||
* long-press - (hyphen-minus)
|
||||
*/
|
||||
export const GESTURE_CLICK = "·";
|
||||
export const GESTURE_DOUBLE_CLICK = "··";
|
||||
export const GESTURE_CLICK = "\u25cf";
|
||||
export const GESTURE_DOUBLE_CLICK = GESTURE_CLICK+GESTURE_CLICK;
|
||||
export const GESTURE_SCROLL_UP = "▲";
|
||||
export const GESTURE_SCROLL_DOWN = "▼";
|
||||
export const GESTURE_SCROLL = "▲▼";
|
||||
@@ -17,7 +17,7 @@ export const GESTURE_LONG_PRESS = "-";
|
||||
/**
|
||||
* Join "glyph action" hint pairs into a single line, e.g.
|
||||
* gestureHints([[GESTURE_CLICK, "save"], [GESTURE_DOUBLE_CLICK, "back"]])
|
||||
* => "· save ·· back"
|
||||
* => "● save ●● back"
|
||||
*/
|
||||
export function gestureHints(pairs: Array<[string, string]>): string {
|
||||
return pairs.map(([glyph, action]) => `${glyph} ${action}`).join(" ");
|
||||
|
||||
Reference in new issue
Block a user