1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-30 02:50:05 +00:00

Fixed some const violation errors

This commit is contained in:
Tom Poole 2017-12-19 12:44:24 +00:00
parent 03fef746d5
commit cff37f5b6a
32 changed files with 225 additions and 127 deletions

View file

@ -221,7 +221,7 @@ void MainContentComponent::setupDemoColours()
if (xml != nullptr)
{
auto colourSchemeTree = ValueTree::fromXml (*xml);
auto& scheme = codeEditor.getColourScheme();
CodeEditorComponent::ColourScheme scheme (codeEditor.getColourScheme());
for (auto& type : scheme.types)
{
@ -230,6 +230,8 @@ void MainContentComponent::setupDemoColours()
if (colour.isValid())
type.colour = Colour::fromString (colour ["colour"].toString());
}
codeEditor.setColourScheme (scheme);
}
codeEditor.setScrollbarThickness (6);