Skip to content

Commit

Permalink
add support for old macOS version
Browse files Browse the repository at this point in the history
fixing #50
  • Loading branch information
typemytype committed May 6, 2024
1 parent 33ea850 commit 6796e1f
Show file tree
Hide file tree
Showing 40 changed files with 7 additions and 178 deletions.

This file was deleted.

Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
from vanilla.vanillaBase import osVersionCurrent, osVersion12_0

from mojo.events import postEvent
from mojo.extensions import ExtensionBundle


def holdRecursionDecorator(func):
Expand Down Expand Up @@ -135,7 +136,12 @@ def __exit__(self, type, value, traceback):


def symbolImage(symbolName, color, flipped=False):
image = AppKit.NSImage.imageWithSystemSymbolName_accessibilityDescription_(symbolName, "")
try:
image = AppKit.NSImage.imageWithSystemSymbolName_accessibilityDescription_(symbolName, "")
except Exception:
# older systems
bundle = ExtensionBundle("DesignspaceEditor2")
return bundle.getResourceImage(f"toolbar_30_30_{symbolName}")
if isinstance(color, tuple):
color = AppKit.NSColor.colorWithCalibratedRed_green_blue_alpha_(*color)
else:
Expand Down
Binary file not shown.
Binary file not shown.
108 changes: 0 additions & 108 deletions DesignspaceEditor2.roboFontExt/resources/info.circle.fill.svg

This file was deleted.

Binary file not shown.
Binary file not shown.
Binary file not shown.

This file was deleted.

Binary file not shown.
Binary file not shown.

This file was deleted.

Binary file not shown.

This file was deleted.

Binary file not shown.

This file was deleted.

Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Diff not rendered.
Diff not rendered.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

0 comments on commit 6796e1f

Please sign in to comment.