aboutsummaryrefslogtreecommitdiff
path: root/gui
diff options
context:
space:
mode:
authorVicent Marti2008-08-18 19:06:58 +0000
committerVicent Marti2008-08-18 19:06:58 +0000
commitf6ee4117840ea084a0bedda9731108f79ef0e3c2 (patch)
tree745a5cdce12a257ab48c485c8043861542b49be4 /gui
parent5201a46054a1390739b21532c45e0e9926b857bc (diff)
downloadscummvm-rg350-f6ee4117840ea084a0bedda9731108f79ef0e3c2.tar.gz
scummvm-rg350-f6ee4117840ea084a0bedda9731108f79ef0e3c2.tar.bz2
scummvm-rg350-f6ee4117840ea084a0bedda9731108f79ef0e3c2.zip
Misc GFX fixes.
Bugfix: Theme folder loading. svn-id: r34002
Diffstat (limited to 'gui')
-rw-r--r--gui/ThemeRenderer.cpp6
-rw-r--r--gui/themebrowser.cpp2
-rw-r--r--gui/themes/scummclassic.zipbin40158 -> 40156 bytes
-rw-r--r--gui/themes/scummclassic/classic_gfx.stx4
-rw-r--r--gui/themes/scummodern.zipbin122841 -> 123105 bytes
-rw-r--r--gui/themes/scummodern/scummodern_gfx.stx16
-rw-r--r--gui/themes/scummodern/scummodern_layout.stx6
7 files changed, 23 insertions, 11 deletions
diff --git a/gui/ThemeRenderer.cpp b/gui/ThemeRenderer.cpp
index c272de96f9..ab186101b1 100644
--- a/gui/ThemeRenderer.cpp
+++ b/gui/ThemeRenderer.cpp
@@ -483,9 +483,9 @@ bool ThemeRenderer::loadThemeXML(Common::String themeName) {
}
} else {
#endif
- FilesystemNode node(themeName);
+
+ FilesystemNode node(themeName);
if (node.exists() && node.isReadable() && node.isDirectory()) {
-
FSList fslist;
if (!node.getChildren(fslist, FilesystemNode::kListFilesOnly))
return false;
@@ -795,7 +795,7 @@ void ThemeRenderer::drawPopUpWidget(const Common::Rect &r, const Common::String
if (!sel.empty()) {
Common::Rect text(r.left, r.top, r.right - 16, r.bottom);
- queueDDText(getTextData(dd), text, sel, false, false, _widgets[dd]->_textAlignH, _widgets[dd]->_textAlignV);
+ queueDDText(getTextData(dd), text, sel, false, false, _widgets[dd]->_textAlignH, _widgets[dd]->_textAlignV, deltax);
}
}
diff --git a/gui/themebrowser.cpp b/gui/themebrowser.cpp
index dd15742258..f764b05f6a 100644
--- a/gui/themebrowser.cpp
+++ b/gui/themebrowser.cpp
@@ -189,7 +189,7 @@ void ThemeBrowser::addDir(ThList &list, const Common::String &dir, int level) {
}
bool ThemeBrowser::isTheme(const FilesystemNode &node, Entry &out) {
- out.file = node.getName();
+ out.file = node.getPath();
#ifdef USE_ZLIB
if (!out.file.hasSuffix(".zip") && !node.isDirectory())
diff --git a/gui/themes/scummclassic.zip b/gui/themes/scummclassic.zip
index 4015f24b93..768d02b7f6 100644
--- a/gui/themes/scummclassic.zip
+++ b/gui/themes/scummclassic.zip
Binary files differ
diff --git a/gui/themes/scummclassic/classic_gfx.stx b/gui/themes/scummclassic/classic_gfx.stx
index 6c96dcebdb..d9189743d3 100644
--- a/gui/themes/scummclassic/classic_gfx.stx
+++ b/gui/themes/scummclassic/classic_gfx.stx
@@ -234,7 +234,7 @@
/>
<text font = 'text_default'
vertical_align = 'center'
- horizontal_align = 'right'
+ horizontal_align = 'left'
/>
</drawdata>
@@ -255,7 +255,7 @@
/>
<text font = 'text_hover'
vertical_align = 'center'
- horizontal_align = 'right'
+ horizontal_align = 'left'
/>
</drawdata>
diff --git a/gui/themes/scummodern.zip b/gui/themes/scummodern.zip
index a6c3c31625..db728c5169 100644
--- a/gui/themes/scummodern.zip
+++ b/gui/themes/scummodern.zip
Binary files differ
diff --git a/gui/themes/scummodern/scummodern_gfx.stx b/gui/themes/scummodern/scummodern_gfx.stx
index 37d6590e3c..c67dcee4d5 100644
--- a/gui/themes/scummodern/scummodern_gfx.stx
+++ b/gui/themes/scummodern/scummodern_gfx.stx
@@ -300,7 +300,7 @@
/>
<text font = 'text_default'
vertical_align = 'center'
- horizontal_align = 'right'
+ horizontal_align = 'left'
/>
</drawdata>
@@ -325,7 +325,7 @@
/>
<text font = 'text_hover'
vertical_align = 'center'
- horizontal_align = 'right'
+ horizontal_align = 'left'
/>
</drawdata>
@@ -472,4 +472,16 @@
shadow = 3
/>
</drawdata>
+
+ <drawdata id = 'widget_small' cache = false>
+ <drawstep func = 'roundedsq'
+ radius = 8
+ stroke = 0
+ gradient_start = 'blandyellow'
+ gradient_end = 'xtrabrightred'
+ gradient_factor = '6'
+ fill = 'gradient'
+ shadow = 3
+ />
+ </drawdata>
</render_info> \ No newline at end of file
diff --git a/gui/themes/scummodern/scummodern_layout.stx b/gui/themes/scummodern/scummodern_layout.stx
index 61545d0ffa..9d3c009eff 100644
--- a/gui/themes/scummodern/scummodern_layout.stx
+++ b/gui/themes/scummodern/scummodern_layout.stx
@@ -261,13 +261,13 @@
<layout type = 'horizontal' padding = '0, 0, 0, 0'>
<widget name = 'mcFontButton'
type = 'Button'
+ />
+ <widget name = 'mcFontPath'
+ height = 'Globals.Line.Height'
/>
<widget name = 'mcFontClearButton'
height = 'Globals.Line.Height'
width = 'Globals.Line.Height'
- />
- <widget name = 'mcFontPath'
- height = 'Globals.Line.Height'
/>
</layout>
<widget name = 'mcMixedCheckbox'