Skip to content

Commit

Permalink
Fixes sugarlabs#97
Browse files Browse the repository at this point in the history
  • Loading branch information
iqraceme committed Jan 14, 2019
1 parent 5573a4b commit ba75500
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions editfonts/globals.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
import weakref
from gi.repository import Gdk
from gi.repository import GConf
from gi.repository import Gio

from editfonts.core.basefont import BaseFont
# from defcon import Font
Expand Down Expand Up @@ -36,12 +37,12 @@

GdkPixbuf = 1


ZONE_R = 20

# a flag to see if any particular tool is active in the editor area
TOOL_ACTIVE = {'BezierPenTool': False}


# if the current page has changed the global data or not
# FONT_EDITED = False

Expand All @@ -67,13 +68,14 @@ def invX(x, id): # noqa
def invY(y, id): # noqa
return h - float(y) * h / GLYPH_BOX[id]['height'] - b


# #########
# User Info
# #########

client = GConf.Client.get_default()
color =\
XoColor(client.get_string('/desktop/sugar/user/color'))
settings = Gio.Settings('org.sugarlabs.user')
color = \
XoColor(settings.get_string('color'))
USER_COLOR = color.to_string().split(',')

# ###########
Expand Down

0 comments on commit ba75500

Please sign in to comment.