Browse Source

Made ToggleButton ticks in the Projucer larger and brighter for better visibility

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

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

@@ -173,7 +173,7 @@ void ProjucerLookAndFeel::drawToggleButton (Graphics& g, ToggleButton& button, b
{ {
g.setColour (button.findColour (ToggleButton::tickColourId)); g.setColour (button.findColour (ToggleButton::tickColourId));
const auto tick = getTickShape (0.75f); const auto tick = getTickShape (0.75f);
g.fillPath (tick, tick.getTransformToScaleToFit (rectBounds.reduced (4, 5).toFloat(), false));
g.fillPath (tick, tick.getTransformToScaleToFit (rectBounds.reduced (2).toFloat(), false));
} }
if (! isTextEmpty) if (! isTextEmpty)
@@ -501,7 +501,7 @@ void ProjucerLookAndFeel::setupColours()
setColour (BooleanPropertyComponent::outlineColourId, Colours::transparentBlack); setColour (BooleanPropertyComponent::outlineColourId, Colours::transparentBlack);
setColour (BooleanPropertyComponent::backgroundColourId, findColour (widgetBackgroundColourId)); setColour (BooleanPropertyComponent::backgroundColourId, findColour (widgetBackgroundColourId));
setColour (ToggleButton::tickDisabledColourId, Colour (0xffa9a9a9)); setColour (ToggleButton::tickDisabledColourId, Colour (0xffa9a9a9));
setColour (ToggleButton::tickColourId, findColour (defaultButtonBackgroundColourId));
setColour (ToggleButton::tickColourId, findColour (defaultButtonBackgroundColourId).withMultipliedBrightness(1.3f));
setColour (CodeEditorComponent::backgroundColourId, findColour (secondaryBackgroundColourId)); setColour (CodeEditorComponent::backgroundColourId, findColour (secondaryBackgroundColourId));
setColour (CodeEditorComponent::lineNumberTextId, findColour (codeEditorLineNumberColourId)); setColour (CodeEditorComponent::lineNumberTextId, findColour (codeEditorLineNumberColourId));
setColour (CodeEditorComponent::lineNumberBackgroundId, findColour (backgroundColourId)); setColour (CodeEditorComponent::lineNumberBackgroundId, findColour (backgroundColourId));


Loading…
Cancel
Save