[Scummvm-cvs-logs] SF.net SVN: scummvm: [24229] scummvm/trunk/gui
lordhoto at users.sourceforge.net
lordhoto at users.sourceforge.net
Sun Oct 8 21:51:28 CEST 2006
Revision: 24229
http://svn.sourceforge.net/scummvm/?rev=24229&view=rev
Author: lordhoto
Date: 2006-10-08 12:51:20 -0700 (Sun, 08 Oct 2006)
Log Message:
-----------
Adding a 'name' field to the theme config which is used for nice theme names in the theme browser.
Modified Paths:
--------------
scummvm/trunk/gui/themebrowser.cpp
scummvm/trunk/gui/themes/classic080.ini
scummvm/trunk/gui/themes/modern.ini
Modified: scummvm/trunk/gui/themebrowser.cpp
===================================================================
--- scummvm/trunk/gui/themebrowser.cpp 2006-10-08 19:47:55 UTC (rev 24228)
+++ scummvm/trunk/gui/themebrowser.cpp 2006-10-08 19:51:20 UTC (rev 24229)
@@ -171,8 +171,12 @@
return false;
out.type = type;
- out.name = out.file;
+ if (cfg.hasKey("name", "theme"))
+ cfg.getKey("name", "theme", out.name);
+ else
+ out.name = out.file;
+
return true;
}
Modified: scummvm/trunk/gui/themes/classic080.ini
===================================================================
--- scummvm/trunk/gui/themes/classic080.ini 2006-10-08 19:47:55 UTC (rev 24228)
+++ scummvm/trunk/gui/themes/classic080.ini 2006-10-08 19:51:20 UTC (rev 24229)
@@ -3,6 +3,7 @@
[theme]
version=1
type=classic
+name=Classic (ScummVM 0.8.0)
[colors]
color=104 104 104
Modified: scummvm/trunk/gui/themes/modern.ini
===================================================================
--- scummvm/trunk/gui/themes/modern.ini 2006-10-08 19:47:55 UTC (rev 24228)
+++ scummvm/trunk/gui/themes/modern.ini 2006-10-08 19:51:20 UTC (rev 24229)
@@ -3,6 +3,7 @@
[theme]
version=18
type=modern
+name=Modern Style
[pixmaps]
pix_dialog_corner="dialog_bkgd_corner.bmp"
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Scummvm-git-logs
mailing list