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