Browse Source

ToolbarButton fix.

tags/2021-05-28
jules 13 years ago
parent
commit
ce513dc37d
2 changed files with 1 additions and 4 deletions
  1. +1
    -0
      modules/juce_gui_basics/buttons/juce_ToolbarButton.cpp
  2. +0
    -4
      modules/juce_gui_basics/widgets/juce_Toolbar.cpp

+ 1
- 0
modules/juce_gui_basics/buttons/juce_ToolbarButton.cpp View File

@@ -73,6 +73,7 @@ void ToolbarButton::updateDrawable()
{
if (currentImage != nullptr)
{
currentImage->setInterceptsMouseClicks (false, false);
currentImage->setTransformToFit (getContentArea().toFloat(), RectanglePlacement::centred);
currentImage->setAlpha (isEnabled() ? 1.0f : 0.5f);
}


+ 0
- 4
modules/juce_gui_basics/widgets/juce_Toolbar.cpp View File

@@ -36,10 +36,6 @@ public:
{
}
~ToolbarSpacerComp()
{
}
bool getToolbarItemSizes (int toolbarThickness, bool /*isToolbarVertical*/,
int& preferredSize, int& minSize, int& maxSize)
{


Loading…
Cancel
Save