diff options
author | Alexander Tkachev | 2016-07-25 19:25:49 +0600 |
---|---|---|
committer | Alexander Tkachev | 2016-08-24 16:07:55 +0600 |
commit | 091ff83ed66336fffada6453a34710214ac3576d (patch) | |
tree | 2d5fb559e5c7d95bd8085c937c97fe8fe3751821 /gui | |
parent | f39b6ed4ac414d381ed0f46043586b26c05092a1 (diff) | |
download | scummvm-rg350-091ff83ed66336fffada6453a34710214ac3576d.tar.gz scummvm-rg350-091ff83ed66336fffada6453a34710214ac3576d.tar.bz2 scummvm-rg350-091ff83ed66336fffada6453a34710214ac3576d.zip |
GUI: Add Storage providers logos
StorageWizardDialog now shows logo of the Storage being connected (in
modern highres theme).
Diffstat (limited to 'gui')
-rw-r--r-- | gui/ThemeEngine.cpp | 3 | ||||
-rw-r--r-- | gui/ThemeEngine.h | 3 | ||||
-rw-r--r-- | gui/storagewizarddialog.cpp | 15 | ||||
-rw-r--r-- | gui/themes/scummclassic/classic_layout.stx | 4 | ||||
-rw-r--r-- | gui/themes/scummmodern.zip | bin | 1545916 -> 1649476 bytes | |||
-rw-r--r-- | gui/themes/scummmodern/box.bmp | bin | 0 -> 35806 bytes | |||
-rw-r--r-- | gui/themes/scummmodern/dropbox.bmp | bin | 40074 -> 35806 bytes | |||
-rw-r--r-- | gui/themes/scummmodern/googledrive.bmp | bin | 0 -> 35806 bytes | |||
-rw-r--r-- | gui/themes/scummmodern/onedrive.bmp | bin | 0 -> 35806 bytes | |||
-rw-r--r-- | gui/themes/scummmodern/scummmodern_gfx.stx | 3 | ||||
-rw-r--r-- | gui/themes/scummmodern/scummmodern_layout.stx | 4 |
11 files changed, 27 insertions, 5 deletions
diff --git a/gui/ThemeEngine.cpp b/gui/ThemeEngine.cpp index e400e695db..96108bccce 100644 --- a/gui/ThemeEngine.cpp +++ b/gui/ThemeEngine.cpp @@ -62,6 +62,9 @@ const char *const ThemeEngine::kImageEditSmallButton = "editbtn_small.bmp"; const char *const ThemeEngine::kImageSwitchModeSmallButton = "switchbtn_small.bmp"; const char *const ThemeEngine::kImageFastReplaySmallButton = "fastreplay_small.bmp"; const char *const ThemeEngine::kImageDropboxLogo = "dropbox.bmp"; +const char *const ThemeEngine::kImageOneDriveLogo = "onedrive.bmp"; +const char *const ThemeEngine::kImageGoogleDriveLogo = "googledrive.bmp"; +const char *const ThemeEngine::kImageBoxLogo = "box.bmp"; struct TextDrawData { const Graphics::Font *_fontPtr; diff --git a/gui/ThemeEngine.h b/gui/ThemeEngine.h index eb9b7daefa..7506cee95f 100644 --- a/gui/ThemeEngine.h +++ b/gui/ThemeEngine.h @@ -251,6 +251,9 @@ public: static const char *const kImageSwitchModeSmallButton; ///< Switch mode button in recorder onscreen dialog (for 320xY) static const char *const kImageFastReplaySmallButton; ///< Fast playback mode button in recorder onscreen dialog (for 320xY) static const char *const kImageDropboxLogo; ///< Dropbox logo used in the StorageWizardDialog + static const char *const kImageOneDriveLogo; ///< OneDrive logo used in the StorageWizardDialog + static const char *const kImageGoogleDriveLogo; ///< Google Drive logo used in the StorageWizardDialog + static const char *const kImageBoxLogo; ///< Box logo used in the StorageWizardDialog /** * Graphics mode enumeration. diff --git a/gui/storagewizarddialog.cpp b/gui/storagewizarddialog.cpp index f1b1796b5c..ba3ebd8597 100644 --- a/gui/storagewizarddialog.cpp +++ b/gui/storagewizarddialog.cpp @@ -88,7 +88,20 @@ StorageWizardDialog::StorageWizardDialog(uint32 storageId): #ifndef DISABLE_FANCY_THEMES if (g_gui.theme()->supportsImages()) { _picture->useThemeTransparency(true); - _picture->setGfx(g_gui.theme()->getImageSurface(ThemeEngine::kImageDropboxLogo)); + switch (_storageId) { + case Cloud::kStorageDropboxId: + _picture->setGfx(g_gui.theme()->getImageSurface(ThemeEngine::kImageDropboxLogo)); + break; + case Cloud::kStorageOneDriveId: + _picture->setGfx(g_gui.theme()->getImageSurface(ThemeEngine::kImageOneDriveLogo)); + break; + case Cloud::kStorageGoogleDriveId: + _picture->setGfx(g_gui.theme()->getImageSurface(ThemeEngine::kImageGoogleDriveLogo)); + break; + case Cloud::kStorageBoxId: + _picture->setGfx(g_gui.theme()->getImageSurface(ThemeEngine::kImageBoxLogo)); + break; + } } #endif diff --git a/gui/themes/scummclassic/classic_layout.stx b/gui/themes/scummclassic/classic_layout.stx index 0b030ff799..79320b0756 100644 --- a/gui/themes/scummclassic/classic_layout.stx +++ b/gui/themes/scummclassic/classic_layout.stx @@ -645,8 +645,8 @@ <layout type = 'horizontal' padding = '0, 0, 0, 0' spacing = '10' center = 'true'> <layout type = 'vertical' padding = '0, 0, 0, 0' spacing = '6'> <widget name = 'Picture' - width = '115' - height = '115' + width = '109' + height = '109' /> <widget name = 'OpenUrlButton' type = 'Button' diff --git a/gui/themes/scummmodern.zip b/gui/themes/scummmodern.zip Binary files differindex 23662b1da8..3c1fe66f62 100644 --- a/gui/themes/scummmodern.zip +++ b/gui/themes/scummmodern.zip diff --git a/gui/themes/scummmodern/box.bmp b/gui/themes/scummmodern/box.bmp Binary files differnew file mode 100644 index 0000000000..21fb650f02 --- /dev/null +++ b/gui/themes/scummmodern/box.bmp diff --git a/gui/themes/scummmodern/dropbox.bmp b/gui/themes/scummmodern/dropbox.bmp Binary files differindex bfb9e90792..4ed95f0009 100644 --- a/gui/themes/scummmodern/dropbox.bmp +++ b/gui/themes/scummmodern/dropbox.bmp diff --git a/gui/themes/scummmodern/googledrive.bmp b/gui/themes/scummmodern/googledrive.bmp Binary files differnew file mode 100644 index 0000000000..30377a5f74 --- /dev/null +++ b/gui/themes/scummmodern/googledrive.bmp diff --git a/gui/themes/scummmodern/onedrive.bmp b/gui/themes/scummmodern/onedrive.bmp Binary files differnew file mode 100644 index 0000000000..cd26d71d3c --- /dev/null +++ b/gui/themes/scummmodern/onedrive.bmp diff --git a/gui/themes/scummmodern/scummmodern_gfx.stx b/gui/themes/scummmodern/scummmodern_gfx.stx index d7b35b10b9..e3d2152e4b 100644 --- a/gui/themes/scummmodern/scummmodern_gfx.stx +++ b/gui/themes/scummmodern/scummmodern_gfx.stx @@ -120,6 +120,9 @@ <bitmap filename = 'switchbtn_small.bmp'/> <bitmap filename = 'fastreplay_small.bmp'/> <bitmap filename = 'dropbox.bmp'/> + <bitmap filename = 'onedrive.bmp'/> + <bitmap filename = 'googledrive.bmp'/> + <bitmap filename = 'box.bmp'/> </bitmaps> <fonts> diff --git a/gui/themes/scummmodern/scummmodern_layout.stx b/gui/themes/scummmodern/scummmodern_layout.stx index f1fd702c06..f4fa200cda 100644 --- a/gui/themes/scummmodern/scummmodern_layout.stx +++ b/gui/themes/scummmodern/scummmodern_layout.stx @@ -659,8 +659,8 @@ <layout type = 'horizontal' padding = '0, 0, 0, 0' spacing = '10' center = 'true'> <layout type = 'vertical' padding = '0, 0, 0, 0' spacing = '6'> <widget name = 'Picture' - width = '115' - height = '115' + width = '109' + height = '109' /> <widget name = 'OpenUrlButton' type = 'Button' |