From 7cb23c76a267955790fa58380d65fe55b4a5dcd1 Mon Sep 17 00:00:00 2001
From: Vicent Marti
Date: Sat, 2 Aug 2008 15:15:32 +0000
Subject: Improved looks on the Modern theme in the new GUI. Added support for
including externally the default theme in the code. Added Modern theme as a
separate XML file in the themes/ dir. Added "makedeftheme.py" script to
convert XML themes into include files.
svn-id: r33528
---
gui/themes/default.inc | 1 +
gui/themes/makedeftheme.py | 23 +++
gui/themes/modern.stx | 483 +++++++++++++++++++++++++++++++++++++++++++++
3 files changed, 507 insertions(+)
create mode 100644 gui/themes/default.inc
create mode 100644 gui/themes/makedeftheme.py
create mode 100644 gui/themes/modern.stx
(limited to 'gui/themes')
diff --git a/gui/themes/default.inc b/gui/themes/default.inc
new file mode 100644
index 0000000000..ef3120df44
--- /dev/null
+++ b/gui/themes/default.inc
@@ -0,0 +1 @@
+" "
diff --git a/gui/themes/makedeftheme.py b/gui/themes/makedeftheme.py
new file mode 100644
index 0000000000..fc09e6b1f0
--- /dev/null
+++ b/gui/themes/makedeftheme.py
@@ -0,0 +1,23 @@
+#!/usr/bin/env python
+# encoding: utf-8
+import sys
+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)
+ def_file.write(output + "\"\n")
+ finally:
+ theme_file.close()
+ def_file.close()
+
+if __name__ == "__main__":
+ sys.exit(main())
diff --git a/gui/themes/modern.stx b/gui/themes/modern.stx
new file mode 100644
index 0000000000..978db1e44f
--- /dev/null
+++ b/gui/themes/modern.stx
@@ -0,0 +1,483 @@
+/* ScummVM - Graphic Adventure Engine
+ *
+ * ScummVM is the legal property of its developers, whose names
+ * are too numerous to list here. Please refer to the COPYRIGHT
+ * file distributed with this source distribution.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ *
+ * $URL$
+ * $Id$
+ *
+ */
+
+/* ScummVM Theme XML file */
+/* Modern Theme */
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
--
cgit v1.2.3