68 const int c_fileDefSize = 18;
69 const int c_gitDefSize = 16;
71 const int c_fileDefSize = 22;
72 const int c_gitDefSize = 16;
75 auto getBundle = [&](
BITMAPS aBmp,
int aDefSize )
79 const int c_padding = 1;
80 wxVector<wxBitmap> bmps;
82 for(
double scale : { 1.0, 1.25, 1.5, 1.75, 2.0, 3.0 } )
84 int size = aDefSize *
scale;
85 int paddedSize = size + c_padding * 2 *
scale;
87 wxBitmap bmp = scaled.GetBitmap( wxDefaultSize );
88 wxBitmap padded( paddedSize, paddedSize, 32 );
92 wxMemoryDC dc( padded );
93 dc.DrawBitmap( bmp, c_padding *
scale, c_padding *
scale );
96 bmps.push_back( padded );
99 return wxBitmapBundle::FromBitmaps( bmps );
105 wxVector<wxBitmapBundle> images;
135 images.push_back( getBundle(
BITMAPS::zip, c_fileDefSize ) );
142#if wxCHECK_VERSION( 3, 3, 0 ) || defined( __WXMAC__ )
143 wxVector<wxBitmapBundle> stateImages;
144 stateImages.push_back( wxBitmapBundle( wxBitmap( c_gitDefSize, c_gitDefSize ) ) );
152 stateImages.push_back( wxBitmapBundle( wxBitmap( c_gitDefSize, c_gitDefSize ) ) );
154 SetStateImages( stateImages );
157 wxBitmap blank_bitmap( c_gitDefSize, c_gitDefSize );
181 wxTreeItemIdValue cookie;
182 wxTreeItemId child = GetFirstChild( aParentId, cookie );
184 while( child.IsOk() )
186 aItems.push_back( child );
188 child = GetNextChild( aParentId, cookie );
wxBitmapBundle KiBitmapBundleDef(BITMAPS aBitmap, int aDefHeight)
Constructs and returns a bitmap bundle for the given icon ID, with the default bitmap size being aDef...
wxBitmap KiBitmap(BITMAPS aBitmap, int aHeightTag)
Construct a wxBitmap from an image identifier Returns the image from the active theme if the image ha...