diff options
author | Johannes Schickel | 2006-10-08 19:51:20 +0000 |
---|---|---|
committer | Johannes Schickel | 2006-10-08 19:51:20 +0000 |
commit | 97d9293476b4df337e1e25e68ca81ffd36002683 (patch) | |
tree | 81af7b075b7f56d8de4968a14535af25cca3c7b8 /gui | |
parent | 51edc30e7125308f2aa7404c4202833b195c2d2f (diff) | |
download | scummvm-rg350-97d9293476b4df337e1e25e68ca81ffd36002683.tar.gz scummvm-rg350-97d9293476b4df337e1e25e68ca81ffd36002683.tar.bz2 scummvm-rg350-97d9293476b4df337e1e25e68ca81ffd36002683.zip |
Adding a 'name' field to the theme config which is used for nice theme names in the theme browser.
svn-id: r24229
Diffstat (limited to 'gui')
-rw-r--r-- | gui/themebrowser.cpp | 6 | ||||
-rw-r--r-- | gui/themes/classic080.ini | 1 | ||||
-rw-r--r-- | gui/themes/modern.ini | 1 |
3 files changed, 7 insertions, 1 deletions
diff --git a/gui/themebrowser.cpp b/gui/themebrowser.cpp index d81d43db6f..8809ed149a 100644 --- a/gui/themebrowser.cpp +++ b/gui/themebrowser.cpp @@ -171,7 +171,11 @@ bool ThemeBrowser::isTheme(const FilesystemNode &node, Entry &out) { 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; } diff --git a/gui/themes/classic080.ini b/gui/themes/classic080.ini index 91f91b1e80..d9ea7da855 100644 --- a/gui/themes/classic080.ini +++ b/gui/themes/classic080.ini @@ -3,6 +3,7 @@ [theme] version=1 type=classic +name=Classic (ScummVM 0.8.0) [colors] color=104 104 104 diff --git a/gui/themes/modern.ini b/gui/themes/modern.ini index f656ee96fd..dc01a3eb10 100644 --- a/gui/themes/modern.ini +++ b/gui/themes/modern.ini @@ -3,6 +3,7 @@ [theme] version=18 type=modern +name=Modern Style [pixmaps] pix_dialog_corner="dialog_bkgd_corner.bmp" |