Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/src/sugar/graphics
diff options
context:
space:
mode:
authorMarco Pesenti Gritti <mpgritti@gmail.com>2008-10-03 08:30:50 (GMT)
committer Marco Pesenti Gritti <mpgritti@gmail.com>2008-10-03 08:30:50 (GMT)
commit0f33a634c0fc58ef61e6820dbf2cee382ab4d281 (patch)
tree07629d0d3d140ffbc77aa8b83e7da20c19787a96 /src/sugar/graphics
parent5a51661edf0074fdd45feb6230da0f975a442476 (diff)
Fix up scaling calculations, had some regressions in the previous commits.
Diffstat (limited to 'src/sugar/graphics')
-rw-r--r--src/sugar/graphics/style.py11
1 files changed, 3 insertions, 8 deletions
diff --git a/src/sugar/graphics/style.py b/src/sugar/graphics/style.py
index b8875a6..5b74bc5 100644
--- a/src/sugar/graphics/style.py
+++ b/src/sugar/graphics/style.py
@@ -17,20 +17,15 @@
"""
All the constants are expressed in pixels. They are defined for the XO screen
-and are usually adapted to different resolution by applying a zoom factor. The
-factor for traditional 96 dpi screen is currently 0.72 which is the inverse
-of the one we are using to adapt web pages to the XO screen. It should be
-considered a reference value rather then a scale constant which has to be
-automatically applied and always respected.
+and are usually adapted to different resolution by applying a zoom factor.
"""
import os
+import logging
import gtk
import pango
-_XO_DPI = 200.0
-
_FOCUS_LINE_WIDTH = 2
_TAB_CURVATURE = 1
@@ -110,7 +105,7 @@ MEDIUM_ICON_SIZE = zoom(55 * 1.5)
LARGE_ICON_SIZE = zoom(55 * 2.0)
XLARGE_ICON_SIZE = zoom(55 * 2.75)
-FONT_SIZE = zoom(7 * _XO_DPI / _get_screen_dpi())
+FONT_SIZE = zoom(7)
FONT_NORMAL = Font('Bitstream Vera Sans %d' % FONT_SIZE)
FONT_BOLD = Font('Bitstream Vera Sans bold %d' % FONT_SIZE)
FONT_NORMAL_H = zoom(24)