mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
Fixed an issue with bar slider text box colours when using the grey colour scheme of LookAndFeel_V4
This commit is contained in:
parent
edbeb50eeb
commit
11e3d17433
2 changed files with 15 additions and 0 deletions
|
|
@ -1105,6 +1105,19 @@ void LookAndFeel_V4::drawPointer (Graphics& g, const float x, const float y, con
|
|||
g.fillPath (p);
|
||||
}
|
||||
|
||||
Label* LookAndFeel_V4::createSliderTextBox (Slider& slider)
|
||||
{
|
||||
auto* l = LookAndFeel_V2::createSliderTextBox (slider);
|
||||
|
||||
if (getCurrentColourScheme() == LookAndFeel_V4::getGreyColourScheme() && (slider.getSliderStyle() == Slider::LinearBar
|
||||
|| slider.getSliderStyle() == Slider::LinearBarVertical))
|
||||
{
|
||||
l->setColour (Label::textColourId, Colours::black.withAlpha (0.7f));
|
||||
}
|
||||
|
||||
return l;
|
||||
}
|
||||
|
||||
//==============================================================================
|
||||
void LookAndFeel_V4::drawTooltip (Graphics& g, const String& text, int width, int height)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -199,6 +199,8 @@ public:
|
|||
void drawPointer (Graphics&, float x, float y, float diameter,
|
||||
const Colour&, int direction) noexcept;
|
||||
|
||||
Label* createSliderTextBox (Slider&) override;
|
||||
|
||||
//==============================================================================
|
||||
void drawTooltip (Graphics&, const String& text, int width, int height) override;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue