Skip to content

Commit

Permalink
Visual and positioning improvements
Browse files Browse the repository at this point in the history
The colors of distance and angle in Light mode are more contrasted now.
A positioning at large scale (close to the grid view) are fixed now. Previously it was to close to the line.
  • Loading branch information
michaelrafailyk committed Feb 28, 2024
1 parent eb458f5 commit 6ee5668
Showing 1 changed file with 6 additions and 2 deletions.
Expand Up @@ -31,8 +31,8 @@ def angle(self, a, b):
def foreground(self, layer):
# light mode colors
black = NSColor.textColor().colorWithAlphaComponent_(0.7)
blue = NSColor.colorWithString_('#3D6DBF')
green = NSColor.colorWithString_('#299952')
blue = NSColor.colorWithString_('#345EA4')
green = NSColor.colorWithString_('#1E7D41')
# dark mode colors
if self.controller.graphicView().drawDark():
black = NSColor.textColor().colorWithAlphaComponent_(0.9)
Expand All @@ -41,6 +41,10 @@ def foreground(self, layer):
scale = self.getScale()
offset = 3 / scale
shift = 1 / scale
# positioning correction at high zoom (before the grid mode)
if scale > 6.2:
offset = 8 / scale
shift = 6 / scale
toolSelect = Glyphs.font.tool == 'SelectTool'
toolPen = Glyphs.font.tool == 'DrawTool'
toolTempPreview = Glyphs.font.parent.windowController().toolTempSelection() != None
Expand Down

0 comments on commit 6ee5668

Please sign in to comment.