File tree Expand file tree Collapse file tree 2 files changed +15
-3
lines changed Expand file tree Collapse file tree 2 files changed +15
-3
lines changed Original file line number Diff line number Diff line change @@ -1551,11 +1551,23 @@ protected override void OnRenderButtonBackground(ToolStripItemRenderEventArgs e)
15511551 /// <param name="e">The e.</param>
15521552 protected override void OnRenderItemImage ( ToolStripItemImageRenderEventArgs e )
15531553 {
1554+ // Handle ToolStripButton image recoloring
15541555 if ( e . Item is ToolStripButton button && ColorizeIcons && MyColors != null && button . Image != null )
15551556 {
15561557 Color imageColor = e . Item . Enabled ? MyColors . TextActive : MyColors . TextInactive ;
15571558 using Image adjustedImage = DarkMode . ChangeToColor ( new Bitmap ( button . Image ) , imageColor ) ;
1558- // Draw the image in the correct rectangle (left-aligned if image+text)
1559+ e . Graphics . InterpolationMode = InterpolationMode . HighQualityBilinear ;
1560+ e . Graphics . CompositingQuality = CompositingQuality . HighQuality ;
1561+ e . Graphics . SmoothingMode = SmoothingMode . HighQuality ;
1562+ e . Graphics . DrawImage ( adjustedImage , e . ImageRectangle ) ;
1563+ return ; // Suppress base drawing
1564+ }
1565+
1566+ // Handle ToolStripStatusLabel image recoloring
1567+ if ( e . Item is ToolStripStatusLabel statusLabel && ColorizeIcons && MyColors != null && statusLabel . Image != null )
1568+ {
1569+ Color imageColor = e . Item . Enabled ? MyColors . TextActive : MyColors . TextInactive ;
1570+ using Image adjustedImage = DarkMode . ChangeToColor ( new Bitmap ( statusLabel . Image ) , imageColor ) ;
15591571 e . Graphics . InterpolationMode = InterpolationMode . HighQualityBilinear ;
15601572 e . Graphics . CompositingQuality = CompositingQuality . HighQuality ;
15611573 e . Graphics . SmoothingMode = SmoothingMode . HighQuality ;
Original file line number Diff line number Diff line change 1313 <StartupObject >SQL_Document_Builder.Program</StartupObject >
1414 <ApplicationIcon >SQLDocBuilder.ico</ApplicationIcon >
1515 <PackageIcon >SQL_Doc.png</PackageIcon >
16- <AssemblyVersion >3.6.2 </AssemblyVersion >
17- <FileVersion >3.6.2 </FileVersion >
16+ <AssemblyVersion >3.6.3 </AssemblyVersion >
17+ <FileVersion >3.6.3 </FileVersion >
1818 <RepositoryUrl >https://github.com/SherlockSoftwareInc/SQL-Document-Builder</RepositoryUrl >
1919 <GeneratePackageOnBuild >True</GeneratePackageOnBuild >
2020 <Title >SQL Server Script and Document Builder</Title >
You can’t perform that action at this time.
0 commit comments