@@ -185,8 +185,8 @@ namespace FlaxEngine.GUI
|
||||
AutoFocus = false;
|
||||
var style = Style.Current;
|
||||
Font = new FontReference(style.FontMedium);
|
||||
TextColor = Style.Current.Foreground;
|
||||
TextColorHighlighted = Style.Current.Foreground;
|
||||
TextColor = style.Foreground;
|
||||
TextColorHighlighted = style.Foreground;
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
@@ -196,8 +196,8 @@ namespace FlaxEngine.GUI
|
||||
AutoFocus = false;
|
||||
var style = Style.Current;
|
||||
Font = new FontReference(style.FontMedium);
|
||||
TextColor = Style.Current.Foreground;
|
||||
TextColorHighlighted = Style.Current.Foreground;
|
||||
TextColor = style.Foreground;
|
||||
TextColorHighlighted = style.Foreground;
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
|
||||
@@ -9,12 +9,7 @@ namespace FlaxEngine.GUI
|
||||
/// </summary>
|
||||
public class RichTextBox : RichTextBoxBase
|
||||
{
|
||||
private TextBlockStyle _textStyle = new TextBlockStyle
|
||||
{
|
||||
Font = new FontReference(Style.Current.FontMedium),
|
||||
Color = Style.Current.Foreground,
|
||||
BackgroundSelectedBrush = new SolidColorBrush(Style.Current.BackgroundSelected),
|
||||
};
|
||||
private TextBlockStyle _textStyle;
|
||||
|
||||
/// <summary>
|
||||
/// The text style applied to the whole text.
|
||||
@@ -30,6 +25,17 @@ namespace FlaxEngine.GUI
|
||||
}
|
||||
}
|
||||
|
||||
public RichTextBox()
|
||||
{
|
||||
var style = Style.Current;
|
||||
_textStyle = new TextBlockStyle
|
||||
{
|
||||
Font = new FontReference(style.FontMedium),
|
||||
Color = style.Foreground,
|
||||
BackgroundSelectedBrush = new SolidColorBrush(style.BackgroundSelected),
|
||||
};
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override void OnParseTextBlocks()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user