IDEA-163443 Change colors for the toolbar button in IntelliJ LaF

Fix for Darcula
This commit is contained in:
Vassiliy.Kudryashov
2017-02-21 21:34:37 +03:00
parent 556290b406
commit 8e41faeee0
@@ -83,7 +83,7 @@ public class IdeaActionButtonLook extends ActionButtonLook {
}
else {
final boolean dark = UIUtil.isUnderDarcula();
final Color pushed = UIUtil.isUnderWin10LookAndFeel() ? Gray.xE6 : Gray.xD0;
final Color pushed = UIUtil.isUnderWin10LookAndFeel() ? Gray.xE6 : dark? ColorUtil.shift(bg, 1.428D) : Gray.xD0;
final Color dark_normal = Gray._255.withAlpha(40);
g.setColor(state == ActionButtonComponent.PUSHED ? pushed : dark ? dark_normal : Gray.xD9);
((Graphics2D)g).fill(getShape(size));