We was no more scaling icons depending on screen resolution, fix it

This commit is contained in:
Marco Pesenti Gritti 2007-01-27 02:45:09 +01:00
parent 679f6f7c46
commit eeaf517049
2 changed files with 13 additions and 9 deletions

View File

@ -25,22 +25,26 @@ grid = Grid()
frame_ActivityIcon = {
'color' : IconColor('white'),
'box-width' : grid.dimension(1)
'box-width' : grid.dimension(1),
'scale' : style.standard_icon_scale
}
frame_OverlayIcon = {
'box-width' : grid.dimension(1),
'box-height' : grid.dimension(1)
'box-height' : grid.dimension(1),
'scale' : style.standard_icon_scale
}
frame_ZoomIcon = {
'box-width' : grid.dimension(1),
'box-height' : grid.dimension(1)
'box-height' : grid.dimension(1),
'scale' : style.standard_icon_scale
}
frame_BuddyIcon = {
'box-width' : grid.dimension(1),
'box-height' : grid.dimension(1)
'box-height' : grid.dimension(1),
'scale' : style.standard_icon_scale
}
home_MyIcon = {

View File

@ -24,11 +24,11 @@ _screen_factor = gtk.gdk.screen_width() / 1200.0
space_unit = 9 * _screen_factor
separator_thickness = 3 * _screen_factor
standard_icon_scale = 1.0
small_icon_scale = 0.5
medium_icon_scale = 1.5
large_icon_scale = 2.0
xlarge_icon_scale = 3.0
standard_icon_scale = 1.0 * _screen_factor
small_icon_scale = 0.5 * _screen_factor
medium_icon_scale = 1.5 * _screen_factor
large_icon_scale = 2.0 * _screen_factor
xlarge_icon_scale = 3.0 * _screen_factor
def load_stylesheet(module):
for objname in dir(module):