aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gui/themebrowser.cpp6
-rw-r--r--gui/themes/classic080.ini1
-rw-r--r--gui/themes/modern.ini1
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"