1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-02-08 04:20:09 +00:00

Improved the layout of the tick boxes in AudioDeviceSelectorComponent when using LookAndFeel_V4

This commit is contained in:
ed 2017-05-12 16:11:40 +01:00
parent ff7cfb8824
commit b0c3531ac3

View file

@ -812,7 +812,7 @@ public:
g.setFont (height * 0.6f);
g.setColour (findColour (ListBox::textColourId, true).withMultipliedAlpha (enabled ? 1.0f : 0.6f));
g.drawText (item, x, 0, width - x - 2, height, Justification::centredLeft, true);
g.drawText (item, x + 5, 0, width - x - 5, height, Justification::centredLeft, true);
}
}
@ -959,7 +959,7 @@ public:
int getTickX() const
{
return getRowHeight() + 5;
return getRowHeight();
}
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (ChannelSelectorListBox)