-
Notifications
You must be signed in to change notification settings - Fork 957
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
24 changed files
with
1,861 additions
and
131 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,91 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Drawing; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
using System.Windows.Forms; | ||
|
||
namespace Optimizer | ||
{ | ||
internal class ToolStripRendererMaterial : ToolStripProfessionalRenderer | ||
{ | ||
internal ToolStripRendererMaterial() : base(new ColorsMaterial()) | ||
{ | ||
|
||
} | ||
} | ||
|
||
internal class ColorsMaterial : ProfessionalColorTable | ||
{ | ||
public override Color ImageMarginGradientBegin | ||
{ | ||
get | ||
{ | ||
return Options.BackgroundColor; | ||
} | ||
} | ||
public override Color ImageMarginGradientMiddle | ||
{ | ||
get | ||
{ | ||
return Options.BackgroundColor; | ||
} | ||
} | ||
public override Color ImageMarginGradientEnd | ||
{ | ||
get | ||
{ | ||
return Options.BackgroundColor; | ||
} | ||
} | ||
|
||
public override Color ToolStripBorder | ||
{ | ||
get | ||
{ | ||
return Options.ForegroundColor; | ||
} | ||
} | ||
|
||
public override Color MenuBorder | ||
{ | ||
get | ||
{ | ||
return Options.ForegroundColor; | ||
} | ||
} | ||
|
||
public override Color MenuItemSelected | ||
{ | ||
get | ||
{ | ||
return Options.ForegroundAccentColor; | ||
} | ||
} | ||
|
||
public override Color MenuItemSelectedGradientBegin | ||
{ | ||
get | ||
{ | ||
return Options.ForegroundAccentColor; | ||
} | ||
} | ||
|
||
public override Color MenuItemSelectedGradientEnd | ||
{ | ||
get | ||
{ | ||
return Options.ForegroundAccentColor; | ||
} | ||
} | ||
|
||
public override Color MenuItemBorder | ||
{ | ||
get | ||
{ | ||
return Options.ForegroundColor; | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.