Skip to content

Instantly share code, notes, and snippets.

@RafalBuchner
Created March 5, 2020 15:25
Show Gist options
  • Save RafalBuchner/103979167f8aec13dd62bffc60e93b8b to your computer and use it in GitHub Desktop.
Save RafalBuchner/103979167f8aec13dd62bffc60e93b8b to your computer and use it in GitHub Desktop.
from mojo.UI import AllWindows
from mojo.events import addObserver
class ShadowlessRoboFont:
def __init__(self):
addObserver(self, 'shadowlessWindow','fontWindowDidOpen')
addObserver(self, 'shadowlessWindow' ,'spaceCenterDidOpen')
addObserver(self, 'shadowlessWindow' ,'glyphWindowDidOpen')
def shadowlessWindow(self, info):
for w in AllWindows():
w = w.window()
win = w.getNSWindow()
win.setHasShadow_(False)
ShadowlessRoboFont()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment