Add option to enable custom cursor on macos
This commit is contained in:
parent
1dc7c23b2f
commit
a9a86e4604
@ -291,7 +291,8 @@ def cursor_text_color(x):
|
||||
return
|
||||
return to_color(x)
|
||||
|
||||
|
||||
o('macos_custom_beam_cursor', False, long_text=_('''Enable/disable custom cursor for macOS. WARNING,
|
||||
this might make your cursor invisible on dual GPU machines.'''))
|
||||
o('cursor', '#cccccc', _('Default cursor color'), option_type=to_color)
|
||||
o('cursor_text_color', '#111111', option_type=cursor_text_color, long_text=_('''
|
||||
Choose the color of text under the cursor. If you want it rendered with the
|
||||
|
||||
@ -120,9 +120,7 @@ def get_new_os_window_trigger(opts):
|
||||
|
||||
def _run_app(opts, args):
|
||||
new_os_window_trigger = get_new_os_window_trigger(opts)
|
||||
if False and is_macos:
|
||||
# This is disabled because using custom cursors fails
|
||||
# on dual GPU machines: https://github.com/kovidgoyal/kitty/issues/794
|
||||
if is_macos and opts.macos_custom_beam_cursor:
|
||||
set_custom_ibeam_cursor()
|
||||
load_all_shaders.cursor_text_color = opts.cursor_text_color
|
||||
if not is_wayland and not is_macos: # no window icons on wayland
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user