- fix: DesignMode think

This commit is contained in:
2025-01-22 21:06:05 +03:00
parent 3af99d40a1
commit 019dd13d8e
11 changed files with 51 additions and 36 deletions

View File

@@ -1,4 +1,5 @@
<ResourceDictionary xmlns="https://github.com/avaloniaui" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
<SolidColorBrush x:Key="NoneBackground">#00000000</SolidColorBrush>
<SolidColorBrush x:Key="DefaultBackground">#121212</SolidColorBrush>
<SolidColorBrush x:Key="DefaultForeground">#222222</SolidColorBrush>
<SolidColorBrush x:Key="DefaultSelected">#D95F59</SolidColorBrush>
</ResourceDictionary>

View File

@@ -1,12 +1,9 @@
<Styles xmlns="https://github.com/avaloniaui" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
<Style Selector="Window">
<Setter Property="Background" Value="#121212" />
<Setter Property="Background" Value="{StaticResource DefaultBackground}"/>
</Style>
<Style Selector="Border">
<Setter Property="BorderBrush" Value="#343334" />
<Setter Property="Background" Value="Transparent" />
<Setter Property="BorderThickness" Value="0" />
<Setter Property="BoxShadow" Value="0 0 2 2 #222222" />
<Setter Property="CornerRadius" Value="10" />
</Style>
<Style Selector="Label">
<Setter Property="Foreground" Value="#f7f7ff" />
@@ -30,7 +27,7 @@
<Style Selector="Button:pointerover">
<Setter Property="RenderTransform" Value="{x:Null}" />
<Setter Property="BorderThickness" Value="0,0,0,2" />
<Setter Property="BorderThickness" Value="0,0,0,0" />
</Style>
<Style Selector="Button.ViewSelectButton">
@@ -47,9 +44,11 @@
<Style Selector="TextBox">
<Setter Property="Foreground" Value="#f7f7ff" />
<Setter Property="SelectionForegroundBrush" Value="#f7f7ff" />
<Setter Property="BorderThickness" Value="0,0,0,1" />
<Setter Property="BorderThickness" Value="0,0,0,0" />
<Setter Property="BorderBrush" Value="#f7f7ff" />
<Setter Property="Background" Value="Transparent" />
</Style>
<Style Selector="TextBox"></Style>
<Style Selector="ListBoxItem">
<Setter Property="CornerRadius" Value="0,8,8,0" />
@@ -58,12 +57,11 @@
<Setter Property="Background" Value="Transparent" />
</Style>
<Style Selector="ListBox.AccountSelector &gt; ListBoxItem">
<Setter Property="CornerRadius" Value="0" />
<Setter Property="Margin" Value="0,0,0,0" />
<Setter Property="Padding" Value="0" />
<Setter Property="Background" Value="Transparent" />
<Setter Property="Focusable" Value="False" />
<Style Selector="ListBoxItem:selected">
<Setter Property="Background" Value="{StaticResource DefaultSelected}"/>
</Style>
<Style Selector="ListBoxItem:pressed">
<Setter Property="Background" Value="{StaticResource DefaultSelected}"/>
</Style>
<Style Selector="TextBox">