207 lines
8.7 KiB
XML
207 lines
8.7 KiB
XML
<Application xmlns="https://github.com/avaloniaui"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
xmlns:local="using:FileTime.Avalonia"
|
|
xmlns:converters="using:FileTime.Avalonia.Converters"
|
|
xmlns:views="using:FileTime.Avalonia.Views"
|
|
x:Class="FileTime.Avalonia.App">
|
|
<Application.DataTemplates>
|
|
</Application.DataTemplates>
|
|
|
|
<Application.Resources>
|
|
<ResourceDictionary>
|
|
<Color x:Key="AppBackgroundColor">#E7073642</Color>
|
|
<Color x:Key="ContainerBackgroundColor">#083e4c</Color>
|
|
<Color x:Key="TransparentContainerBackgroundColor">#D0083e4c</Color>
|
|
<Color x:Key="BarelyTransparentBackgroundColor">#80083e4c</Color>
|
|
|
|
<Color x:Key="ItemBackgroundColor">#00000000</Color>
|
|
<Color x:Key="AlternativeItemBackgroundColor">#10000000</Color>
|
|
<Color x:Key="SelectedItemBackgroundColor">#93a1a1</Color>
|
|
<Color x:Key="MarkedItemBackgroundColor">#00000000</Color>
|
|
<Color x:Key="MarkedAlternativeItemBackgroundColor">#10000000</Color>
|
|
<Color x:Key="MarkedSelectedItemBackgroundColor">#b58900</Color>
|
|
|
|
<Color x:Key="ForegroundColor">#93a1a1</Color>
|
|
<Color x:Key="AccentColor">#268bd2</Color>
|
|
<Color x:Key="AccentComplementColor">#fdf6e3</Color>
|
|
<Color x:Key="LightForegroundColor">#7793a1a1</Color>
|
|
<Color x:Key="AlternativeItemForegroundColor">#93a1a1</Color>
|
|
<Color x:Key="SelectedItemForegroundColor">#073642</Color>
|
|
<Color x:Key="MarkedItemForegroundColor">#b58900</Color>
|
|
<Color x:Key="MarkedAlternativeItemForegroundColor">#b58900</Color>
|
|
<Color x:Key="MarkedSelectedItemForegroundColor">#002b36</Color>
|
|
|
|
<Color x:Key="ErrorColor">#dc322f</Color>
|
|
|
|
<LinearGradientBrush x:Key="ContentSeparatorBrush">
|
|
<GradientStop Offset="0" Color="#0093a1a1" />
|
|
<GradientStop Offset="0.5" Color="#93a1a1" />
|
|
<GradientStop Offset="1" Color="#0093a1a1" />
|
|
</LinearGradientBrush>
|
|
|
|
<LinearGradientBrush x:Key="ContainerGradientBackgroundBrush">
|
|
<GradientStop Offset="0" Color="#00b58900" />
|
|
<GradientStop Offset="0.4" Color="#CCb58900" />
|
|
<GradientStop Offset="0.6" Color="#CCb58900" />
|
|
<GradientStop Offset="1" Color="#00b58900" />
|
|
</LinearGradientBrush>
|
|
|
|
|
|
|
|
<SolidColorBrush
|
|
x:Key="AppBackgroundBrush"
|
|
Color="{DynamicResource AppBackgroundColor}" />
|
|
<SolidColorBrush
|
|
x:Key="ContainerBackgroundBrush"
|
|
Color="{DynamicResource ContainerBackgroundColor}" />
|
|
<SolidColorBrush
|
|
x:Key="TransparentContainerBackgroundBrush"
|
|
Color="{DynamicResource TransparentContainerBackgroundColor}" />
|
|
|
|
<SolidColorBrush
|
|
x:Key="ItemBackgroundBrush"
|
|
Color="{DynamicResource ItemBackgroundColor}" />
|
|
<SolidColorBrush
|
|
x:Key="AlternativeItemBackgroundBrush"
|
|
Color="{DynamicResource AlternativeItemBackgroundColor}" />
|
|
<SolidColorBrush
|
|
x:Key="SelectedItemBackgroundBrush"
|
|
Color="{DynamicResource SelectedItemBackgroundColor}" />
|
|
<SolidColorBrush
|
|
x:Key="MarkedItemBackgroundBrush"
|
|
Color="{DynamicResource MarkedItemBackgroundColor}" />
|
|
<SolidColorBrush
|
|
x:Key="MarkedSelectedItemBackgroundBrush"
|
|
Color="{DynamicResource MarkedSelectedItemBackgroundColor}" />
|
|
<SolidColorBrush
|
|
x:Key="MarkedAlternativeItemBackgroundBrush"
|
|
Color="{DynamicResource MarkedAlternativeItemBackgroundColor}" />
|
|
|
|
<SolidColorBrush
|
|
x:Key="ForegroundBrush"
|
|
Color="{DynamicResource ForegroundColor}" />
|
|
<SolidColorBrush
|
|
x:Key="AccentBrush"
|
|
Color="{DynamicResource AccentColor}" />
|
|
<SolidColorBrush
|
|
x:Key="AccentComplementBrush"
|
|
Color="{DynamicResource AccentComplementColor}" />
|
|
<SolidColorBrush
|
|
x:Key="LightForegroundBrush"
|
|
Color="{DynamicResource LightForegroundColor}" />
|
|
<SolidColorBrush
|
|
x:Key="AlternativeItemForegroundBrush"
|
|
Color="{DynamicResource AlternativeItemForegroundColor}" />
|
|
<SolidColorBrush
|
|
x:Key="SelectedItemForegroundBrush"
|
|
Color="{DynamicResource SelectedItemForegroundColor}" />
|
|
<SolidColorBrush
|
|
x:Key="MarkedItemForegroundBrush"
|
|
Color="{DynamicResource MarkedItemForegroundColor}" />
|
|
<SolidColorBrush
|
|
x:Key="MarkedAlternativeItemForegroundBrush"
|
|
Color="{DynamicResource MarkedAlternativeItemForegroundColor}" />
|
|
<SolidColorBrush
|
|
x:Key="MarkedSelectedItemForegroundBrush"
|
|
Color="{DynamicResource MarkedSelectedItemForegroundColor}" />
|
|
|
|
<SolidColorBrush
|
|
x:Key="ErrorBrush"
|
|
Color="{DynamicResource ErrorColor}" />
|
|
|
|
|
|
<SolidColorBrush x:Key="SystemControlHighlightListAccentLowBrush" Color="{DynamicResource SelectedItemBackgroundColor}" />
|
|
|
|
<converters:FormatSizeConverter x:Key="FormatSizeConverter"/>
|
|
<converters:CompareConverter x:Key="EqualityConverter"/>
|
|
<converters:CompareConverter x:Key="NotEqualsConverter" ComparisonCondition="{x:Static converters:ComparisonCondition.NotEqual}"/>
|
|
<converters:SplitStringConverter x:Key="SplitStringConverter" />
|
|
<converters:ItemViewModeToBrushConverter
|
|
x:Key="ItemViewModeToForegroundConverter"
|
|
DefaultBrush="{StaticResource ForegroundBrush}"
|
|
AlternativeBrush="{StaticResource AlternativeItemForegroundBrush}"
|
|
SelectedBrush="{StaticResource SelectedItemForegroundBrush}"
|
|
MarkedBrush="{StaticResource MarkedItemForegroundBrush}"
|
|
MarkedAlternativeBrush="{StaticResource MarkedAlternativeItemForegroundBrush}"
|
|
MarkedSelectedBrush="{StaticResource MarkedSelectedItemForegroundBrush}"/>
|
|
<converters:ItemViewModeToBrushConverter
|
|
x:Key="ItemViewModeToBackgroundConverter"
|
|
DefaultBrush="{StaticResource ItemBackgroundBrush}"
|
|
AlternativeBrush="{StaticResource AlternativeItemBackgroundBrush}"
|
|
SelectedBrush="{StaticResource SelectedItemBackgroundBrush}"
|
|
MarkedBrush="{StaticResource MarkedItemBackgroundBrush}"
|
|
MarkedAlternativeBrush="{StaticResource MarkedAlternativeItemBackgroundBrush}"
|
|
MarkedSelectedBrush="{StaticResource MarkedSelectedItemBackgroundBrush}"/>
|
|
<converters:ContextMenuGenerator x:Key="ContextMenuGenerator"/>
|
|
<converters:ItemToImageConverter x:Key="ItemToImageConverter"/>
|
|
<converters:IsNullConverter x:Key="IsNullConverter"/>
|
|
<converters:IsNullConverter x:Key="IsNotNullConverter" Inverse="true"/>
|
|
<converters:IsEmptyConverter x:Key="IsEmptyConverter"/>
|
|
<converters:IsEmptyConverter x:Key="IsNotEmptyConverter" Inverse="true"/>
|
|
<converters:ExceptionToStringConverter x:Key="ExceptionToStringConverter"/>
|
|
<converters:BoolInverter x:Key="BoolInverter"/>
|
|
<converters:DateTimeConverter x:Key="DateTimeConverter"/>
|
|
<converters:IsTypeConverter x:Key="IsTypeConverter"/>
|
|
<converters:ItemViewModelIsAttibuteTypeConverter x:Key="ItemViewModelIsAttibuteTypeConverter"/>
|
|
<converters:ItemViewModelIsAttibuteTypeConverter x:Key="ItemViewModelIsNotAttibuteTypeConverter" Invert="true"/>
|
|
<converters:GetFileExtensionConverter x:Key="GetFileExtensionConverter"/>
|
|
<converters:CommandToCommandNameConverter x:Key="CommandToCommandNameConverter"/>
|
|
<converters:NamePartShrinkerConverter x:Key="NamePartShrinkerConverter"/>
|
|
|
|
</ResourceDictionary>
|
|
</Application.Resources>
|
|
|
|
<Application.Styles>
|
|
<FluentTheme Mode="Dark"/>
|
|
|
|
<Style Selector="TextBlock">
|
|
<Setter Property="Foreground" Value="{DynamicResource ForegroundBrush}"/>
|
|
<Setter Property="FontSize" Value="16"/>
|
|
</Style>
|
|
<Style Selector="TextBlock.SmallText">
|
|
<Setter Property="FontSize" Value="12"/>
|
|
</Style>
|
|
<Style Selector="TextBlock.ExtraSmallText">
|
|
<Setter Property="FontSize" Value="11"/>
|
|
</Style>
|
|
<Style Selector="TextBox">
|
|
<Setter Property="Foreground" Value="{DynamicResource ForegroundBrush}"/>
|
|
<Setter Property="Background" Value="{DynamicResource ContainerBackgroundBrush}"/>
|
|
</Style>
|
|
<Style Selector="ListBox.ContentListView">
|
|
<Setter Property="Background" Value="Transparent"/>
|
|
<Setter Property="HorizontalAlignment" Value="Stretch"/>
|
|
</Style>
|
|
<Style Selector="ListBox.ContentListView > ListBoxItem">
|
|
<Setter Property="Margin" Value="0"/>
|
|
<Setter Property="Padding" Value="0"/>
|
|
<Setter Property="Background" Value="Transparent"/>
|
|
<Setter Property="HorizontalContentAlignment" Value="Stretch"/>
|
|
<Setter Property="HorizontalAlignment" Value="Stretch"/>
|
|
<Setter Property="ContextMenu">
|
|
<ContextMenu Items="{Binding Converter={StaticResource ContextMenuGenerator}}"/>
|
|
</Setter>
|
|
</Style>
|
|
|
|
<Style Selector="Grid.RootDriveInfo">
|
|
<Setter Property="Background" Value="#01000000"/>
|
|
</Style>
|
|
|
|
<Style Selector="Grid.RootDriveInfo:pointerover">
|
|
<Setter Property="Background" Value="{DynamicResource AppBackgroundColor}"/>
|
|
</Style>
|
|
|
|
<Style Selector="Grid.PlacesItem">
|
|
<Setter Property="Background" Value="#01000000"/>
|
|
</Style>
|
|
|
|
<Style Selector="Grid.PlacesItem:pointerover">
|
|
<Setter Property="Background" Value="{DynamicResource AppBackgroundColor}"/>
|
|
</Style>
|
|
|
|
<Style Selector="Border.SelectedTimelineCommand">
|
|
<Setter Property="BorderBrush" Value="{DynamicResource ForegroundBrush}"/>
|
|
</Style>
|
|
</Application.Styles>
|
|
</Application>
|