Update TextMateSharp to 1.0.57

This commit is contained in:
Daniel Peñalba 2024-06-11 12:58:46 +02:00
Родитель f92e5527c0
Коммит d666c44190
3 изменённых файлов: 8 добавлений и 8 удалений

Просмотреть файл

@ -4,7 +4,7 @@
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
<AvaloniaVersion>11.0.0</AvaloniaVersion>
<AvaloniaSampleVersion>11.0.6</AvaloniaSampleVersion>
<TextMateSharpVersion>1.0.56</TextMateSharpVersion>
<TextMateSharpVersion>1.0.57</TextMateSharpVersion>
<VersionSuffix>beta</VersionSuffix>
<PublishRepositoryUrl>true</PublishRepositoryUrl>

Просмотреть файл

@ -175,7 +175,7 @@ namespace AvaloniaEdit.TextMate
background = themeRule.background;
if (fontStyle == 0 && themeRule.fontStyle > 0)
fontStyle = themeRule.fontStyle;
fontStyle = (int)themeRule.fontStyle;
}
if (transformations[i] == null)

Просмотреть файл

@ -57,8 +57,8 @@ namespace AvaloniaEdit.TextMate
AM.FontStyle GetFontStyle()
{
if (FontStyle != TextMateSharp.Themes.FontStyle.NotSet &&
(FontStyle & TextMateSharp.Themes.FontStyle.Italic) != 0)
if (FontStyle != (int)TextMateSharp.Themes.FontStyle.NotSet &&
(FontStyle & (int)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 != TextMateSharp.Themes.FontStyle.NotSet &&
(FontStyle & TextMateSharp.Themes.FontStyle.Bold) != 0)
if (FontStyle != (int)TextMateSharp.Themes.FontStyle.NotSet &&
(FontStyle & (int)TextMateSharp.Themes.FontStyle.Bold) != 0)
return AM.FontWeight.Bold;
return AM.FontWeight.Regular;
@ -75,8 +75,8 @@ namespace AvaloniaEdit.TextMate
bool IsUnderline()
{
if (FontStyle != TextMateSharp.Themes.FontStyle.NotSet &&
(FontStyle & TextMateSharp.Themes.FontStyle.Underline) != 0)
if (FontStyle != (int)TextMateSharp.Themes.FontStyle.NotSet &&
(FontStyle & (int)TextMateSharp.Themes.FontStyle.Underline) != 0)
return true;
return false;