diff options
author | Eugene Sandulenko | 2010-07-23 19:36:47 +0000 |
---|---|---|
committer | Eugene Sandulenko | 2010-07-23 19:36:47 +0000 |
commit | d6695e180cfedb723a670d94d8ed132ed896498d (patch) | |
tree | 488fc9682e3c448fc29d2d98cba7b51b4efe9151 /gui/themes | |
parent | 0e5aa06db03e782137a40942b1d5fe97dfbcfad0 (diff) | |
download | scummvm-rg350-d6695e180cfedb723a670d94d8ed132ed896498d.tar.gz scummvm-rg350-d6695e180cfedb723a670d94d8ed132ed896498d.tar.bz2 scummvm-rg350-d6695e180cfedb723a670d94d8ed132ed896498d.zip |
GUI: Fix tooltip drawing
With help of Tanoku tooltips were switched from widgets to dialogs
which helped to fix nasty bug with background not being restored.
Although it is basically a hack around inconsistent font backbuffering
in our GUI code, for the time being it is feasible.
The patch was extended with way to specify tooltip background in the
theme file.
svn-id: r51217
Diffstat (limited to 'gui/themes')
-rw-r--r-- | gui/themes/default.inc | 7 | ||||
-rw-r--r-- | gui/themes/scummclassic.zip | bin | 56900 -> 57060 bytes | |||
-rw-r--r-- | gui/themes/scummclassic/classic_gfx.stx | 8 | ||||
-rw-r--r-- | gui/themes/scummmodern.zip | bin | 164185 -> 164369 bytes | |||
-rw-r--r-- | gui/themes/scummmodern/scummmodern_gfx.stx | 9 |
5 files changed, 24 insertions, 0 deletions
diff --git a/gui/themes/default.inc b/gui/themes/default.inc index 086fecc123..915ec55dca 100644 --- a/gui/themes/default.inc +++ b/gui/themes/default.inc @@ -877,6 +877,13 @@ "bevel='2' " "/> " "</drawdata> " +"<drawdata id='tooltip_bg' cache='false'> " +"<drawstep func='bevelsq' " +"bevel='2' " +"fill='foreground' " +"fg_color='black' " +"/> " +"</drawdata> " "<drawdata id='separator' cache='false'> " "<drawstep func='square' " "fill='foreground' " diff --git a/gui/themes/scummclassic.zip b/gui/themes/scummclassic.zip Binary files differindex b5866337ad..4a31a8ebb9 100644 --- a/gui/themes/scummclassic.zip +++ b/gui/themes/scummclassic.zip diff --git a/gui/themes/scummclassic/classic_gfx.stx b/gui/themes/scummclassic/classic_gfx.stx index 8c03aa932c..d672db2540 100644 --- a/gui/themes/scummclassic/classic_gfx.stx +++ b/gui/themes/scummclassic/classic_gfx.stx @@ -142,6 +142,14 @@ /> </drawdata> + <drawdata id = 'tooltip_bg' cache = 'false'> + <drawstep func = 'bevelsq' + bevel = '2' + fill = 'foreground' + fg_color = 'black' + /> + </drawdata> + <drawdata id = 'separator' cache = 'false'> <drawstep func = 'square' fill = 'foreground' diff --git a/gui/themes/scummmodern.zip b/gui/themes/scummmodern.zip Binary files differindex aba0c944c3..b5e8f24019 100644 --- a/gui/themes/scummmodern.zip +++ b/gui/themes/scummmodern.zip diff --git a/gui/themes/scummmodern/scummmodern_gfx.stx b/gui/themes/scummmodern/scummmodern_gfx.stx index ad41475a96..cfe00a7016 100644 --- a/gui/themes/scummmodern/scummmodern_gfx.stx +++ b/gui/themes/scummmodern/scummmodern_gfx.stx @@ -516,6 +516,15 @@ /> </drawdata> + <!-- Tooltip --> + <drawdata id = 'tooltip_bg' cache = 'false'> + <drawstep func = 'square' + fill = 'foreground' + fg_color = 'blandyellow' + shadow = '3' + /> + </drawdata> + <!-- Idle button --> <drawdata id = 'button_idle' cache = 'false'> <text font = 'text_button' |