diff options
-rw-r--r-- | icon-themes/colibre/res/base_thumbnail_192.png | bin | 0 -> 7179 bytes | |||
-rw-r--r-- | icon-themes/colibre/res/base_thumbnail_256.png | bin | 0 -> 8976 bytes | |||
-rw-r--r-- | include/sfx2/thumbnailview.hxx | 2 | ||||
-rw-r--r-- | sfx2/inc/bitmaps.hlst | 2 | ||||
-rw-r--r-- | sfx2/source/control/recentdocsview.cxx | 7 |
5 files changed, 11 insertions, 0 deletions
diff --git a/icon-themes/colibre/res/base_thumbnail_192.png b/icon-themes/colibre/res/base_thumbnail_192.png Binary files differnew file mode 100644 index 000000000000..660460a85979 --- /dev/null +++ b/icon-themes/colibre/res/base_thumbnail_192.png diff --git a/icon-themes/colibre/res/base_thumbnail_256.png b/icon-themes/colibre/res/base_thumbnail_256.png Binary files differnew file mode 100644 index 000000000000..93960add6a97 --- /dev/null +++ b/icon-themes/colibre/res/base_thumbnail_256.png diff --git a/include/sfx2/thumbnailview.hxx b/include/sfx2/thumbnailview.hxx index 6d98d12ea441..c50b7bb91987 100644 --- a/include/sfx2/thumbnailview.hxx +++ b/include/sfx2/thumbnailview.hxx @@ -253,6 +253,8 @@ public: static BitmapEx readThumbnail(const OUString &msURL); + tools::Long ItemHeight() const { return mnItemHeight; }; + protected: virtual bool KeyInput( const KeyEvent& rKEvt ) override; diff --git a/sfx2/inc/bitmaps.hlst b/sfx2/inc/bitmaps.hlst index de8d6555d19d..3c236ff50d64 100644 --- a/sfx2/inc/bitmaps.hlst +++ b/sfx2/inc/bitmaps.hlst @@ -74,6 +74,8 @@ #define SFX_FILE_THUMBNAIL_DATABASE "res/odb_48_8.png" #define SFX_FILE_THUMBNAIL_MATH "res/odf_48_8.png" #define SFX_FILE_THUMBNAIL_DEFAULT "res/mainapp_48_8.png" +#define SFX_THUMBNAIL_BASE_192 "res/base_thumbnail_192.png" +#define SFX_THUMBNAIL_BASE_256 "res/base_thumbnail_256.png" #define BMP_RECENTDOC_REMOVE "res/recentdoc_remove.png" #define BMP_RECENTDOC_REMOVE_HIGHLIGHTED "res/recentdoc_remove_highlighted.png" diff --git a/sfx2/source/control/recentdocsview.cxx b/sfx2/source/control/recentdocsview.cxx index be9b179d66d4..d137d366837c 100644 --- a/sfx2/source/control/recentdocsview.cxx +++ b/sfx2/source/control/recentdocsview.cxx @@ -266,6 +266,13 @@ void RecentDocsView::Reload() SvMemoryStream aStream(aDecoded.getArray(), aDecoded.getLength(), StreamMode::READ); vcl::PNGReader aReader(aStream); aThumbnail = aReader.Read(); + } else + { + INetURLObject aUrl(aURL); + if (mnFileTypes & ApplicationType::TYPE_DATABASE && typeMatchesExtension(ApplicationType::TYPE_DATABASE, aUrl.getExtension())) + { + aThumbnail = BitmapEx(ThumbnailView::ItemHeight() > 192 ? SFX_THUMBNAIL_BASE_256 : SFX_THUMBNAIL_BASE_192); + } } } } |