projects
/
dana
/
openbox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
a32fffb
)
more checks, for pixelsize fonts
author
Dana Jansens
<danakj@orodu.net>
Mon, 1 Sep 2003 09:16:08 +0000
(09:16 +0000)
committer
Dana Jansens
<danakj@orodu.net>
Mon, 1 Sep 2003 09:16:08 +0000
(09:16 +0000)
tools/themeupdate/themeupdate.py
patch
|
blob
|
history
diff --git
a/tools/themeupdate/themeupdate.py
b/tools/themeupdate/themeupdate.py
index
ba41ae2
..
cbf43ea
100755
(executable)
--- a/
tools/themeupdate/themeupdate.py
+++ b/
tools/themeupdate/themeupdate.py
@@
-41,7
+41,6
@@
def simple_replace(data):
pairs['window.unfocus.font'] = 'window.label.unfocus.font'
pairs['window.justify'] = 'window.label.justify'
pairs['menu.frame.disableColor'] = 'menu.disabled.textColor'
pairs['window.unfocus.font'] = 'window.label.unfocus.font'
pairs['window.justify'] = 'window.label.justify'
pairs['menu.frame.disableColor'] = 'menu.disabled.textColor'
- pairs['style.'] = 'info.'
pairs['menu.frame'] = 'menu.items'
pairs['menu.hilite'] = 'menu.selected'
pairs['.picColor'] = '.imageColor'
pairs['menu.frame'] = 'menu.items'
pairs['menu.hilite'] = 'menu.selected'
pairs['.picColor'] = '.imageColor'
@@
-165,6
+164,20
@@
def xft_fonts(data):
out('Removing ' + key + '\n')
data.pop(i)
out('Removing ' + key + '\n')
data.pop(i)
+def pixelsize(data):
+ fonts = ('window.label.focus.font',
+ 'menu.items.font',
+ 'menu.title.font')
+ for f in fonts:
+ i, key, value = find_key(data, f, True)
+ if value:
+ if value.find('pixelsize') == -1:
+ out('*** ERROR *** The ' + key + ' font size is not being '
+ 'specified by pixelsize. It is recommended that you use '
+ 'pixelsize instead of pointsize for specifying theme '
+ 'fonts. e.g. "sans:pixelsize=12"\n')
+ valid = False
+
def warn_missing(data):
need = ('window.button.hover.focus', 'window.button.hover.unfocus',
'menuOverlap')
def warn_missing(data):
need = ('window.button.hover.focus', 'window.button.hover.unfocus',
'menuOverlap')
@@
-209,6
+222,7
@@
remove(data)
pressed(data)
x_fonts(data)
xft_fonts(data)
pressed(data)
x_fonts(data)
xft_fonts(data)
+pixelsize(data)
warn_missing(data)
err_missing(data)
warn_missing(data)
err_missing(data)