App.xaml 2.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. <Application x:Class="Lopushok.App"
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:local="clr-namespace:Lopushok"
  5. StartupUri="MainWindow.xaml">
  6. <Application.Resources>
  7. <SolidColorBrush x:Key="DefaultWhite">#FFFFFF</SolidColorBrush>
  8. <SolidColorBrush x:Key="DefaultLightBlue">#CEFFF9</SolidColorBrush>
  9. <SolidColorBrush x:Key="DefaultGreen">#00CC76</SolidColorBrush>
  10. <Style TargetType="{x:Type Window}" x:Key="DefaultWindow">
  11. <Setter Property="MinWidth" Value="640"></Setter>
  12. <Setter Property="MinHeight" Value="480"></Setter>
  13. <Setter Property="FontFamily" Value="Gabriola"></Setter>
  14. </Style>
  15. <Style TargetType="{x:Type Page}" x:Key="DefaultPage">
  16. <Setter Property="FontFamily" Value="Gabriola"></Setter>
  17. <Setter Property="FontSize" Value="20"></Setter>
  18. </Style>
  19. <Style TargetType="{x:Type TextBlock}" x:Key="NavTextBlock">
  20. <Setter Property="HorizontalAlignment" Value="Center"></Setter>
  21. <Setter Property="VerticalAlignment" Value="Center"></Setter>
  22. <Setter Property="Margin" Value="5"></Setter>
  23. <Setter Property="FontWeight" Value="Bold"></Setter>
  24. </Style>
  25. <Style TargetType="{x:Type TextBlock}" x:Key="DefaultTextBlock">
  26. <Setter Property="HorizontalAlignment" Value="Center"></Setter>
  27. <Setter Property="VerticalAlignment" Value="Center"></Setter>
  28. </Style>
  29. <Style TargetType="{x:Type ComboBox}" x:Key="DefaultComboBox">
  30. <Setter Property="Height" Value="30"></Setter>
  31. <Setter Property="Width" Value="150"></Setter>
  32. <Setter Property="Margin" Value="5"></Setter>
  33. </Style>
  34. <Style TargetType="{x:Type TextBox}" x:Key="DefaultTextBox">
  35. <Setter Property="Margin" Value="5"></Setter>
  36. <Setter Property="Height" Value="30"></Setter>
  37. </Style>
  38. <Style TargetType="{x:Type Button}" x:Key="CostButton">
  39. <Setter Property="Margin" Value="5"></Setter>
  40. <Setter Property="Height" Value="30"></Setter>
  41. <Setter Property="Width" Value="175"></Setter>
  42. <Setter Property="Foreground" Value="{StaticResource DefaultWhite}"></Setter>
  43. <Setter Property="Background" Value="{StaticResource DefaultGreen}"></Setter>
  44. </Style>
  45. <Style TargetType="{x:Type Button}" x:Key="DefaultButton">
  46. <Setter Property="Margin" Value="5"></Setter>
  47. <Setter Property="Height" Value="30"></Setter>
  48. <Setter Property="Width" Value="150"></Setter>
  49. <Setter Property="Foreground" Value="{StaticResource DefaultWhite}"></Setter>
  50. <Setter Property="Background" Value="{StaticResource DefaultGreen}"></Setter>
  51. </Style>
  52. </Application.Resources>
  53. </Application>