tdf#106224 Support extra large savemodified icon

For now just duplicated the large icon in Galaxy,
to satisfy the resource compiler.

Change-Id: Icf31df0185a1ec7f080d9600b2536bcaa5d0783e
This commit is contained in:
Maxim Monastirsky 2017-03-06 00:28:09 +02:00
parent b398dacbb4
commit 98a03d9b0d
4 changed files with 12 additions and 2 deletions

View File

@ -55,6 +55,7 @@
#define BMP_SAVEMODIFIED_SMALL (RID_IMAGE_START+0)
#define BMP_SAVEMODIFIED_LARGE (RID_IMAGE_START+1)
#define BMP_SAVEMODIFIED_EXTRALARGE (RID_IMAGE_START+2)
#define POPUPMENU_TOOLBAR_QUICKCUSTOMIZATION (RID_MENU_START+0)

View File

@ -214,4 +214,9 @@ Bitmap BMP_SAVEMODIFIED_LARGE
File = "savemodified_large.png";
};
Bitmap BMP_SAVEMODIFIED_EXTRALARGE
{
File = "savemodified_extralarge.png";
};
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */

View File

@ -507,8 +507,12 @@ void SaveToolbarController::updateImage()
}
else if ( m_bModified )
{
Image aResImage(BitmapEx(eImageType == vcl::ImageType::Size16 ? FwkResId(BMP_SAVEMODIFIED_SMALL) : FwkResId(BMP_SAVEMODIFIED_LARGE)));
aImage = aResImage;
if (eImageType == vcl::ImageType::Size26)
aImage = Image(BitmapEx(FwkResId(BMP_SAVEMODIFIED_LARGE)));
else if (eImageType == vcl::ImageType::Size32)
aImage = Image(BitmapEx(FwkResId(BMP_SAVEMODIFIED_EXTRALARGE)));
else
aImage = Image(BitmapEx(FwkResId(BMP_SAVEMODIFIED_SMALL)));
}
if ( !aImage )

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB