From 70ef50343499ee6736389a0cad006ea6eeeca5bd Mon Sep 17 00:00:00 2001 From: Vicent Marti Date: Tue, 5 Aug 2008 09:54:36 +0000 Subject: Massive refactoring on the layout parsing API. Added support for layout spacings. Fixed bug in theme conversion python script. svn-id: r33630 --- gui/themes/default.inc | 2 +- gui/themes/makedeftheme.py | 3 +-- gui/themes/modern.stx | 2 +- 3 files changed, 3 insertions(+), 4 deletions(-) (limited to 'gui/themes') diff --git a/gui/themes/default.inc b/gui/themes/default.inc index fb5bd8dcf3..04fd941819 100644 --- a/gui/themes/default.inc +++ b/gui/themes/default.inc @@ -1 +1 @@ -" " +" " diff --git a/gui/themes/makedeftheme.py b/gui/themes/makedeftheme.py index fc09e6b1f0..f347516fff 100644 --- a/gui/themes/makedeftheme.py +++ b/gui/themes/makedeftheme.py @@ -6,14 +6,13 @@ import re def main(): theme_file = open(sys.argv[1], "r") def_file = open("default.inc", "w") - comment = re.compile("\/\*(.*)\*\/") try: output = "\"" for line in theme_file: output += (line.rstrip("\n\r ").lstrip() + " ") - output = re.sub("\/\*(.*)\*\/", "", output) + output = re.sub("\/\*(.*?)\*\/", "", output) def_file.write(output + "\"\n") finally: theme_file.close() diff --git a/gui/themes/modern.stx b/gui/themes/modern.stx index c26a7856af..b13dc1fc98 100644 --- a/gui/themes/modern.stx +++ b/gui/themes/modern.stx @@ -480,7 +480,6 @@ width = 'Globals.Button.Width' height = 'Globals.Button.Height' /> - + -- cgit v1.2.3