Browse Source

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

tags/2021-05-28
ed 8 years ago
parent
commit
b0c3531ac3
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      modules/juce_audio_utils/gui/juce_AudioDeviceSelectorComponent.cpp

+ 2
- 2
modules/juce_audio_utils/gui/juce_AudioDeviceSelectorComponent.cpp View File

@@ -812,7 +812,7 @@ public:
g.setFont (height * 0.6f); g.setFont (height * 0.6f);
g.setColour (findColour (ListBox::textColourId, true).withMultipliedAlpha (enabled ? 1.0f : 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 int getTickX() const
{ {
return getRowHeight() + 5;
return getRowHeight();
} }
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (ChannelSelectorListBox) JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (ChannelSelectorListBox)


Loading…
Cancel
Save