mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
Projucer: Fixed a bug recalling code editor colour schemes when invoked from the command-line
This commit is contained in:
parent
46700d820d
commit
b0c8917430
1 changed files with 14 additions and 19 deletions
|
|
@ -31,27 +31,22 @@
|
|||
AppearanceSettings::AppearanceSettings (bool updateAppWhenChanged)
|
||||
: settings ("COLOUR_SCHEME")
|
||||
{
|
||||
if (! ProjucerApplication::getApp().isRunningCommandLine)
|
||||
CodeDocument doc;
|
||||
CPlusPlusCodeTokeniser tokeniser;
|
||||
CodeEditorComponent editor (doc, &tokeniser);
|
||||
|
||||
CodeEditorComponent::ColourScheme cs (editor.getColourScheme());
|
||||
|
||||
for (int i = cs.types.size(); --i >= 0;)
|
||||
{
|
||||
ProjucerLookAndFeel lf;
|
||||
|
||||
CodeDocument doc;
|
||||
CPlusPlusCodeTokeniser tokeniser;
|
||||
CodeEditorComponent editor (doc, &tokeniser);
|
||||
|
||||
CodeEditorComponent::ColourScheme cs (editor.getColourScheme());
|
||||
|
||||
for (int i = cs.types.size(); --i >= 0;)
|
||||
{
|
||||
auto& t = cs.types.getReference(i);
|
||||
getColourValue (t.name) = t.colour.toString();
|
||||
}
|
||||
|
||||
getCodeFontValue() = getDefaultCodeFont().toString();
|
||||
|
||||
if (updateAppWhenChanged)
|
||||
settings.addListener (this);
|
||||
auto& t = cs.types.getReference(i);
|
||||
getColourValue (t.name) = t.colour.toString();
|
||||
}
|
||||
|
||||
getCodeFontValue() = getDefaultCodeFont().toString();
|
||||
|
||||
if (updateAppWhenChanged)
|
||||
settings.addListener (this);
|
||||
}
|
||||
|
||||
File AppearanceSettings::getSchemesFolder()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue