mirror of
https://github.com/quine-global/hyper.git
synced 2026-01-13 04:28:41 -09:00
* Dynamically change the `font-smoothing` pref By default, hterm defaults to `font-smoothing: 'antialiased'`, which works really well on retina displays. On non-retina displays, however, the type looks very thin and is hard to read. This will look at the devicePixelRatio of the device anytime the term prefs are set, and change between `antialiased` and `subpixel-antialiased` dynamically. * Refactor to add the font smoothing override into state This also subscribes to the electron `move` event to control when this piece of state gets updated. * Add UI_WINDOW_MOVE action with a side effect for font smoothing
10 lines
514 B
JavaScript
10 lines
514 B
JavaScript
export const UI_FONT_SIZE_SET = 'UI_FONT_SIZE_SET';
|
|
export const UI_FONT_SIZE_INCR = 'UI_FONT_SIZE_INCR';
|
|
export const UI_FONT_SIZE_DECR = 'UI_FONT_SIZE_DECR';
|
|
export const UI_FONT_SIZE_RESET = 'UI_FONT_SIZE_RESET';
|
|
export const UI_FONT_SMOOTHING_SET = 'UI_FONT_SMOOTHING_SET';
|
|
export const UI_MOVE_LEFT = 'UI_MOVE_LEFT';
|
|
export const UI_MOVE_RIGHT = 'UI_MOVE_RIGHT';
|
|
export const UI_MOVE_TO = 'UI_MOVE_TO';
|
|
export const UI_SHOW_PREFERENCES = 'UI_SHOW_PREFERENCES';
|
|
export const UI_WINDOW_MOVE = 'UI_WINDOW_MOVE';
|