aboutsummaryrefslogtreecommitdiff
path: root/gui/options.cpp
diff options
context:
space:
mode:
authorEugene Sandulenko2011-10-24 18:46:11 +0100
committerEugene Sandulenko2011-10-25 14:56:05 +0100
commit202cce30b3d6e1e3912f6eee97a1e8a72a80d70f (patch)
treed1ebad550126fd89a7d84b99a670544e7403c290 /gui/options.cpp
parentd99e855606f8d7a42d7e05bcd2a74848ae905800 (diff)
downloadscummvm-rg350-202cce30b3d6e1e3912f6eee97a1e8a72a80d70f.tar.gz
scummvm-rg350-202cce30b3d6e1e3912f6eee97a1e8a72a80d70f.tar.bz2
scummvm-rg350-202cce30b3d6e1e3912f6eee97a1e8a72a80d70f.zip
LAUNCHER: Improved clear soundfont button
Diffstat (limited to 'gui/options.cpp')
-rw-r--r--gui/options.cpp10
1 files changed, 9 insertions, 1 deletions
diff --git a/gui/options.cpp b/gui/options.cpp
index e93092f954..1b9316f449 100644
--- a/gui/options.cpp
+++ b/gui/options.cpp
@@ -26,6 +26,7 @@
#include "gui/options.h"
#include "gui/widgets/popup.h"
#include "gui/widgets/tab.h"
+#include "gui/ThemeEval.h"
#include "common/fs.h"
#include "common/config-manager.h"
@@ -846,7 +847,14 @@ void OptionsDialog::addMIDIControls(GuiObject *boss, const Common::String &prefi
else
_soundFontButton = new ButtonWidget(boss, prefix + "mcFontButton", _c("SoundFont:", "lowres"), _("SoundFont is supported by some audio cards, Fluidsynth and Timidity"), kChooseSoundFontCmd);
_soundFont = new StaticTextWidget(boss, prefix + "mcFontPath", _c("None", "soundfont"), _("SoundFont is supported by some audio cards, Fluidsynth and Timidity"));
- _soundFontClearButton = new ButtonWidget(boss, prefix + "mcFontClearButton", "C", _("Clear value"), kClearSoundFontCmd);
+#ifndef DISABLE_FANCY_THEMES
+ if (g_gui.xmlEval()->getVar("Globals.ShowSearchPic") == 1 && g_gui.theme()->supportsImages()) {
+ _soundFontClearButton = new PicButtonWidget(boss, prefix + "mcFontClearButton", _("Clear value"), kClearSoundFontCmd);
+ ((PicButtonWidget *)_soundFontClearButton)->useThemeTransparency(true);
+ ((PicButtonWidget *)_soundFontClearButton)->setGfx(g_gui.theme()->getImageSurface(ThemeEngine::kImageEraser));
+ } else
+#endif
+ _soundFontClearButton = new ButtonWidget(boss, prefix + "mcFontClearButton", "C", _("Clear value"), kClearSoundFontCmd);
// Multi midi setting
_multiMidiCheckbox = new CheckboxWidget(boss, prefix + "mcMixedCheckbox", _("Mixed AdLib/MIDI mode"), _("Use both MIDI and AdLib sound generation"));