Add initial project structure with basic view models, views, and resources

This commit is contained in:
2026-09-14 19:46:46 +03:00
commit 45401645c6
68 changed files with 2538 additions and 0 deletions
+78
View File
@@ -0,0 +1,78 @@
<Application xmlns="https://github.com/avaloniaui"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:semi="https://irihi.tech/semi"
xmlns:u="https://irihi.tech/ursa"
xmlns:material="clr-namespace:Material.Icons.Avalonia;assembly=Material.Icons.Avalonia"
xmlns:avalonia="clr-namespace:LiveChartsCore.SkiaSharpView.Avalonia;assembly=LiveChartsCore.SkiaSharpView.Avalonia"
xmlns:painting="clr-namespace:LiveChartsCore.SkiaSharpView.Painting;assembly=LiveChartsCore.SkiaSharpView"
x:Class="CryptoPortfolio_Tracker.App"
RequestedThemeVariant="Dark">
<!-- "Default" ThemeVariant follows system theme variant. "Dark" or "Light" are other available options. -->
<Application.Styles>
<semi:SemiTheme Locale="ru-RU"/>
<semi:UrsaSemiTheme Locale="ru-RU"/>
<semi:SemiPopupAnimations />
<material:MaterialIconStyles />
<Style Selector="Button.WithIcon">
<Setter Property="Width" Value="{Binding $self.Bounds.Height}" />
</Style>
<Style Selector="TextBox">
<Setter Property="Padding" Value="10" />
<Setter Property="CornerRadius" Value="10" />
</Style>
<Style Selector="Button">
<Setter Property="Padding" Value="10" />
<Setter Property="CornerRadius" Value="10" />
</Style>
<Style Selector="Button.ForSolidTheme">
<Setter Property="Padding" Value="10" />
<Setter Property="CornerRadius" Value="10" />
<Setter Property="Background" Value="{DynamicResource PrimaryColor}" />
<Setter Property="BorderBrush" Value="{DynamicResource PrimaryColor}" />
</Style>
<Style Selector="NavigationPage">
<Style Selector="^ /template/ Border#PART_NavigationBar">
<Setter Property="Background" Value="{DynamicResource PrimaryColor}" />
</Style>
</Style>
<Style Selector="TableView /template/ ScrollViewer">
<Setter Property="VerticalScrollBarVisibility" Value="Hidden" />
</Style>
<Style Selector="avalonia|XamlLineSeries.Success">
<Setter Property="Stroke">
<Setter.Value>
<painting:SolidColorPaint Color="#3BB346" />
</Setter.Value>
</Setter>
</Style>
<Style Selector="avalonia|XamlLineSeries.Danger">
<Setter Property="Stroke">
<Setter.Value>
<painting:SolidColorPaint Color="#F93920" />
</Setter.Value>
</Setter>
</Style>
<Style Selector="u|CustomDialogControl.CryptoChartDialog">
<Setter Property="Width" Value="1000" />
<Setter Property="Height" Value="600" />
</Style>
</Application.Styles>
<Application.Resources>
<ResourceDictionary>
<SolidColorBrush x:Key="PrimaryColor" Color="DarkGreen" />
<StaticResource x:Key="NavigationPageBarBackground" ResourceKey="PrimaryColor" />
</ResourceDictionary>
</Application.Resources>
</Application>