Browse Source

Projucer: Tweak button L&F

tags/2021-05-28
ed 8 years ago
parent
commit
139341926c
1 changed files with 1 additions and 2 deletions
  1. +1
    -2
      extras/Projucer/Source/Utility/UI/jucer_ProjucerLookAndFeel.cpp

+ 1
- 2
extras/Projucer/Source/Utility/UI/jucer_ProjucerLookAndFeel.cpp View File

@@ -108,8 +108,7 @@ void ProjucerLookAndFeel::drawButtonBackground (Graphics& g,
const auto cornerSize = button.findParentComponentOfClass<PropertyComponent>() != nullptr ? 0.0f : 3.0f;
const auto bounds = button.getLocalBounds().toFloat();
auto baseColour = backgroundColour.withMultipliedSaturation (button.hasKeyboardFocus (true) ? 1.3f : 0.9f)
.withMultipliedAlpha (button.isEnabled() ? 1.0f : 0.5f);
auto baseColour = backgroundColour.withMultipliedAlpha (button.isEnabled() ? 1.0f : 0.5f);
if (isButtonDown || isMouseOverButton)
baseColour = baseColour.contrasting (isButtonDown ? 0.2f : 0.05f);


Loading…
Cancel
Save