Merge branch 'master' into fix/Issue_425
This commit is contained in:
Коммит
68334d76b7
|
@ -175,7 +175,7 @@ namespace AvaloniaEdit.TextMate
|
|||
background = themeRule.background;
|
||||
|
||||
if (fontStyle == 0 && themeRule.fontStyle > 0)
|
||||
fontStyle = (int)themeRule.fontStyle;
|
||||
fontStyle = themeRule.fontStyle;
|
||||
}
|
||||
|
||||
if (transformations[i] == null)
|
||||
|
|
|
@ -57,8 +57,8 @@ namespace AvaloniaEdit.TextMate
|
|||
|
||||
AM.FontStyle GetFontStyle()
|
||||
{
|
||||
if (FontStyle != (int)TextMateSharp.Themes.FontStyle.NotSet &&
|
||||
(FontStyle & (int)TextMateSharp.Themes.FontStyle.Italic) != 0)
|
||||
if (FontStyle != TextMateSharp.Themes.FontStyle.NotSet &&
|
||||
(FontStyle & TextMateSharp.Themes.FontStyle.Italic) != 0)
|
||||
return AM.FontStyle.Italic;
|
||||
|
||||
return AM.FontStyle.Normal;
|
||||
|
@ -66,8 +66,8 @@ namespace AvaloniaEdit.TextMate
|
|||
|
||||
AM.FontWeight GetFontWeight()
|
||||
{
|
||||
if (FontStyle != (int)TextMateSharp.Themes.FontStyle.NotSet &&
|
||||
(FontStyle & (int)TextMateSharp.Themes.FontStyle.Bold) != 0)
|
||||
if (FontStyle != TextMateSharp.Themes.FontStyle.NotSet &&
|
||||
(FontStyle & TextMateSharp.Themes.FontStyle.Bold) != 0)
|
||||
return AM.FontWeight.Bold;
|
||||
|
||||
return AM.FontWeight.Regular;
|
||||
|
@ -75,8 +75,8 @@ namespace AvaloniaEdit.TextMate
|
|||
|
||||
bool IsUnderline()
|
||||
{
|
||||
if (FontStyle != (int)TextMateSharp.Themes.FontStyle.NotSet &&
|
||||
(FontStyle & (int)TextMateSharp.Themes.FontStyle.Underline) != 0)
|
||||
if (FontStyle != TextMateSharp.Themes.FontStyle.NotSet &&
|
||||
(FontStyle & TextMateSharp.Themes.FontStyle.Underline) != 0)
|
||||
return true;
|
||||
|
||||
return false;
|
||||
|
|
Загрузка…
Ссылка в новой задаче