mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-11 23:54:18 +00:00
Added a new LookAndFeel (V4) and re-skinned the JUCE Demo and examples. Improved the JUCE Demo on mobile devices.
This commit is contained in:
parent
3b422bef51
commit
ef2c63e4e3
99 changed files with 5037 additions and 433 deletions
|
|
@ -72,13 +72,13 @@ public:
|
|||
void paintListBoxItem (int rowNumber, Graphics &g,
|
||||
int width, int height, bool rowIsSelected) override
|
||||
{
|
||||
const auto textColour = getLookAndFeel().findColour (ListBox::textColourId);
|
||||
|
||||
if (rowIsSelected)
|
||||
g.fillAll (Colours::lightblue);
|
||||
else if (rowNumber % 2)
|
||||
g.fillAll (Colour (0xffeeeeee));
|
||||
g.fillAll (textColour.interpolatedWith (getLookAndFeel().findColour (ListBox::backgroundColourId), 0.5));
|
||||
|
||||
|
||||
g.setColour (Colours::black);
|
||||
g.setColour (textColour);
|
||||
g.setFont (height * 0.7f);
|
||||
|
||||
if (isInput)
|
||||
|
|
@ -209,9 +209,8 @@ MainContentComponent::~MainContentComponent()
|
|||
}
|
||||
|
||||
//==============================================================================
|
||||
void MainContentComponent::paint (Graphics& g)
|
||||
void MainContentComponent::paint (Graphics&)
|
||||
{
|
||||
g.fillAll (Colours::white);
|
||||
}
|
||||
|
||||
//==============================================================================
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue