add button brush
This commit is contained in:
parent
949ce8255c
commit
a32ff8a433
@ -11,14 +11,16 @@
|
|||||||
<ResourceDictionary>
|
<ResourceDictionary>
|
||||||
<ResourceDictionary.ThemeDictionaries>
|
<ResourceDictionary.ThemeDictionaries>
|
||||||
<ResourceDictionary x:Key="Light">
|
<ResourceDictionary x:Key="Light">
|
||||||
<SolidColorBrush x:Key='BackgroundBrush'>#F0F0F0</SolidColorBrush>
|
<SolidColorBrush x:Key='BackgroundBrush'>#EEE</SolidColorBrush>
|
||||||
<SolidColorBrush x:Key='ForegroundBrush'>#000</SolidColorBrush>
|
<SolidColorBrush x:Key='ForegroundBrush'>#111</SolidColorBrush>
|
||||||
<SolidColorBrush x:Key='DimBrush'>#888</SolidColorBrush>
|
<SolidColorBrush x:Key='DimBrush'>#888</SolidColorBrush>
|
||||||
|
<SolidColorBrush x:Key='ButtonBgBrush'>#DDD</SolidColorBrush>
|
||||||
</ResourceDictionary>
|
</ResourceDictionary>
|
||||||
<ResourceDictionary x:Key="Dark">
|
<ResourceDictionary x:Key="Dark">
|
||||||
<SolidColorBrush x:Key='BackgroundBrush'>#111</SolidColorBrush>
|
<SolidColorBrush x:Key='BackgroundBrush'>#111</SolidColorBrush>
|
||||||
<SolidColorBrush x:Key='ForegroundBrush'>#EEE</SolidColorBrush>
|
<SolidColorBrush x:Key='ForegroundBrush'>#EEE</SolidColorBrush>
|
||||||
<SolidColorBrush x:Key='DimBrush'>#777</SolidColorBrush>
|
<SolidColorBrush x:Key='DimBrush'>#777</SolidColorBrush>
|
||||||
|
<SolidColorBrush x:Key='ButtonBgBrush'>#222</SolidColorBrush>
|
||||||
</ResourceDictionary>
|
</ResourceDictionary>
|
||||||
</ResourceDictionary.ThemeDictionaries>
|
</ResourceDictionary.ThemeDictionaries>
|
||||||
</ResourceDictionary>
|
</ResourceDictionary>
|
||||||
|
@ -8,13 +8,11 @@ namespace kawwa;
|
|||||||
|
|
||||||
public partial class App : Application
|
public partial class App : Application
|
||||||
{
|
{
|
||||||
// ...existing code...
|
|
||||||
public static string AppDataPath = Path.Combine(
|
public static string AppDataPath = Path.Combine(
|
||||||
Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData),
|
Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData),
|
||||||
"kawwa");
|
"kawwa");
|
||||||
public static MainWindow? TopWindow;
|
public static MainWindow? TopWindow;
|
||||||
|
|
||||||
// ...existing code...
|
|
||||||
public override void Initialize()
|
public override void Initialize()
|
||||||
{
|
{
|
||||||
AvaloniaXamlLoader.Load(this);
|
AvaloniaXamlLoader.Load(this);
|
||||||
|
@ -36,7 +36,7 @@
|
|||||||
Click="OnCopyButton"
|
Click="OnCopyButton"
|
||||||
HorizontalAlignment="Center"
|
HorizontalAlignment="Center"
|
||||||
Foreground="{DynamicResource ForegroundBrush}"
|
Foreground="{DynamicResource ForegroundBrush}"
|
||||||
Background="{DynamicResource BackgroundBrush}"
|
Background="{DynamicResource ButtonBgBrush}"
|
||||||
Margin="0,0,0,10" />
|
Margin="0,0,0,10" />
|
||||||
<TextBox
|
<TextBox
|
||||||
x:Name="userTextBox"
|
x:Name="userTextBox"
|
||||||
@ -52,7 +52,7 @@
|
|||||||
HorizontalAlignment="Center"
|
HorizontalAlignment="Center"
|
||||||
Content="Connect"
|
Content="Connect"
|
||||||
Foreground="{DynamicResource ForegroundBrush}"
|
Foreground="{DynamicResource ForegroundBrush}"
|
||||||
Background="{DynamicResource BackgroundBrush}"
|
Background="{DynamicResource ButtonBgBrush}"
|
||||||
Click="OnConnectButton"/>
|
Click="OnConnectButton"/>
|
||||||
</StackPanel>
|
</StackPanel>
|
||||||
</Grid>
|
</Grid>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user