Skip to content

Commit

Permalink
fix avalonia bug
Browse files Browse the repository at this point in the history
  • Loading branch information
HendrikMennen committed Oct 31, 2023
1 parent e5a5d4b commit e408528
Showing 1 changed file with 45 additions and 0 deletions.
45 changes: 45 additions & 0 deletions src/OneWare.Core/Styles/Accents/Base.axaml
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,51 @@
<SolidColorBrush x:Key="SearchResultBrush">#30808080</SolidColorBrush>

<ResourceDictionary.ThemeDictionaries>

<!--Remove when Avalonia Bug is fixed-->
<ResourceDictionary x:Key="Default">
<Color x:Key="ThemeBackgroundColor">#FFF5F5F5</Color>
<Color x:Key="ThemeBorderLowColor">#FFAAAAAA</Color>
<Color x:Key="ThemeBorderMidColor">#FF888888</Color>
<Color x:Key="ThemeBorderHighColor">#FF333333</Color>
<Color x:Key="ThemeControlLowColor">#FFFFFFFF</Color>
<Color x:Key="ThemeControlMidColor">#FFF5F5F5</Color>
<Color x:Key="ThemeControlMidHighColor">#FFC2C3C9</Color>
<Color x:Key="ThemeControlHighColor">#FF686868</Color>
<Color x:Key="ThemeControlVeryHighColor">#FF5B5B5B</Color>
<Color x:Key="ThemeControlHighlightLowColor">#FFF0F0F0</Color>
<Color x:Key="ThemeControlHighlightMidColor">#FFD0D0D0</Color>
<Color x:Key="ThemeControlHighlightHighColor">#FF808080</Color>
<Color x:Key="ThemeForegroundColor">#FF000000</Color>
<Color x:Key="ThemeEditorColor">#FF000000</Color>

<SolidColorBrush x:Key="ThemeBackgroundBrush" Color="{StaticResource ThemeBackgroundColor}" />
<SolidColorBrush x:Key="ThemeBackgroundBrushOp" Color="{StaticResource ThemeBackgroundColor}" Opacity="0.8" />
<SolidColorBrush x:Key="ThemeBorderLowBrush" Color="{StaticResource ThemeBorderLowColor}" />
<SolidColorBrush x:Key="ThemeBorderMidBrush" Color="{StaticResource ThemeBorderMidColor}" />
<SolidColorBrush x:Key="ThemeBorderHighBrush" Color="{StaticResource ThemeBorderHighColor}" />
<SolidColorBrush x:Key="ThemeControlLowBrush" Color="{StaticResource ThemeControlLowColor}" />
<SolidColorBrush x:Key="ThemeControlMidBrush" Color="{StaticResource ThemeControlMidColor}" />
<SolidColorBrush x:Key="ThemeControlMidHighBrush" Color="{StaticResource ThemeControlMidHighColor}" />
<SolidColorBrush x:Key="ThemeControlHighBrush" Color="{StaticResource ThemeControlHighColor}" />
<SolidColorBrush x:Key="ThemeControlVeryHighBrush" Color="{StaticResource ThemeControlVeryHighColor}" />
<SolidColorBrush x:Key="ThemeControlHighlightLowBrush"
Color="{StaticResource ThemeControlHighlightLowColor}" />
<SolidColorBrush x:Key="ThemeControlHighlightMidBrush"
Color="{StaticResource ThemeControlHighlightMidColor}" />
<SolidColorBrush x:Key="ThemeControlHighlightHighBrush"
Color="{StaticResource ThemeControlHighlightHighColor}" />
<SolidColorBrush x:Key="ThemeForegroundBrush" Color="{StaticResource ThemeForegroundColor}" />
<SolidColorBrush x:Key="HighlightBrush" Color="{DynamicResource ThemeAccentColor}" Opacity="0.7" />
<SolidColorBrush x:Key="ThemeEditorBrush" Color="{StaticResource ThemeEditorColor}" />

<SolidColorBrush x:Key="IconColor" Opacity="1" Color="#424040" />
<SolidColorBrush x:Key="IconContrastColor" Opacity="1" Color="#424040" />
<ResourceDictionary.MergedDictionaries>
<MergeResourceInclude Source="avares://OneWare.Core/Styles/Icons.axaml" />
</ResourceDictionary.MergedDictionaries>
</ResourceDictionary>

<ResourceDictionary x:Key="Light">
<Color x:Key="ThemeBackgroundColor">#FFF5F5F5</Color>
<Color x:Key="ThemeBorderLowColor">#FFAAAAAA</Color>
Expand Down

0 comments on commit e408528

Please sign in to comment.