mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-13 00:04:19 +00:00
TextPropertyComponent colour fix.
This commit is contained in:
parent
15c35b8ad8
commit
4c951ecce6
2 changed files with 5 additions and 5 deletions
|
|
@ -28,9 +28,9 @@ struct FontStyleHelpers
|
|||
static const char* getStyleName (const bool bold,
|
||||
const bool italic) noexcept
|
||||
{
|
||||
if (bold && ! italic) return "Bold";
|
||||
if (italic && ! bold) return "Italic";
|
||||
if (bold && italic) return "Bold Italic";
|
||||
if (bold && italic) return "Bold Italic";
|
||||
if (bold) return "Bold";
|
||||
if (italic) return "Italic";
|
||||
return "Regular";
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -35,8 +35,8 @@ public:
|
|||
{
|
||||
setEditable (true, true, false);
|
||||
|
||||
setColour (backgroundColourId, findColour (ComboBox::backgroundColourId));
|
||||
setColour (outlineColourId, findColour (ComboBox::outlineColourId));
|
||||
setColour (backgroundColourId, findColour (Label::backgroundColourId));
|
||||
setColour (outlineColourId, findColour (Label::outlineColourId));
|
||||
}
|
||||
|
||||
TextEditor* createEditorComponent()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue