4 : TextButton(buttonText), m_previousButton(
"Previous", DrawableButton::ButtonStyle::ImageFitted),
5 m_nextButton(
"Next", DrawableButton::ButtonStyle::ImageFitted), m_sampleCounter(
"SampleCounter",
"0 of 0")
12 m_dropdownIcon = Drawable::createFromImageData(KrotosBinaryData::SampleBrowser_Dropdown_Icon_svg,
13 KrotosBinaryData::SampleBrowser_Dropdown_Icon_svgSize);
14 m_rightArrow = Drawable::createFromImageData(KrotosBinaryData::Icon_Button_Right_svg,
15 KrotosBinaryData::Icon_Button_Right_svgSize);
16 m_leftArrow = Drawable::createFromImageData(KrotosBinaryData::Icon_Button_Left_svg,
17 KrotosBinaryData::Icon_Button_Left_svgSize);
36 findColour(Label::ColourIds::textColourId).withAlpha(0.5f));
46 auto cornerSize = 2.0f;
47 auto boxBounds = getLocalBounds();
49 p.addRoundedRectangle(boxBounds.toFloat().getX(), boxBounds.toFloat().getY(), boxBounds.toFloat().getWidth(),
50 boxBounds.toFloat().getHeight(), cornerSize, cornerSize,
false,
false,
true,
true);
51 g.setColour(findColour(ComboBox::ColourIds::backgroundColourId));
55 auto textBounds = getLocalBounds();
58 float textOpacity = isOver() || getToggleState() ? 1.0f : 0.7f;
59 Colour textColour = findColour(TextButton::ColourIds::textColourOnId).withAlpha(textOpacity);
60 g.setColour(textColour);
61 g.setFont(Font(15.0f).withExtraKerningFactor(0.027f));
62 g.drawFittedText(getButtonText(), textBounds, Justification::centredLeft, 1);
65 auto bounds = getLocalBounds();
66 bounds.removeFromLeft(3);
73 auto bounds = getLocalBounds();
80 bounds.removeFromRight(4);
85 getLocalBounds().removeFromRight(getLocalBounds().getWidth() -
m_sampleCounter.getX()));
105 NotificationType::dontSendNotification);
Definition AirAbsorptionFilter.cpp:2