Skip to content

Commit

Permalink
- fixed #415
Browse files Browse the repository at this point in the history
  • Loading branch information
Christoph Hart committed Sep 13, 2023
1 parent dde7adb commit 330e14d
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 8 deletions.
3 changes: 3 additions & 0 deletions hi_core/hi_components/floating_layout/FloatingTile.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2168,6 +2168,9 @@ bool FloatingTile::LayoutHelpers::showCloseButton(const FloatingTile* t)
{
auto pt = t->getParentType();

if(t->findParentComponentOfClass<ScriptContentComponent>() != nullptr)
return false;

if (t->closeTogglesVisibility)
return true;

Expand Down
21 changes: 13 additions & 8 deletions hi_tools/hi_tools/HI_LookAndFeels.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1325,15 +1325,20 @@ void HiPropertyPanelLookAndFeel::drawLinearSlider(Graphics& g, int i, int i1, in
actualWidth = (float)proportion * (float)(width-2);
}

c = s.findColour(Slider::ColourIds::thumbColourId);

g.setGradientFill (ColourGradient (c.withMultipliedAlpha(s.isEnabled() ? 0.8f : 0.4f),
0.0f, 0.0f,
c.withMultipliedAlpha(s.isEnabled() ? 0.8f : 0.4f),
0.0f, (float)height,
false));
g.fillRect(leftX, 2.0f, actualWidth , (float)(height-2));
if(actualWidth > 0.0f)
{
c = s.findColour(Slider::ColourIds::thumbColourId);

g.setGradientFill (ColourGradient (c.withMultipliedAlpha(s.isEnabled() ? 0.8f : 0.4f),
0.0f, 0.0f,
c.withMultipliedAlpha(s.isEnabled() ? 0.8f : 0.4f),
0.0f, (float)height,
false));



g.fillRect(leftX, 2.0f, actualWidth , (float)(height-2));
}
}

Font HiPropertyPanelLookAndFeel::getLabelFont(Label& label)
Expand Down

0 comments on commit 330e14d

Please sign in to comment.