Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes #97 #100

Closed
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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