inital
This commit is contained in:
27
FasdDesktopUi/ResourceDictionaries/BaseResources.xaml
Normal file
27
FasdDesktopUi/ResourceDictionaries/BaseResources.xaml
Normal file
@@ -0,0 +1,27 @@
|
||||
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:sys="clr-namespace:System;assembly=mscorlib">
|
||||
|
||||
<ResourceDictionary.MergedDictionaries>
|
||||
|
||||
<!--Basic-->
|
||||
<ResourceDictionary Source="./Basic/MenuResources.xaml" />
|
||||
<ResourceDictionary Source="./Basic/FunctionMarkerResources.xaml" />
|
||||
<ResourceDictionary Source="./Basic/SearchBarResources.xaml" />
|
||||
|
||||
<!--DetailsPage-->
|
||||
<ResourceDictionary Source="./DetailsPageResources/TitleSectionResources.xaml" />
|
||||
<ResourceDictionary Source="./DetailsPageResources/WidgetResources.xaml" />
|
||||
<ResourceDictionary Source="./DetailsPageResources/DataHistoryResources.xaml" />
|
||||
<ResourceDictionary Source="./DetailsPageResources/CustomizableResources.xaml" />
|
||||
|
||||
<!--SlimPage-->
|
||||
<ResourceDictionary Source="./SlimPageResources/DataHistoryResources.xaml" />
|
||||
<ResourceDictionary Source="./SlimPageResources/WidgetResources.xaml" />
|
||||
|
||||
<!--SettingsPage-->
|
||||
<ResourceDictionary Source="./SettingsPageResources/SettingsPageResources.xaml" />
|
||||
|
||||
</ResourceDictionary.MergedDictionaries>
|
||||
|
||||
</ResourceDictionary>
|
||||
@@ -0,0 +1,90 @@
|
||||
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:ico="clr-namespace:FasdDesktopUi.Basics.UserControls.AdaptableIcon;assembly=F4SD-AdaptableIcon">
|
||||
|
||||
<Style x:Key="Basic.FunctionMarker.Base"
|
||||
TargetType="ico:AdaptableIcon">
|
||||
|
||||
<Setter Property="PrimaryIconColor"
|
||||
Value="{DynamicResource Color.FunctionMarker}" />
|
||||
<Setter Property="HorizontalAlignment"
|
||||
Value="Left" />
|
||||
<Setter Property="IconHeight"
|
||||
Value="28" />
|
||||
<Setter Property="IconWidth"
|
||||
Value="28" />
|
||||
<Setter Property="BorderPadding"
|
||||
Value="10" />
|
||||
<Setter Property="Cursor"
|
||||
Value="Hand" />
|
||||
|
||||
<Style.Triggers>
|
||||
|
||||
<Trigger Property="IsMouseOver"
|
||||
Value="True">
|
||||
<Setter Property="BorderPadding"
|
||||
Value="9" />
|
||||
</Trigger>
|
||||
|
||||
<DataTrigger Binding="{Binding RelativeSource={RelativeSource Self}, Path=SelectedInternIcon}"
|
||||
Value="misc_functionBolt">
|
||||
<Setter Property="BorderPadding"
|
||||
Value="7.5" />
|
||||
</DataTrigger>
|
||||
|
||||
<MultiDataTrigger>
|
||||
<MultiDataTrigger.Conditions>
|
||||
<Condition Binding="{Binding RelativeSource={RelativeSource Self}, Path=SelectedInternIcon}"
|
||||
Value="misc_functionBolt" />
|
||||
<Condition Binding="{Binding RelativeSource={RelativeSource Self}, Path=IsMouseOver}"
|
||||
Value="True" />
|
||||
</MultiDataTrigger.Conditions>
|
||||
|
||||
<Setter Property="BorderPadding"
|
||||
Value="6" />
|
||||
</MultiDataTrigger>
|
||||
|
||||
</Style.Triggers>
|
||||
|
||||
</Style>
|
||||
|
||||
<Style x:Key="Basic.FunctionMarker.Title"
|
||||
TargetType="ico:AdaptableIcon"
|
||||
BasedOn="{StaticResource Basic.FunctionMarker.Base}">
|
||||
|
||||
<Setter Property="Margin"
|
||||
Value="-10 -10 10 -10" />
|
||||
<Setter Property="IconWidth"
|
||||
Value="55" />
|
||||
<Setter Property="IconHeight"
|
||||
Value="60" />
|
||||
<Setter Property="BorderPadding"
|
||||
Value="23.5" />
|
||||
|
||||
<Setter Property="IconCornerRadius"
|
||||
Value="7.5 0 0 7.5" />
|
||||
|
||||
<Style.Triggers>
|
||||
|
||||
<DataTrigger Binding="{Binding RelativeSource={RelativeSource Self}, Path=IconName}"
|
||||
Value="misc_functionBolt">
|
||||
<Setter Property="BorderPadding"
|
||||
Value="23.5" />
|
||||
</DataTrigger>
|
||||
|
||||
<Trigger Property="IsMouseOver"
|
||||
Value="True">
|
||||
<Setter Property="BorderPadding"
|
||||
Value="20" />
|
||||
|
||||
<Setter Property="PrimaryIconColor"
|
||||
Value="White" />
|
||||
<Setter Property="IconBackgroundColor"
|
||||
Value="{DynamicResource Color.FunctionMarker}" />
|
||||
</Trigger>
|
||||
|
||||
</Style.Triggers>
|
||||
|
||||
</Style>
|
||||
|
||||
</ResourceDictionary>
|
||||
447
FasdDesktopUi/ResourceDictionaries/Basic/MenuResources.xaml
Normal file
447
FasdDesktopUi/ResourceDictionaries/Basic/MenuResources.xaml
Normal file
@@ -0,0 +1,447 @@
|
||||
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:ico="clr-namespace:FasdDesktopUi.Basics.UserControls.AdaptableIcon;assembly=F4SD-AdaptableIcon">
|
||||
|
||||
<Style x:Key="Menu.MenuBar.PinnedIcon.Base"
|
||||
TargetType="ico:AdaptableIcon">
|
||||
<Setter Property="Margin"
|
||||
Value="5, 0, 5, 0" />
|
||||
<Setter Property="IconBackgroundColor"
|
||||
Value="Transparent" />
|
||||
<Setter Property="HorizontalAlignment"
|
||||
Value="Center" />
|
||||
<Setter Property="IconHeight"
|
||||
Value="30" />
|
||||
<Setter Property="IconWidth"
|
||||
Value="30" />
|
||||
<Setter Property="BorderPadding"
|
||||
Value="5" />
|
||||
<Setter Property="PrimaryIconColor"
|
||||
Value="{DynamicResource Color.Menu.Icon}" />
|
||||
</Style>
|
||||
|
||||
<Style x:Key="Menu.MenuBar.PinnedIcon"
|
||||
TargetType="ico:AdaptableIcon"
|
||||
BasedOn="{StaticResource Menu.MenuBar.PinnedIcon.Base}">
|
||||
<Setter Property="Cursor"
|
||||
Value="Hand" />
|
||||
<Style.Triggers>
|
||||
<Trigger Property="IsMouseOver"
|
||||
Value="True">
|
||||
<!--new Margin:
|
||||
Old Margin - (New Width - Old Width) / 2
|
||||
Old Margin - (New Height - Old Height)
|
||||
Old Margin - (New Width - Old Width) / 2
|
||||
Old Margin - (New Height - Old Height) -->
|
||||
<Setter Property="PrimaryIconColor"
|
||||
Value="{DynamicResource Color.Menu.Icon.Hover}" />
|
||||
<Setter Property="IconBackgroundColor"
|
||||
Value="{DynamicResource Background.Menu.Icon.Hover}" />
|
||||
</Trigger>
|
||||
</Style.Triggers>
|
||||
</Style>
|
||||
|
||||
<Style x:Key="Menu.MenuBar.PinnedIcon.Color"
|
||||
TargetType="ico:AdaptableIcon"
|
||||
BasedOn="{StaticResource Menu.MenuBar.PinnedIcon.Base}">
|
||||
<Setter Property="Cursor"
|
||||
Value="Hand" />
|
||||
<Style.Triggers>
|
||||
<Trigger Property="IsMouseOver"
|
||||
Value="True">
|
||||
<Setter Property="PrimaryIconColor"
|
||||
Value="{DynamicResource Color.Menu.Icon.Hover}" />
|
||||
</Trigger>
|
||||
</Style.Triggers>
|
||||
</Style>
|
||||
|
||||
<Style x:Key="Menu.MenuBar.PinnedIcon.Pinned"
|
||||
TargetType="ico:AdaptableIcon"
|
||||
BasedOn="{StaticResource Menu.MenuBar.PinnedIcon.Base}">
|
||||
<Setter Property="Cursor"
|
||||
Value="Hand" />
|
||||
<Setter Property="HorizontalAlignment"
|
||||
Value="Center" />
|
||||
<Setter Property="IconHeight"
|
||||
Value="36" />
|
||||
<Setter Property="IconWidth"
|
||||
Value="36" />
|
||||
<Setter Property="Margin"
|
||||
Value="2, -3, 2, -3" />
|
||||
<Setter Property="BorderPadding"
|
||||
Value="7.5" />
|
||||
<Setter Property="PrimaryIconColor"
|
||||
Value="{DynamicResource Color.Menu.Icon}" />
|
||||
<Setter Property="IconBackgroundColor"
|
||||
Value="{DynamicResource Background.Menu.Icon.Hover}" />
|
||||
<Style.Triggers>
|
||||
<Trigger Property="IsMouseOver"
|
||||
Value="True">
|
||||
<Setter Property="PrimaryIconColor"
|
||||
Value="{DynamicResource Color.Menu.Icon.Hover}" />
|
||||
</Trigger>
|
||||
</Style.Triggers>
|
||||
</Style>
|
||||
|
||||
<Style x:Key="Menu.MenuBar.PinnedIcon.Disabled"
|
||||
TargetType="ico:AdaptableIcon"
|
||||
BasedOn="{StaticResource Menu.MenuBar.PinnedIcon.Base}">
|
||||
|
||||
<Setter Property="Opacity"
|
||||
Value="0.45" />
|
||||
</Style>
|
||||
|
||||
<Style x:Key="Menu.MenuBar.PinnedIcon.More"
|
||||
TargetType="ico:AdaptableIcon"
|
||||
BasedOn="{StaticResource Menu.MenuBar.PinnedIcon}">
|
||||
<Setter Property="SelectedMaterialIcon"
|
||||
Value="ic_menu" />
|
||||
<Setter Property="BorderPadding"
|
||||
Value="1.5" />
|
||||
|
||||
<Style.Triggers>
|
||||
<Trigger Property="IsMouseOver"
|
||||
Value="True">
|
||||
<Setter Property="IconHeight"
|
||||
Value="36" />
|
||||
<Setter Property="IconWidth"
|
||||
Value="36" />
|
||||
<!--new Margin:
|
||||
Old Margin - (New Width - Old Width) / 2
|
||||
Old Margin - (New Height - Old Height)
|
||||
Old Margin - (New Width - Old Width) / 2
|
||||
Old Margin - (New Height - Old Height) -->
|
||||
<Setter Property="Margin"
|
||||
Value="2, -3, 2, -3" />
|
||||
<Setter Property="BorderPadding"
|
||||
Value="4" />
|
||||
<Setter Property="PrimaryIconColor"
|
||||
Value="{DynamicResource Color.Menu.Icon.Hover}" />
|
||||
<Setter Property="IconBackgroundColor"
|
||||
Value="{DynamicResource Background.Menu.Icon.Hover}" />
|
||||
</Trigger>
|
||||
</Style.Triggers>
|
||||
</Style>
|
||||
|
||||
<Style x:Key="Menu.Selector.Icon.Lock"
|
||||
TargetType="ico:AdaptableIcon">
|
||||
<Setter Property="SelectedInternIcon"
|
||||
Value="lock_open" />
|
||||
<Setter Property="PrimaryIconColor"
|
||||
Value="{DynamicResource Color.SoftContrast}" />
|
||||
<Setter Property="BorderPadding"
|
||||
Value="5.5" />
|
||||
<Setter Property="IconHeight"
|
||||
Value="35" />
|
||||
<Setter Property="IconWidth"
|
||||
Value="20" />
|
||||
<Setter Property="Cursor"
|
||||
Value="Hand" />
|
||||
<Style.Triggers>
|
||||
|
||||
<MultiDataTrigger>
|
||||
<MultiDataTrigger.Conditions>
|
||||
<Condition Binding="{Binding ElementName=QuickActionSelectorUc, Path=IsLocked}"
|
||||
Value="False" />
|
||||
<Condition Binding="{Binding RelativeSource={RelativeSource Self}, Path=IsMouseOver}"
|
||||
Value="False" />
|
||||
</MultiDataTrigger.Conditions>
|
||||
|
||||
<Setter Property="SelectedInternIcon"
|
||||
Value="lock_open" />
|
||||
<Setter Property="PrimaryIconColor"
|
||||
Value="{DynamicResource Color.SoftContrast}" />
|
||||
</MultiDataTrigger>
|
||||
|
||||
<MultiDataTrigger>
|
||||
<MultiDataTrigger.Conditions>
|
||||
<Condition Binding="{Binding ElementName=QuickActionSelectorUc, Path=IsLocked}"
|
||||
Value="False" />
|
||||
<Condition Binding="{Binding RelativeSource={RelativeSource Self}, Path=IsMouseOver}"
|
||||
Value="True" />
|
||||
</MultiDataTrigger.Conditions>
|
||||
|
||||
<Setter Property="SelectedInternIcon"
|
||||
Value="lock_openHover" />
|
||||
<Setter Property="PrimaryIconColor"
|
||||
Value="{DynamicResource Color.Menu.Icon.Hover}" />
|
||||
</MultiDataTrigger>
|
||||
|
||||
<MultiDataTrigger>
|
||||
<MultiDataTrigger.Conditions>
|
||||
<Condition Binding="{Binding ElementName=QuickActionSelectorUc, Path=IsLocked}"
|
||||
Value="True" />
|
||||
<Condition Binding="{Binding RelativeSource={RelativeSource Self}, Path=IsMouseOver}"
|
||||
Value="False" />
|
||||
</MultiDataTrigger.Conditions>
|
||||
|
||||
<Setter Property="SelectedInternIcon"
|
||||
Value="lock_closed" />
|
||||
<Setter Property="PrimaryIconColor"
|
||||
Value="{DynamicResource Color.Menu.Icon}" />
|
||||
</MultiDataTrigger>
|
||||
|
||||
<MultiDataTrigger>
|
||||
<MultiDataTrigger.Conditions>
|
||||
<Condition Binding="{Binding ElementName=QuickActionSelectorUc, Path=IsLocked}"
|
||||
Value="True" />
|
||||
<Condition Binding="{Binding RelativeSource={RelativeSource Self}, Path=IsMouseOver}"
|
||||
Value="True" />
|
||||
</MultiDataTrigger.Conditions>
|
||||
|
||||
<Setter Property="SelectedInternIcon"
|
||||
Value="lock_closedHover" />
|
||||
<Setter Property="PrimaryIconColor"
|
||||
Value="{DynamicResource Color.Menu.Icon.Hover}" />
|
||||
<Setter Property="BorderPadding"
|
||||
Value="3" />
|
||||
</MultiDataTrigger>
|
||||
|
||||
</Style.Triggers>
|
||||
</Style>
|
||||
|
||||
<Style x:Key="Menu.Notepad.Icon.Lock"
|
||||
TargetType="ico:AdaptableIcon">
|
||||
<Setter Property="SelectedInternIcon"
|
||||
Value="lock_open" />
|
||||
<Setter Property="PrimaryIconColor"
|
||||
Value="{DynamicResource Color.SoftContrast}" />
|
||||
<Setter Property="BorderPadding"
|
||||
Value="5.5" />
|
||||
<Setter Property="IconHeight"
|
||||
Value="35" />
|
||||
<Setter Property="IconWidth"
|
||||
Value="20" />
|
||||
<Setter Property="Cursor"
|
||||
Value="Hand" />
|
||||
<Style.Triggers>
|
||||
|
||||
<MultiDataTrigger>
|
||||
<MultiDataTrigger.Conditions>
|
||||
<Condition Binding="{Binding ElementName=NotepadUc, Path=IsLocked}"
|
||||
Value="False" />
|
||||
<Condition Binding="{Binding RelativeSource={RelativeSource Self}, Path=IsMouseOver}"
|
||||
Value="False" />
|
||||
</MultiDataTrigger.Conditions>
|
||||
|
||||
<Setter Property="SelectedInternIcon"
|
||||
Value="lock_open" />
|
||||
<Setter Property="PrimaryIconColor"
|
||||
Value="{DynamicResource Color.SoftContrast}" />
|
||||
</MultiDataTrigger>
|
||||
|
||||
<MultiDataTrigger>
|
||||
<MultiDataTrigger.Conditions>
|
||||
<Condition Binding="{Binding ElementName=NotepadUc, Path=IsLocked}"
|
||||
Value="False" />
|
||||
<Condition Binding="{Binding RelativeSource={RelativeSource Self}, Path=IsMouseOver}"
|
||||
Value="True" />
|
||||
</MultiDataTrigger.Conditions>
|
||||
|
||||
<Setter Property="SelectedInternIcon"
|
||||
Value="lock_openHover" />
|
||||
<Setter Property="PrimaryIconColor"
|
||||
Value="{DynamicResource Color.Menu.Icon.Hover}" />
|
||||
</MultiDataTrigger>
|
||||
|
||||
<MultiDataTrigger>
|
||||
<MultiDataTrigger.Conditions>
|
||||
<Condition Binding="{Binding ElementName=NotepadUc, Path=IsLocked}"
|
||||
Value="True" />
|
||||
<Condition Binding="{Binding RelativeSource={RelativeSource Self}, Path=IsMouseOver}"
|
||||
Value="False" />
|
||||
</MultiDataTrigger.Conditions>
|
||||
|
||||
<Setter Property="SelectedInternIcon"
|
||||
Value="lock_closed" />
|
||||
<Setter Property="PrimaryIconColor"
|
||||
Value="{DynamicResource Color.Menu.Icon}" />
|
||||
</MultiDataTrigger>
|
||||
|
||||
<MultiDataTrigger>
|
||||
<MultiDataTrigger.Conditions>
|
||||
<Condition Binding="{Binding ElementName=NotepadUc, Path=IsLocked}"
|
||||
Value="True" />
|
||||
<Condition Binding="{Binding RelativeSource={RelativeSource Self}, Path=IsMouseOver}"
|
||||
Value="True" />
|
||||
</MultiDataTrigger.Conditions>
|
||||
|
||||
<Setter Property="SelectedInternIcon"
|
||||
Value="lock_closedHover" />
|
||||
<Setter Property="PrimaryIconColor"
|
||||
Value="{DynamicResource Color.Menu.Icon.Hover}" />
|
||||
<Setter Property="BorderPadding"
|
||||
Value="3" />
|
||||
</MultiDataTrigger>
|
||||
|
||||
</Style.Triggers>
|
||||
</Style>
|
||||
|
||||
<Style x:Key="Menu.CategoryBase"
|
||||
TargetType="Border">
|
||||
<Setter Property="Margin"
|
||||
Value="0, 0.5, 0, 0.5" />
|
||||
<Setter Property="Padding"
|
||||
Value="10, 0, 10, 0" />
|
||||
<Setter Property="Cursor"
|
||||
Value="Hand" />
|
||||
<Setter Property="BorderThickness"
|
||||
Value="0, 0.5, 0, 0.5" />
|
||||
<Setter Property="BorderBrush"
|
||||
Value="{DynamicResource BackgroundColor.Menu.Categories}" />
|
||||
</Style>
|
||||
|
||||
<Style x:Key="Menu.CategoryBase.TextBlock.NoHover"
|
||||
TargetType="TextBlock">
|
||||
<Setter Property="Foreground"
|
||||
Value="{DynamicResource FontColor.Menu.Categories}" />
|
||||
<Setter Property="VerticalAlignment"
|
||||
Value="Center" />
|
||||
</Style>
|
||||
|
||||
<Style x:Key="Menu.CategoryBase.TextBlock"
|
||||
TargetType="TextBlock"
|
||||
BasedOn="{StaticResource Menu.CategoryBase.TextBlock.NoHover}">
|
||||
<Style.Triggers>
|
||||
<DataTrigger Binding="{Binding RelativeSource={RelativeSource AncestorLevel=1, AncestorType=Border}, Path=IsMouseOver}"
|
||||
Value="True">
|
||||
<Setter Property="Foreground"
|
||||
Value="{DynamicResource FontColor.Menu.Categories.Hover}" />
|
||||
</DataTrigger>
|
||||
</Style.Triggers>
|
||||
</Style>
|
||||
|
||||
<Style x:Key="Menu.CategoryBase.Icon.NoHover"
|
||||
TargetType="ico:AdaptableIcon">
|
||||
<Setter Property="PrimaryIconColor"
|
||||
Value="{DynamicResource Color.Menu.Icon}" />
|
||||
<Setter Property="IconHeight"
|
||||
Value="20" />
|
||||
<Setter Property="IconWidth"
|
||||
Value="20" />
|
||||
<Setter Property="BorderPadding"
|
||||
Value="1.5" />
|
||||
</Style>
|
||||
|
||||
<Style x:Key="Menu.CategoryBase.Icon"
|
||||
TargetType="ico:AdaptableIcon"
|
||||
BasedOn="{StaticResource Menu.CategoryBase.Icon.NoHover}">
|
||||
<Style.Triggers>
|
||||
<DataTrigger Binding="{Binding RelativeSource={RelativeSource AncestorLevel=1, AncestorType=Border}, Path=IsMouseOver}"
|
||||
Value="True">
|
||||
<Setter Property="PrimaryIconColor"
|
||||
Value="{DynamicResource Color.Menu.Icon.Hover}" />
|
||||
<Setter Property="BorderPadding"
|
||||
Value="0" />
|
||||
</DataTrigger>
|
||||
</Style.Triggers>
|
||||
</Style>
|
||||
|
||||
<Style x:Key="Menu.MainCategory.NoHover"
|
||||
TargetType="Border"
|
||||
BasedOn="{StaticResource Menu.CategoryBase}">
|
||||
|
||||
<Setter Property="Height"
|
||||
Value="45" />
|
||||
<Setter Property="Background"
|
||||
Value="{DynamicResource BackgroundColor.Menu.MainCategory}" />
|
||||
<Setter Property="Cursor"
|
||||
Value="{x:Null}" />
|
||||
|
||||
<Style.Resources>
|
||||
<Style TargetType="TextBlock"
|
||||
BasedOn="{StaticResource Menu.CategoryBase.TextBlock.NoHover}" />
|
||||
<Style TargetType="ico:AdaptableIcon"
|
||||
BasedOn="{StaticResource Menu.CategoryBase.Icon.NoHover}" />
|
||||
|
||||
</Style.Resources>
|
||||
</Style>
|
||||
|
||||
<Style x:Key="Menu.MainCategory"
|
||||
TargetType="Border"
|
||||
BasedOn="{StaticResource Menu.CategoryBase}">
|
||||
|
||||
<Setter Property="Height"
|
||||
Value="45" />
|
||||
<Setter Property="Background"
|
||||
Value="{DynamicResource BackgroundColor.Menu.MainCategory}" />
|
||||
|
||||
<Style.Triggers>
|
||||
<Trigger Property="IsMouseOver"
|
||||
Value="True">
|
||||
<Setter Property="Background"
|
||||
Value="{DynamicResource BackgroundColor.Menu.MainCategory.Hover}" />
|
||||
</Trigger>
|
||||
</Style.Triggers>
|
||||
|
||||
<Style.Resources>
|
||||
<Style TargetType="TextBlock"
|
||||
BasedOn="{StaticResource Menu.CategoryBase.TextBlock}" />
|
||||
<Style TargetType="ico:AdaptableIcon"
|
||||
BasedOn="{StaticResource Menu.CategoryBase.Icon}" />
|
||||
</Style.Resources>
|
||||
</Style>
|
||||
|
||||
<Style x:Key="Menu.MainCategory.Hover"
|
||||
TargetType="Border"
|
||||
BasedOn="{StaticResource Menu.MainCategory}">
|
||||
<Setter Property="Background"
|
||||
Value="{DynamicResource BackgroundColor.Menu.MainCategory.Hover}" />
|
||||
|
||||
<Style.Resources>
|
||||
<Style TargetType="TextBlock"
|
||||
BasedOn="{StaticResource Menu.CategoryBase.TextBlock}">
|
||||
<!--<Setter Property="Margin"
|
||||
Value="15, 0, 0, 0" />-->
|
||||
<Setter Property="Foreground"
|
||||
Value="{DynamicResource FontColor.Menu.Categories.Hover}" />
|
||||
</Style>
|
||||
|
||||
<Style TargetType="ico:AdaptableIcon"
|
||||
BasedOn="{StaticResource Menu.CategoryBase.Icon}">
|
||||
<Setter Property="PrimaryIconColor"
|
||||
Value="{DynamicResource Color.Menu.Icon.Hover}" />
|
||||
<Setter Property="BorderPadding"
|
||||
Value="0" />
|
||||
</Style>
|
||||
</Style.Resources>
|
||||
</Style>
|
||||
|
||||
<Style x:Key="Menu.SubCategory"
|
||||
TargetType="Border"
|
||||
BasedOn="{StaticResource Menu.CategoryBase}">
|
||||
|
||||
<Setter Property="Height"
|
||||
Value="45" />
|
||||
<Setter Property="Background"
|
||||
Value="{DynamicResource BackgroundColor.Menu.SubCategory}" />
|
||||
|
||||
<Style.Triggers>
|
||||
<Trigger Property="IsMouseOver"
|
||||
Value="True">
|
||||
<Setter Property="Background"
|
||||
Value="{DynamicResource BackgroundColor.Menu.SubCategory.Hover}" />
|
||||
</Trigger>
|
||||
</Style.Triggers>
|
||||
|
||||
<Style.Resources>
|
||||
<Style TargetType="TextBlock"
|
||||
BasedOn="{StaticResource Menu.CategoryBase.TextBlock}" />
|
||||
<Style TargetType="ico:AdaptableIcon"
|
||||
BasedOn="{StaticResource Menu.CategoryBase.Icon}" />
|
||||
</Style.Resources>
|
||||
</Style>
|
||||
|
||||
<Style x:Key="Menu.DropShadow">
|
||||
<Setter Property="Control.Effect">
|
||||
<Setter.Value>
|
||||
<DropShadowEffect BlurRadius="10"
|
||||
Color="{DynamicResource DropShadowColor.Menu}"
|
||||
Direction="55"
|
||||
ShadowDepth="10"
|
||||
Opacity="0.6" />
|
||||
</Setter.Value>
|
||||
</Setter>
|
||||
</Style>
|
||||
|
||||
</ResourceDictionary>
|
||||
111
FasdDesktopUi/ResourceDictionaries/Basic/SearchBarResources.xaml
Normal file
111
FasdDesktopUi/ResourceDictionaries/Basic/SearchBarResources.xaml
Normal file
@@ -0,0 +1,111 @@
|
||||
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:ico="clr-namespace:FasdDesktopUi.Basics.UserControls.AdaptableIcon;assembly=F4SD-AdaptableIcon">
|
||||
|
||||
<Style x:Key="SearchBar.TextBox"
|
||||
TargetType="TextBox">
|
||||
<Setter Property="VerticalAlignment"
|
||||
Value="Center" />
|
||||
<Setter Property="Margin"
|
||||
Value="5 2.5 30 2.5" />
|
||||
<Setter Property="Padding"
|
||||
Value="2" />
|
||||
<Setter Property="BorderBrush"
|
||||
Value="{DynamicResource Color.SoftContrast}" />
|
||||
<Setter Property="BorderThickness"
|
||||
Value="0" />
|
||||
<Setter Property="Background"
|
||||
Value="Transparent" />
|
||||
<Setter Property="Foreground"
|
||||
Value="{DynamicResource FontColor.Menu.Categories}" />
|
||||
<Setter Property="CaretBrush"
|
||||
Value="{DynamicResource FontColor.Menu.Categories}" />
|
||||
</Style>
|
||||
|
||||
<Style x:Key="SearchBar.CategoryBase"
|
||||
TargetType="Border">
|
||||
<Setter Property="Margin"
|
||||
Value="-10, 0.5, -10, 0.5" />
|
||||
<Setter Property="Padding"
|
||||
Value="10, 0, 10, 0" />
|
||||
<Setter Property="Cursor"
|
||||
Value="Hand" />
|
||||
<Setter Property="BorderThickness"
|
||||
Value="0, 0.5, 0, 0.5" />
|
||||
<Setter Property="BorderBrush"
|
||||
Value="{DynamicResource BackgroundColor.Menu.Categories}" />
|
||||
</Style>
|
||||
|
||||
<Style x:Key="SearchBar.CategoryBase.TextBlock"
|
||||
TargetType="TextBlock">
|
||||
<Setter Property="Foreground"
|
||||
Value="{DynamicResource FontColor.Menu.Categories}" />
|
||||
<Setter Property="VerticalAlignment"
|
||||
Value="Center" />
|
||||
</Style>
|
||||
|
||||
<Style x:Key="SearchBar.CategoryBase.Icon"
|
||||
TargetType="ico:AdaptableIcon">
|
||||
<Setter Property="PrimaryIconColor"
|
||||
Value="{DynamicResource Color.Menu.Icon}" />
|
||||
<Setter Property="IconHeight"
|
||||
Value="17" />
|
||||
<Setter Property="IconWidth"
|
||||
Value="17" />
|
||||
<Setter Property="BorderPadding"
|
||||
Value="0" />
|
||||
</Style>
|
||||
|
||||
<Style x:Key="SearchBar.ResultBorder"
|
||||
TargetType="Border"
|
||||
BasedOn="{StaticResource SearchBar.CategoryBase}">
|
||||
|
||||
<Setter Property="Height"
|
||||
Value="45" />
|
||||
<Setter Property="Background"
|
||||
Value="Transparent" />
|
||||
|
||||
<Style.Resources>
|
||||
<Style TargetType="TextBlock"
|
||||
BasedOn="{StaticResource SearchBar.CategoryBase.TextBlock}">
|
||||
<Setter Property="Margin"
|
||||
Value="15, 0, 0, 0" />
|
||||
</Style>
|
||||
|
||||
<Style TargetType="ico:AdaptableIcon"
|
||||
BasedOn="{StaticResource SearchBar.CategoryBase.Icon}" />
|
||||
|
||||
</Style.Resources>
|
||||
</Style>
|
||||
|
||||
<Style x:Key="SearchBar.ResultBorder.Hover"
|
||||
TargetType="Border"
|
||||
BasedOn="{StaticResource SearchBar.ResultBorder}">
|
||||
<Setter Property="Background"
|
||||
Value="{DynamicResource BackgroundColor.Menu.MainCategory.Hover}" />
|
||||
|
||||
<Style.Resources>
|
||||
<Style TargetType="TextBlock"
|
||||
BasedOn="{StaticResource SearchBar.CategoryBase.TextBlock}">
|
||||
<Setter Property="Margin"
|
||||
Value="15, 0, 0, 0" />
|
||||
<Setter Property="Foreground"
|
||||
Value="{DynamicResource FontColor.Menu.Categories.Hover}" />
|
||||
</Style>
|
||||
|
||||
<Style TargetType="ico:AdaptableIcon"
|
||||
BasedOn="{StaticResource SearchBar.CategoryBase.Icon}">
|
||||
<Setter Property="PrimaryIconColor"
|
||||
Value="{DynamicResource Color.Menu.Icon.Hover}" />
|
||||
<Setter Property="IconHeight"
|
||||
Value="20" />
|
||||
<Setter Property="IconWidth"
|
||||
Value="20" />
|
||||
<Setter Property="Margin"
|
||||
Value="-1.5, -1.5, -1.5, -1.5" />
|
||||
</Style>
|
||||
|
||||
</Style.Resources>
|
||||
</Style>
|
||||
|
||||
</ResourceDictionary>
|
||||
109
FasdDesktopUi/ResourceDictionaries/CheckBoxResources.xaml
Normal file
109
FasdDesktopUi/ResourceDictionaries/CheckBoxResources.xaml
Normal file
@@ -0,0 +1,109 @@
|
||||
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
|
||||
|
||||
<Style x:Key="ToggleSwitch"
|
||||
TargetType="CheckBox">
|
||||
<Setter Property="Height"
|
||||
Value="15" />
|
||||
<Setter Property="ToolTipService.ShowOnDisabled"
|
||||
Value="True" />
|
||||
<Setter Property="Template">
|
||||
<Setter.Value>
|
||||
<ControlTemplate TargetType="CheckBox">
|
||||
<ControlTemplate.Resources>
|
||||
<Storyboard x:Key="OnChecking">
|
||||
<DoubleAnimation Storyboard.TargetName="MySlider"
|
||||
Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[0].(TranslateTransform.X)"
|
||||
Duration="00:00:00.25"
|
||||
From="0"
|
||||
To="25.5" />
|
||||
<ColorAnimation Duration="00:00:00.25"
|
||||
Storyboard.TargetName="MySliderBackground"
|
||||
Storyboard.TargetProperty="(Border.Background).(SolidColorBrush.Color)"
|
||||
To="{StaticResource Color.LoadingDot.Primary}" />
|
||||
</Storyboard>
|
||||
<Storyboard x:Key="OnUnchecking">
|
||||
<DoubleAnimation Storyboard.TargetName="MySlider"
|
||||
Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[0].(TranslateTransform.X)"
|
||||
Duration="00:00:00.25"
|
||||
From="25.5"
|
||||
To="0" />
|
||||
<ColorAnimation Duration="00:00:00.25"
|
||||
Storyboard.TargetName="MySliderBackground"
|
||||
Storyboard.TargetProperty="(Border.Background).(SolidColorBrush.Color)"
|
||||
From="{StaticResource Color.LoadingDot.Primary}" />
|
||||
</Storyboard>
|
||||
</ControlTemplate.Resources>
|
||||
|
||||
<ControlTemplate.Triggers>
|
||||
<Trigger Property="IsChecked"
|
||||
Value="True">
|
||||
<Trigger.EnterActions>
|
||||
<BeginStoryboard Storyboard="{StaticResource OnChecking}"
|
||||
x:Name="OnChecking_BeginStoryboard" />
|
||||
</Trigger.EnterActions>
|
||||
<Trigger.ExitActions>
|
||||
<BeginStoryboard Storyboard="{StaticResource OnUnchecking}"
|
||||
x:Name="OnUnchecking_BeginStoryboard" />
|
||||
</Trigger.ExitActions>
|
||||
<Setter Property="Background"
|
||||
Value="#1F92EE" />
|
||||
</Trigger>
|
||||
<Trigger Property="IsChecked"
|
||||
Value="False">
|
||||
<Setter Property="Background"
|
||||
Value="{DynamicResource Color.SoftContrast}" />
|
||||
</Trigger>
|
||||
<Trigger Property="IsEnabled"
|
||||
Value="False">
|
||||
<Setter Property="Opacity"
|
||||
Value="0.7" />
|
||||
<Setter Property="Cursor"
|
||||
Value="{x:Null}" />
|
||||
</Trigger>
|
||||
</ControlTemplate.Triggers>
|
||||
|
||||
<Viewbox
|
||||
ToolTip="{TemplateBinding ToolTip}"
|
||||
ToolTipService.ShowOnDisabled="True">
|
||||
<StackPanel Orientation="Horizontal">
|
||||
<Border x:Name="MySliderBackground"
|
||||
Background="{TemplateBinding Background}"
|
||||
Width="50"
|
||||
Height="25"
|
||||
CornerRadius="12.5"
|
||||
Cursor="Hand">
|
||||
<Grid HorizontalAlignment="Left">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="*" />
|
||||
<ColumnDefinition Width="Auto" />
|
||||
</Grid.ColumnDefinitions>
|
||||
<Border x:Name="MySlider"
|
||||
Grid.Column="1">
|
||||
<Border.RenderTransform>
|
||||
<TransformGroup>
|
||||
<TranslateTransform X="0"
|
||||
Y="0" />
|
||||
</TransformGroup>
|
||||
</Border.RenderTransform>
|
||||
<Ellipse Height="21.5"
|
||||
Width="21.5"
|
||||
Fill="{DynamicResource BackgroundColor.Menu.MainCategory.Hover}"
|
||||
DockPanel.Dock="Left"
|
||||
Margin="2 1.5" />
|
||||
</Border>
|
||||
</Grid>
|
||||
</Border>
|
||||
<ContentPresenter
|
||||
VerticalAlignment="Center"
|
||||
HorizontalAlignment="Center"
|
||||
Margin="5,0,0,0"
|
||||
Content="{TemplateBinding Content}" />
|
||||
</StackPanel>
|
||||
|
||||
</Viewbox>
|
||||
</ControlTemplate>
|
||||
</Setter.Value>
|
||||
</Setter>
|
||||
</Style>
|
||||
</ResourceDictionary>
|
||||
1462
FasdDesktopUi/ResourceDictionaries/ComboBoxResources.xaml
Normal file
1462
FasdDesktopUi/ResourceDictionaries/ComboBoxResources.xaml
Normal file
File diff suppressed because it is too large
Load Diff
86
FasdDesktopUi/ResourceDictionaries/DarkModeResources.xaml
Normal file
86
FasdDesktopUi/ResourceDictionaries/DarkModeResources.xaml
Normal file
@@ -0,0 +1,86 @@
|
||||
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
|
||||
|
||||
<ResourceDictionary.MergedDictionaries>
|
||||
<ResourceDictionary Source="./DetailsPageResources/Colors/DarkModeResources.xaml" />
|
||||
<ResourceDictionary Source="./SlimPageResources/Colors/DarkModeResources.xaml" />
|
||||
|
||||
<ResourceDictionary>
|
||||
<!--Cursors-->
|
||||
<Cursor x:Key="Cursor.Copy">../Resources/Cursors/Hand_Clipboard_Dark.cur</Cursor>
|
||||
|
||||
<!--Common Styles-->
|
||||
<SolidColorBrush x:Key="Color.AppBackground"
|
||||
Color="#363636" />
|
||||
<SolidColorBrush x:Key="Color.F4SD"
|
||||
Color="#9B9B9B" />
|
||||
<SolidColorBrush x:Key="Color.BlurBorder"
|
||||
Color="#8C8C8C" />
|
||||
|
||||
<SolidColorBrush x:Key="Color.Blue"
|
||||
Color="#009DDD" />
|
||||
<SolidColorBrush x:Key="Color.Green"
|
||||
Color="#75B159" />
|
||||
<SolidColorBrush x:Key="Color.Orange"
|
||||
Color="#FB9D28" />
|
||||
<SolidColorBrush x:Key="Color.Red"
|
||||
Color="#CE3D36" />
|
||||
|
||||
<SolidColorBrush x:Key="HighlightColor.Blue"
|
||||
Color="#009DDD" />
|
||||
<SolidColorBrush x:Key="HighlightColor.Green"
|
||||
Color="#75B159" />
|
||||
<SolidColorBrush x:Key="HighlightColor.Orange"
|
||||
Color="#FB9D28" />
|
||||
<SolidColorBrush x:Key="HighlightColor.Red"
|
||||
Color="#CE3D36" />
|
||||
|
||||
<SolidColorBrush x:Key="Color.SoftContrast"
|
||||
Color="#313131" />
|
||||
|
||||
<SolidColorBrush x:Key="Color.FunctionMarker"
|
||||
Color="#1F92EE" />
|
||||
|
||||
<Color x:Key="Color.LoadingDot.Primary">#1F92EE</Color>
|
||||
<Color x:Key="Color.LoadingDot.Secondary">#DBDBDB</Color>
|
||||
|
||||
<!--Menu Styles-->
|
||||
<SolidColorBrush x:Key="Color.Menu.Icon"
|
||||
Color="#9B9B9B" />
|
||||
<SolidColorBrush x:Key="Color.Menu.Icon.Hover"
|
||||
Color="#0077A8" />
|
||||
<SolidColorBrush x:Key="Background.Menu.Icon.Hover"
|
||||
Color="#272727" />
|
||||
<SolidColorBrush x:Key="BackgroundColor.Menu.Categories"
|
||||
Color="#272727" />
|
||||
<SolidColorBrush x:Key="BackgroundColor.Menu.MainCategory"
|
||||
Color="#1A1A1A" />
|
||||
<SolidColorBrush x:Key="BackgroundColor.Menu.MainCategory.Hover"
|
||||
Color="#121212" />
|
||||
<SolidColorBrush x:Key="BackgroundColor.Menu.SubCategory"
|
||||
Color="#303030" />
|
||||
<SolidColorBrush x:Key="BackgroundColor.Menu.SubCategory.Hover"
|
||||
Color="#414141" />
|
||||
<SolidColorBrush x:Key="FontColor.Menu.Categories"
|
||||
Color="#9B9B9B" />
|
||||
<SolidColorBrush x:Key="FontColor.Menu.Categories.Hover"
|
||||
Color="#009DDD" />
|
||||
<Color x:Key="DropShadowColor.Menu">#9B9B9B</Color>
|
||||
<SolidColorBrush x:Key="BorderColor.Menu.KeyBoardShortcut"
|
||||
Color="#414141" />
|
||||
<Color x:Key="ShadowColor.Menu.KeyBoardShortcut">#8C8C8C</Color>
|
||||
|
||||
<!--Chart Colors-->
|
||||
<SolidColorBrush x:Key="HorizontalLineColor">#414141</SolidColorBrush>
|
||||
|
||||
<!--ScrollBar Colors-->
|
||||
<Color x:Key="ControlLightColor">#303030</Color>
|
||||
<Color x:Key="ControlMediumColor">#303030</Color>
|
||||
<Color x:Key="ControlDarkColor">#303030</Color>
|
||||
<SolidColorBrush x:Key="Scrollbar.Track.Color">#404040</SolidColorBrush>
|
||||
<SolidColorBrush x:Key="TestColor"
|
||||
Color="MediumVioletRed"/>
|
||||
</ResourceDictionary>
|
||||
</ResourceDictionary.MergedDictionaries>
|
||||
|
||||
</ResourceDictionary>
|
||||
@@ -0,0 +1,43 @@
|
||||
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
|
||||
|
||||
<!--DataHistory Styles-->
|
||||
<SolidColorBrush x:Key="FontColor.DetailsPage.DataHistory.ControlBar.Text"
|
||||
Color="#9B9B9B" />
|
||||
<SolidColorBrush x:Key="FontColor.DetailsPage.DataHistory.ControlBar.Action"
|
||||
Color="#1F92EE" />
|
||||
|
||||
<SolidColorBrush x:Key="FontColor.DetailsPage.DataHistory.Date"
|
||||
Color="#6D6D6D" />
|
||||
<SolidColorBrush x:Key="FontColor.DetailsPage.DataHistory.TitleColumn.OverviewTitle"
|
||||
Color="#9B9B9B" />
|
||||
<SolidColorBrush x:Key="FontColor.DetailsPage.DataHistory.TitleColumn.MainTitle"
|
||||
Color="#9B9B9B" />
|
||||
<SolidColorBrush x:Key="FontColor.DetailsPage.DataHistory.TitleColumn.SubTitle"
|
||||
Color="#575757" />
|
||||
<SolidColorBrush x:Key="FontColor.DetailsPage.DataHistory.Value"
|
||||
Color="#9B9B9B" />
|
||||
|
||||
<SolidColorBrush x:Key="BackgroundColor.DetailsPage.DataHistory.TitleColumn"
|
||||
Color="#1A1A1A" />
|
||||
<SolidColorBrush x:Key="HighlightBackgroundColor.DetailsPage.DataHistory.TitleColumn"
|
||||
Color="#121212" />
|
||||
<SolidColorBrush x:Key="BackgroundColor.DetailsPage.DataHistory.ValueColumn"
|
||||
Color="#272727" />
|
||||
<SolidColorBrush x:Key="HighlightBackgroundColor.DetailsPage.DataHistory.ValueColumn"
|
||||
Color="#1B1B1B" />
|
||||
|
||||
<!--TitleSection Styles-->
|
||||
<SolidColorBrush x:Key="FontColor.DetailsPage.TitleSection.Header"
|
||||
Color="#9B9B9B" />
|
||||
|
||||
<!--Widget Styles-->
|
||||
|
||||
<SolidColorBrush x:Key="FontColor.DetailsPage.Widget"
|
||||
Color="#9B9B9B" />
|
||||
<SolidColorBrush x:Key="BackgroundColor.DetailsPage.Widget.Title"
|
||||
Color="#1A1A1A" />
|
||||
<SolidColorBrush x:Key="BackgroundColor.DetailsPage.Widget.Value"
|
||||
Color="#272727" />
|
||||
|
||||
</ResourceDictionary>
|
||||
@@ -0,0 +1,43 @@
|
||||
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
|
||||
|
||||
<!--DataHistory Styles-->
|
||||
<SolidColorBrush x:Key="FontColor.DetailsPage.DataHistory.ControlBar.Text"
|
||||
Color="#3D3C3C" />
|
||||
<SolidColorBrush x:Key="FontColor.DetailsPage.DataHistory.ControlBar.Action"
|
||||
Color="#005FAC" />
|
||||
|
||||
<SolidColorBrush x:Key="FontColor.DetailsPage.DataHistory.Date"
|
||||
Color="#6D6D6D" />
|
||||
<SolidColorBrush x:Key="FontColor.DetailsPage.DataHistory.TitleColumn.OverviewTitle"
|
||||
Color="#3D3C3C" />
|
||||
<SolidColorBrush x:Key="FontColor.DetailsPage.DataHistory.TitleColumn.MainTitle"
|
||||
Color="#3D3C3C" />
|
||||
<SolidColorBrush x:Key="FontColor.DetailsPage.DataHistory.TitleColumn.SubTitle"
|
||||
Color="#7E7E7E" />
|
||||
<SolidColorBrush x:Key="FontColor.DetailsPage.DataHistory.Value"
|
||||
Color="#3D3C3C" />
|
||||
|
||||
<SolidColorBrush x:Key="BackgroundColor.DetailsPage.DataHistory.TitleColumn"
|
||||
Color="#F7FAFA" />
|
||||
<SolidColorBrush x:Key="HighlightBackgroundColor.DetailsPage.DataHistory.TitleColumn"
|
||||
Color="#FAFCFC" />
|
||||
<SolidColorBrush x:Key="BackgroundColor.DetailsPage.DataHistory.ValueColumn"
|
||||
Color="#F2F2F2" />
|
||||
<SolidColorBrush x:Key="HighlightBackgroundColor.DetailsPage.DataHistory.ValueColumn"
|
||||
Color="#F6F6F6" />
|
||||
|
||||
<!--TitleSection Styles-->
|
||||
<SolidColorBrush x:Key="FontColor.DetailsPage.TitleSection.Header"
|
||||
Color="#3D3C3C" />
|
||||
|
||||
<!--Widget Styles-->
|
||||
|
||||
<SolidColorBrush x:Key="FontColor.DetailsPage.Widget"
|
||||
Color="#3D3C3C" />
|
||||
<SolidColorBrush x:Key="BackgroundColor.DetailsPage.Widget.Title"
|
||||
Color="#F7FAFA" />
|
||||
<SolidColorBrush x:Key="BackgroundColor.DetailsPage.Widget.Value"
|
||||
Color="#F2F2F2" />
|
||||
|
||||
</ResourceDictionary>
|
||||
@@ -0,0 +1,50 @@
|
||||
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
|
||||
<Style x:Key="Customizable.Editable.TextBox"
|
||||
TargetType="TextBox">
|
||||
<Setter Property="Padding"
|
||||
Value="11" />
|
||||
<Setter Property="Margin"
|
||||
Value="0 5" />
|
||||
<Setter Property="BorderThickness"
|
||||
Value="0" />
|
||||
<Setter Property="BorderBrush"
|
||||
Value="Transparent" />
|
||||
<Setter Property="Foreground"
|
||||
Value="{DynamicResource FontColor.Menu.Categories}" />
|
||||
<Setter Property="IsReadOnly"
|
||||
Value="True" />
|
||||
|
||||
<Style.Resources>
|
||||
<Style TargetType="Border">
|
||||
<Setter Property="CornerRadius"
|
||||
Value="7.5" />
|
||||
</Style>
|
||||
</Style.Resources>
|
||||
</Style>
|
||||
|
||||
<Style x:Key="Customizable.Editable.TextBox.Background"
|
||||
TargetType="TextBox"
|
||||
BasedOn="{StaticResource Customizable.Editable.TextBox}">
|
||||
<Setter Property="Background"
|
||||
Value="{DynamicResource BackgroundColor.DetailsPage.Widget.Title}" />
|
||||
</Style>
|
||||
|
||||
<Style x:Key="Customizable.Editable.TextBox.EditOnly"
|
||||
TargetType="TextBox"
|
||||
BasedOn="{StaticResource Customizable.Editable.TextBox.Background}">
|
||||
<Setter Property="BorderBrush"
|
||||
Value="{DynamicResource BackgroundColor.Menu.SubCategory.Hover}" />
|
||||
<Setter Property="BorderThickness"
|
||||
Value="1" />
|
||||
<Setter Property="Padding"
|
||||
Value="10" />
|
||||
<Setter Property="IsReadOnly"
|
||||
Value="False" />
|
||||
<Setter Property="AcceptsTab"
|
||||
Value="True" />
|
||||
<Setter Property="AcceptsReturn"
|
||||
Value="True" />
|
||||
</Style>
|
||||
|
||||
</ResourceDictionary>
|
||||
@@ -0,0 +1,339 @@
|
||||
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:ico="clr-namespace:FasdDesktopUi.Basics.UserControls.AdaptableIcon;assembly=F4SD-AdaptableIcon"
|
||||
xmlns:ctrl="clr-namespace:FasdDesktopUi.Basics.UserControls"
|
||||
>
|
||||
|
||||
<SolidColorBrush x:Key="Transparent.Custom"
|
||||
Color="#01010101" />
|
||||
|
||||
<ctrl:StatusTreshholdTooltip x:Key="Tooltip.Treshold" />
|
||||
|
||||
<Style x:Key="DetailsPage.DataHistory.ControlBar.Base">
|
||||
<Setter Property="Control.FontFamily"
|
||||
Value="Calibri" />
|
||||
<Setter Property="Control.FontWeight"
|
||||
Value="Regular" />
|
||||
<Setter Property="TextBlock.LineHeight"
|
||||
Value="13" />
|
||||
<Setter Property="TextBlock.LineStackingStrategy"
|
||||
Value="BlockLineHeight" />
|
||||
</Style>
|
||||
|
||||
<Style x:Key="DetailsPage.DataHistory.ControlBar.Text"
|
||||
BasedOn="{StaticResource DetailsPage.DataHistory.ControlBar.Base}">
|
||||
<Setter Property="Control.Foreground"
|
||||
Value="{DynamicResource FontColor.DetailsPage.DataHistory.ControlBar.Text}" />
|
||||
</Style>
|
||||
|
||||
<Style x:Key="DetailsPage.DataHistory.ControlBar.Action"
|
||||
BasedOn="{StaticResource DetailsPage.DataHistory.ControlBar.Base}">
|
||||
<Setter Property="Control.Foreground"
|
||||
Value="{DynamicResource FontColor.DetailsPage.DataHistory.ControlBar.Action}" />
|
||||
<Setter Property="Control.Cursor"
|
||||
Value="Hand" />
|
||||
<Style.Triggers>
|
||||
<Trigger Property="TextBlock.IsMouseOver"
|
||||
Value="True">
|
||||
<Setter Property="TextBlock.TextDecorations"
|
||||
Value="Underline" />
|
||||
</Trigger>
|
||||
</Style.Triggers>
|
||||
</Style>
|
||||
|
||||
<Style x:Key="DetailsPage.DataHistory.ColumnHeader">
|
||||
<Setter Property="Control.VerticalAlignment"
|
||||
Value="Center" />
|
||||
<Setter Property="Control.HorizontalAlignment"
|
||||
Value="Center" />
|
||||
<Setter Property="Control.Padding"
|
||||
Value="10, 1.5" />
|
||||
<Setter Property="Control.FontFamily"
|
||||
Value="Calibri" />
|
||||
<Setter Property="Control.FontWeight"
|
||||
Value="Regular" />
|
||||
<Setter Property="Control.FontSize"
|
||||
Value="13" />
|
||||
<Setter Property="TextBlock.LineHeight"
|
||||
Value="15" />
|
||||
<Setter Property="TextBlock.LineStackingStrategy"
|
||||
Value="BlockLineHeight" />
|
||||
<Setter Property="Control.Foreground"
|
||||
Value="{DynamicResource FontColor.DetailsPage.DataHistory.Date}" />
|
||||
<Setter Property="Control.IsHitTestVisible"
|
||||
Value="False" />
|
||||
</Style>
|
||||
|
||||
<Style x:Key="DetailsPage.DataHistory.TitleColumn.OverviewTitle">
|
||||
<Setter Property="Control.VerticalAlignment"
|
||||
Value="Center" />
|
||||
<Setter Property="ItemsControl.HorizontalAlignment"
|
||||
Value="Right" />
|
||||
<Setter Property="Control.FontFamily"
|
||||
Value="Calibri" />
|
||||
<Setter Property="Control.FontWeight"
|
||||
Value="Bold" />
|
||||
<Setter Property="Control.FontSize"
|
||||
Value="14" />
|
||||
<Setter Property="TextBlock.LineHeight"
|
||||
Value="17" />
|
||||
<Setter Property="TextBlock.LineStackingStrategy"
|
||||
Value="BlockLineHeight" />
|
||||
<Setter Property="TextBlock.TextAlignment"
|
||||
Value="Right" />
|
||||
<Setter Property="Control.Foreground"
|
||||
Value="{DynamicResource FontColor.DetailsPage.DataHistory.TitleColumn.OverviewTitle}" />
|
||||
<Setter Property="Control.IsHitTestVisible"
|
||||
Value="False" />
|
||||
</Style>
|
||||
|
||||
<Style x:Key="DetailsPage.DataHistory.TitleColumn.Title">
|
||||
<Setter Property="Control.VerticalAlignment"
|
||||
Value="Center" />
|
||||
<Setter Property="Control.FontFamily"
|
||||
Value="Calibri" />
|
||||
<Setter Property="Control.FontWeight"
|
||||
Value="Regular" />
|
||||
<Setter Property="Control.FontSize"
|
||||
Value="14" />
|
||||
<Setter Property="TextBlock.LineHeight"
|
||||
Value="17" />
|
||||
<Setter Property="TextBlock.LineStackingStrategy"
|
||||
Value="BlockLineHeight" />
|
||||
<Setter Property="TextBlock.TextAlignment"
|
||||
Value="Right" />
|
||||
<Setter Property="Control.Cursor"
|
||||
Value="Hand" />
|
||||
<Style.Triggers>
|
||||
<Trigger Property="Control.IsMouseOver"
|
||||
Value="True">
|
||||
<Setter Property="Control.Foreground"
|
||||
Value="{DynamicResource Color.FunctionMarker}" />
|
||||
</Trigger>
|
||||
</Style.Triggers>
|
||||
</Style>
|
||||
|
||||
<Style x:Key="DetailsPage.DataHistory.TitleColumn.MainTitle"
|
||||
BasedOn="{StaticResource DetailsPage.DataHistory.TitleColumn.Title}">
|
||||
<Setter Property="Control.Foreground"
|
||||
Value="{DynamicResource FontColor.DetailsPage.DataHistory.TitleColumn.MainTitle}" />
|
||||
</Style>
|
||||
|
||||
<Style x:Key="DetailsPage.DataHistory.TitleColumn.SubTitle"
|
||||
BasedOn="{StaticResource DetailsPage.DataHistory.TitleColumn.Title}">
|
||||
<Setter Property="Control.Foreground"
|
||||
Value="{DynamicResource FontColor.DetailsPage.DataHistory.TitleColumn.SubTitle}" />
|
||||
</Style>
|
||||
|
||||
<Style x:Key="DetailsPage.DataHistory.Icon.Lock"
|
||||
TargetType="ico:AdaptableIcon">
|
||||
<Setter Property="SelectedInternIcon"
|
||||
Value="lock_open" />
|
||||
|
||||
<Setter Property="PrimaryIconColor"
|
||||
Value="{DynamicResource Color.SoftContrast}" />
|
||||
<Setter Property="BorderPadding"
|
||||
Value="5.5" />
|
||||
<Setter Property="IconHeight"
|
||||
Value="60" />
|
||||
<Setter Property="IconWidth"
|
||||
Value="20" />
|
||||
<Setter Property="Cursor"
|
||||
Value="Hand" />
|
||||
<Style.Triggers>
|
||||
|
||||
<MultiDataTrigger>
|
||||
<MultiDataTrigger.Conditions>
|
||||
<Condition Binding="{Binding ElementName=DataHistory, Path=IsVerticalExpandLocked}"
|
||||
Value="False" />
|
||||
<Condition Binding="{Binding RelativeSource={RelativeSource Self}, Path=IsMouseOver}"
|
||||
Value="False" />
|
||||
</MultiDataTrigger.Conditions>
|
||||
<Setter Property="SelectedInternIcon"
|
||||
Value="lock_open" />
|
||||
<Setter Property="PrimaryIconColor"
|
||||
Value="{DynamicResource Color.SoftContrast}" />
|
||||
</MultiDataTrigger>
|
||||
|
||||
<MultiDataTrigger>
|
||||
<MultiDataTrigger.Conditions>
|
||||
<Condition Binding="{Binding ElementName=DataHistory, Path=IsVerticalExpandLocked}"
|
||||
Value="False" />
|
||||
<Condition Binding="{Binding RelativeSource={RelativeSource Self}, Path=IsMouseOver}"
|
||||
Value="True" />
|
||||
</MultiDataTrigger.Conditions>
|
||||
|
||||
<Setter Property="SelectedInternIcon"
|
||||
Value="lock_openHover" />
|
||||
<Setter Property="PrimaryIconColor"
|
||||
Value="{DynamicResource Color.Menu.Icon.Hover}" />
|
||||
</MultiDataTrigger>
|
||||
|
||||
<MultiDataTrigger>
|
||||
<MultiDataTrigger.Conditions>
|
||||
<Condition Binding="{Binding ElementName=DataHistory, Path=IsVerticalExpandLocked}"
|
||||
Value="True" />
|
||||
<Condition Binding="{Binding RelativeSource={RelativeSource Self}, Path=IsMouseOver}"
|
||||
Value="False" />
|
||||
</MultiDataTrigger.Conditions>
|
||||
|
||||
<Setter Property="SelectedInternIcon"
|
||||
Value="lock_closed" />
|
||||
<Setter Property="PrimaryIconColor"
|
||||
Value="{DynamicResource Color.Menu.Icon}" />
|
||||
</MultiDataTrigger>
|
||||
|
||||
<MultiDataTrigger>
|
||||
<MultiDataTrigger.Conditions>
|
||||
<Condition Binding="{Binding ElementName=DataHistory, Path=IsVerticalExpandLocked}"
|
||||
Value="True" />
|
||||
<Condition Binding="{Binding RelativeSource={RelativeSource Self}, Path=IsMouseOver}"
|
||||
Value="True" />
|
||||
</MultiDataTrigger.Conditions>
|
||||
|
||||
<Setter Property="SelectedInternIcon"
|
||||
Value="lock_closedHover" />
|
||||
<Setter Property="PrimaryIconColor"
|
||||
Value="{DynamicResource Color.Menu.Icon.Hover}" />
|
||||
<Setter Property="BorderPadding"
|
||||
Value="3" />
|
||||
</MultiDataTrigger>
|
||||
|
||||
</Style.Triggers>
|
||||
</Style>
|
||||
|
||||
<Style x:Key="DetailsPage.DataHistory.Icon.Chevron"
|
||||
TargetType="ico:AdaptableIcon">
|
||||
<Setter Property="Cursor"
|
||||
Value="Hand" />
|
||||
<Setter Property="PrimaryIconColor"
|
||||
Value="{DynamicResource Color.SoftContrast}" />
|
||||
<Setter Property="IconHeight"
|
||||
Value="60" />
|
||||
<Setter Property="IconWidth"
|
||||
Value="20" />
|
||||
<Setter Property="BorderPadding"
|
||||
Value="6.5" />
|
||||
|
||||
<Style.Triggers>
|
||||
<Trigger Property="IsMouseOver"
|
||||
Value="True">
|
||||
<Setter Property="PrimaryIconColor"
|
||||
Value="{DynamicResource Color.FunctionMarker}" />
|
||||
<Setter Property="BorderPadding"
|
||||
Value="6" />
|
||||
</Trigger>
|
||||
|
||||
<DataTrigger Binding="{Binding ElementName=DataHistory, Path=IsHorizontalCollapsed}"
|
||||
Value="True">
|
||||
<Setter Property="SelectedInternIcon"
|
||||
Value="misc_chevron_right" />
|
||||
</DataTrigger>
|
||||
|
||||
<DataTrigger Binding="{Binding ElementName=DataHistory, Path=IsHorizontalCollapsed}"
|
||||
Value="False">
|
||||
<Setter Property="SelectedInternIcon"
|
||||
Value="misc_chevron_left" />
|
||||
</DataTrigger>
|
||||
</Style.Triggers>
|
||||
</Style>
|
||||
|
||||
<Style x:Key="DetailsPage.DataHistory.Value">
|
||||
<Setter Property="Control.VerticalAlignment"
|
||||
Value="Center" />
|
||||
<Setter Property="Control.FontFamily"
|
||||
Value="Calibri" />
|
||||
<Setter Property="Control.FontWeight"
|
||||
Value="Bold" />
|
||||
<Setter Property="Control.Foreground"
|
||||
Value="White" />
|
||||
<Setter Property="Control.FontSize"
|
||||
Value="14" />
|
||||
<Setter Property="TextBlock.LineHeight"
|
||||
Value="17" />
|
||||
<Setter Property="TextBlock.LineStackingStrategy"
|
||||
Value="BlockLineHeight" />
|
||||
<Setter Property="TextBlock.TextAlignment"
|
||||
Value="Center" />
|
||||
<Setter Property="TextBlock.TextTrimming"
|
||||
Value="CharacterEllipsis" />
|
||||
<Style.Triggers>
|
||||
<DataTrigger Binding="{Binding RelativeSource={RelativeSource AncestorLevel=1, AncestorType=Border}, Path=Background}"
|
||||
Value="{StaticResource Transparent.Custom}">
|
||||
|
||||
<Setter Property="Control.FontWeight"
|
||||
Value="Regular" />
|
||||
<Setter Property="TextBlock.Foreground"
|
||||
Value="{DynamicResource FontColor.DetailsPage.DataHistory.Value}" />
|
||||
|
||||
</DataTrigger>
|
||||
</Style.Triggers>
|
||||
|
||||
</Style>
|
||||
|
||||
<Style x:Key="DetailsPage.DataHistory.Value.Aggregate">
|
||||
<Setter Property="Control.VerticalAlignment"
|
||||
Value="Center" />
|
||||
<Setter Property="ItemsControl.Margin"
|
||||
Value="2,0,0,0" />
|
||||
<Setter Property="Control.FontFamily"
|
||||
Value="Calibri" />
|
||||
<Setter Property="Control.FontWeight"
|
||||
Value="Bold" />
|
||||
<Setter Property="Control.FontSize"
|
||||
Value="16" />
|
||||
<Setter Property="TextBlock.LineHeight"
|
||||
Value="17" />
|
||||
<Setter Property="TextBlock.LineStackingStrategy"
|
||||
Value="BlockLineHeight" />
|
||||
<Setter Property="TextBlock.TextAlignment"
|
||||
Value="Center" />
|
||||
</Style>
|
||||
|
||||
<Style x:Key="DetailsPage.DataHistory.ValueBorder"
|
||||
TargetType="Border">
|
||||
<Setter Property="Background"
|
||||
Value="{DynamicResource Transparent.Custom}" />
|
||||
<Setter Property="CornerRadius"
|
||||
Value="5" />
|
||||
<Setter Property="Height"
|
||||
Value="24" />
|
||||
<Setter Property="Margin"
|
||||
Value="-5, 0, 0, 0" />
|
||||
<Setter Property="Padding"
|
||||
Value="5, 1.5, 5, 1.5" />
|
||||
<Style.Resources>
|
||||
<Style TargetType="TextBlock"
|
||||
BasedOn="{StaticResource DetailsPage.DataHistory.Value}" />
|
||||
</Style.Resources>
|
||||
</Style>
|
||||
|
||||
<Style x:Key="DetailsPage.DataHistory.ValueBorder.Blue"
|
||||
BasedOn="{StaticResource DetailsPage.DataHistory.ValueBorder}"
|
||||
TargetType="Border">
|
||||
<Setter Property="Background"
|
||||
Value="{DynamicResource HighlightColor.Blue}" />
|
||||
</Style>
|
||||
|
||||
<Style x:Key="DetailsPage.DataHistory.ValueBorder.Green"
|
||||
BasedOn="{StaticResource DetailsPage.DataHistory.ValueBorder}"
|
||||
TargetType="Border">
|
||||
<Setter Property="Background"
|
||||
Value="{DynamicResource HighlightColor.Green}" />
|
||||
</Style>
|
||||
|
||||
<Style x:Key="DetailsPage.DataHistory.ValueBorder.Orange"
|
||||
BasedOn="{StaticResource DetailsPage.DataHistory.ValueBorder}"
|
||||
TargetType="Border">
|
||||
<Setter Property="Background"
|
||||
Value="{DynamicResource HighlightColor.Orange}" />
|
||||
</Style>
|
||||
|
||||
<Style x:Key="DetailsPage.DataHistory.ValueBorder.Red"
|
||||
BasedOn="{StaticResource DetailsPage.DataHistory.ValueBorder}"
|
||||
TargetType="Border">
|
||||
<Setter Property="Background"
|
||||
Value="{DynamicResource HighlightColor.Red}" />
|
||||
</Style>
|
||||
|
||||
</ResourceDictionary>
|
||||
@@ -0,0 +1,78 @@
|
||||
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:ico="clr-namespace:FasdDesktopUi.Basics.UserControls.AdaptableIcon;assembly=F4SD-AdaptableIcon">
|
||||
|
||||
<Style x:Key="DetailsPage.TitleSection.Header.Base">
|
||||
<Setter Property="Control.VerticalAlignment"
|
||||
Value="Center" />
|
||||
<Setter Property="Control.FontFamily"
|
||||
Value="Calibri" />
|
||||
<Setter Property="Control.FontWeight"
|
||||
Value="Bold" />
|
||||
<Setter Property="Control.FontSize"
|
||||
Value="28" />
|
||||
<Setter Property="Control.Margin"
|
||||
Value="0 0 10 0" />
|
||||
<Setter Property="Control.Foreground"
|
||||
Value="{DynamicResource FontColor.DetailsPage.TitleSection.Header}" />
|
||||
<Setter Property="Control.Background"
|
||||
Value="Transparent" />
|
||||
<Setter Property="Control.BorderThickness"
|
||||
Value="0" />
|
||||
<Setter Property="TextBox.IsReadOnly"
|
||||
Value="True" />
|
||||
<Setter Property="Control.Opacity"
|
||||
Value="0.7" />
|
||||
</Style>
|
||||
|
||||
<Style x:Key="DetailsPage.TitleSection.Header"
|
||||
BasedOn="{StaticResource DetailsPage.TitleSection.Header.Base}">
|
||||
<Setter Property="Control.Opacity"
|
||||
Value="1" />
|
||||
<Style.Triggers>
|
||||
<DataTrigger Binding="{Binding RelativeSource={RelativeSource AncestorLevel=1, AncestorType=Border}, Path=IsMouseOver}"
|
||||
Value="True">
|
||||
<DataTrigger.Setters>
|
||||
<Setter Property="Control.Foreground"
|
||||
Value="{DynamicResource Color.FunctionMarker}" />
|
||||
</DataTrigger.Setters>
|
||||
</DataTrigger>
|
||||
</Style.Triggers>
|
||||
</Style>
|
||||
|
||||
<Style x:Key="DetailsPage.TitleSection.Icon"
|
||||
TargetType="ico:AdaptableIcon">
|
||||
<Setter Property="Margin"
|
||||
Value="5, 0, 5, 0" />
|
||||
<Setter Property="IconBackgroundColor"
|
||||
Value="Transparent" />
|
||||
<Setter Property="HorizontalAlignment"
|
||||
Value="Center" />
|
||||
<Setter Property="IconHeight"
|
||||
Value="18" />
|
||||
<Setter Property="BorderPadding"
|
||||
Value="0" />
|
||||
<Setter Property="PrimaryIconColor"
|
||||
Value="{DynamicResource Color.Menu.Icon}" />
|
||||
</Style>
|
||||
|
||||
<Style x:Key="DetailsPage.TitleSection.Border.NotSelected"
|
||||
TargetType="Border">
|
||||
<Setter Property="CornerRadius"
|
||||
Value="10" />
|
||||
<Setter Property="Height"
|
||||
Value="42" />
|
||||
<Setter Property="Cursor"
|
||||
Value="Hand" />
|
||||
<Setter Property="Background"
|
||||
Value="{DynamicResource BackgroundColor.DetailsPage.Widget.Value}" />
|
||||
<Style.Triggers>
|
||||
<DataTrigger Binding="{Binding RelativeSource={RelativeSource Self}, Path=IsMouseOver}"
|
||||
Value="True">
|
||||
<Setter Property="Background"
|
||||
Value="{DynamicResource BackgroundColor.Menu.MainCategory}" />
|
||||
</DataTrigger>
|
||||
</Style.Triggers>
|
||||
</Style>
|
||||
|
||||
</ResourceDictionary>
|
||||
@@ -0,0 +1,71 @@
|
||||
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:sys="clr-namespace:System;assembly=mscorlib">
|
||||
|
||||
<sys:Double x:Key="DetailsPage.Widget.MinHeight">160</sys:Double>
|
||||
<sys:Double x:Key="DetailsPage.Widget.MaxHeight">200</sys:Double>
|
||||
|
||||
<sys:Double x:Key="DetailsPage.Widget.Title.MinWidth">160</sys:Double>
|
||||
<sys:Double x:Key="DetailsPage.Widget.Title.MaxWidth">200</sys:Double>
|
||||
|
||||
<sys:Double x:Key="DetailsPage.Widget.Value.MinWidth">263</sys:Double>
|
||||
<sys:Double x:Key="DetailsPage.Widget.Value.MaxWidth">400</sys:Double>
|
||||
|
||||
<Style x:Key="DetailsPage.Widget.Base">
|
||||
|
||||
<Setter Property="Control.Margin"
|
||||
Value="10 0" />
|
||||
<Setter Property="Control.VerticalAlignment"
|
||||
Value="Center" />
|
||||
<Setter Property="Control.FontFamily"
|
||||
Value="Calibri" />
|
||||
<Setter Property="Control.FontSize"
|
||||
Value="14" />
|
||||
<Setter Property="TextBlock.LineStackingStrategy"
|
||||
Value="BlockLineHeight" />
|
||||
<Setter Property="TextBlock.TextWrapping"
|
||||
Value="Wrap" />
|
||||
<Setter Property="Control.Foreground"
|
||||
Value="{DynamicResource FontColor.DetailsPage.Widget}" />
|
||||
<Setter Property="Control.Background"
|
||||
Value="Transparent" />
|
||||
<Setter Property="Control.BorderThickness"
|
||||
Value="0" />
|
||||
<Setter Property="TextBox.IsReadOnly"
|
||||
Value="True" />
|
||||
</Style>
|
||||
|
||||
<Style x:Key="DetailsPage.Widget.Title"
|
||||
BasedOn="{StaticResource DetailsPage.Widget.Base}">
|
||||
<Setter Property="Control.FontWeight"
|
||||
Value="Light" />
|
||||
<Setter Property="Control.Margin"
|
||||
Value="0 0 10 0" />
|
||||
</Style>
|
||||
|
||||
<Style x:Key="DetailsPage.Widget.Value"
|
||||
BasedOn="{StaticResource DetailsPage.Widget.Base}">
|
||||
<Setter Property="Control.Margin"
|
||||
Value="10 0 5 0" />
|
||||
<Setter Property="Control.FontWeight"
|
||||
Value="Bold" />
|
||||
<Setter Property="Control.Cursor"
|
||||
Value="{DynamicResource Cursor.Copy}" />
|
||||
|
||||
<Style.Triggers>
|
||||
<EventTrigger RoutedEvent="Control.MouseLeftButtonUp">
|
||||
<EventTrigger.Actions>
|
||||
<BeginStoryboard>
|
||||
<Storyboard>
|
||||
<DoubleAnimation From="0.4"
|
||||
Duration="0:0:1"
|
||||
FillBehavior="Stop"
|
||||
Storyboard.TargetProperty="Opacity" />
|
||||
</Storyboard>
|
||||
</BeginStoryboard>
|
||||
</EventTrigger.Actions>
|
||||
</EventTrigger>
|
||||
</Style.Triggers>
|
||||
</Style>
|
||||
|
||||
</ResourceDictionary>
|
||||
87
FasdDesktopUi/ResourceDictionaries/LightModeResources.xaml
Normal file
87
FasdDesktopUi/ResourceDictionaries/LightModeResources.xaml
Normal file
@@ -0,0 +1,87 @@
|
||||
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
|
||||
|
||||
<ResourceDictionary.MergedDictionaries>
|
||||
<ResourceDictionary Source="./DetailsPageResources/Colors/LightModeResources.xaml" />
|
||||
<ResourceDictionary Source="./SlimPageResources/Colors/LightModeResources.xaml" />
|
||||
|
||||
<ResourceDictionary>
|
||||
<!--Cursors-->
|
||||
<Cursor x:Key="Cursor.Copy">../Resources/Cursors/Hand_Clipboard_Light.cur</Cursor>
|
||||
|
||||
<!--Common Styles-->
|
||||
|
||||
<SolidColorBrush x:Key="Color.AppBackground"
|
||||
Color="#E9E9E9" />
|
||||
<SolidColorBrush x:Key="Color.F4SD"
|
||||
Color="#1c4A99" />
|
||||
<SolidColorBrush x:Key="Color.BlurBorder"
|
||||
Color="#8C8C8C" />
|
||||
|
||||
<SolidColorBrush x:Key="Color.Blue"
|
||||
Color="#009DDD" />
|
||||
<SolidColorBrush x:Key="Color.Green"
|
||||
Color="#75B159" />
|
||||
<SolidColorBrush x:Key="Color.Orange"
|
||||
Color="#FB9D28" />
|
||||
<SolidColorBrush x:Key="Color.Red"
|
||||
Color="#CE3D36" />
|
||||
|
||||
<SolidColorBrush x:Key="HighlightColor.Blue"
|
||||
Color="#009DDD" />
|
||||
<SolidColorBrush x:Key="HighlightColor.Green"
|
||||
Color="#75B159" />
|
||||
<SolidColorBrush x:Key="HighlightColor.Orange"
|
||||
Color="#FB9D28" />
|
||||
<SolidColorBrush x:Key="HighlightColor.Red"
|
||||
Color="#CE3D36" />
|
||||
|
||||
<SolidColorBrush x:Key="Color.SoftContrast"
|
||||
Color="#DBDBDB" />
|
||||
|
||||
<SolidColorBrush x:Key="Color.FunctionMarker"
|
||||
Color="#1F92EE" />
|
||||
|
||||
<Color x:Key="Color.LoadingDot.Primary">#1F92EE</Color>
|
||||
<Color x:Key="Color.LoadingDot.Secondary">#DBDBDB</Color>
|
||||
|
||||
<!--Menu Styles-->
|
||||
<SolidColorBrush x:Key="Color.Menu.Icon"
|
||||
Color="#3D3C3C" />
|
||||
<SolidColorBrush x:Key="Color.Menu.Icon.Hover"
|
||||
Color="#1F92EE" />
|
||||
<SolidColorBrush x:Key="Background.Menu.Icon.Hover"
|
||||
Color="#F2F2F2" />
|
||||
<SolidColorBrush x:Key="BackgroundColor.Menu.Categories"
|
||||
Color="#F2F2F2" />
|
||||
<SolidColorBrush x:Key="BackgroundColor.Menu.MainCategory"
|
||||
Color="#F7FAFA" />
|
||||
<SolidColorBrush x:Key="BackgroundColor.Menu.MainCategory.Hover"
|
||||
Color="#FAFCFC" />
|
||||
<SolidColorBrush x:Key="BackgroundColor.Menu.SubCategory"
|
||||
Color="#EBEBEB" />
|
||||
<SolidColorBrush x:Key="BackgroundColor.Menu.SubCategory.Hover"
|
||||
Color="#E2E2E2" />
|
||||
<SolidColorBrush x:Key="FontColor.Menu.Categories"
|
||||
Color="#3D3C3C" />
|
||||
<SolidColorBrush x:Key="FontColor.Menu.Categories.Hover"
|
||||
Color="#005FAC" />
|
||||
<Color x:Key="DropShadowColor.Menu">#3D3C3C</Color>
|
||||
<SolidColorBrush x:Key="BorderColor.Menu.KeyBoardShortcut"
|
||||
Color="#DBDBDB" />
|
||||
<Color x:Key="ShadowColor.Menu.KeyBoardShortcut">#8C8C8C</Color>
|
||||
|
||||
<!--Chart Colors-->
|
||||
<SolidColorBrush x:Key="HorizontalLineColor">#707070</SolidColorBrush>
|
||||
|
||||
<!--ScrollBar Colors-->
|
||||
<Color x:Key="ControlLightColor">#DBDBDB</Color>
|
||||
<Color x:Key="ControlMediumColor">#DBDBDB</Color>
|
||||
<Color x:Key="ControlDarkColor">#DBDBDB</Color>
|
||||
<SolidColorBrush x:Key="Scrollbar.Track.Color">#EBEBEB</SolidColorBrush>
|
||||
<SolidColorBrush x:Key="TestColor"
|
||||
Color="DarkOrange" />
|
||||
</ResourceDictionary>
|
||||
</ResourceDictionary.MergedDictionaries>
|
||||
|
||||
</ResourceDictionary>
|
||||
90
FasdDesktopUi/ResourceDictionaries/RadioButtonResources.xaml
Normal file
90
FasdDesktopUi/ResourceDictionaries/RadioButtonResources.xaml
Normal file
@@ -0,0 +1,90 @@
|
||||
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
|
||||
|
||||
<Style x:Key="FocusVisual">
|
||||
<Setter Property="Control.Template">
|
||||
<Setter.Value>
|
||||
<ControlTemplate>
|
||||
<Rectangle Margin="2" StrokeDashArray="1 2" Stroke="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}" SnapsToDevicePixels="true" StrokeThickness="1"/>
|
||||
</ControlTemplate>
|
||||
</Setter.Value>
|
||||
</Setter>
|
||||
</Style>
|
||||
<Style x:Key="OptionMarkFocusVisual">
|
||||
<Setter Property="Control.Template">
|
||||
<Setter.Value>
|
||||
<ControlTemplate>
|
||||
<Rectangle Margin="14,0,0,0" StrokeDashArray="1 2" Stroke="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}" SnapsToDevicePixels="true" StrokeThickness="1"/>
|
||||
</ControlTemplate>
|
||||
</Setter.Value>
|
||||
</Setter>
|
||||
</Style>
|
||||
<SolidColorBrush x:Key="RadioButton.Static.Background" Color="#FFFFFFFF"/>
|
||||
<SolidColorBrush x:Key="RadioButton.Static.Border" Color="#FF707070"/>
|
||||
<SolidColorBrush x:Key="RadioButton.Static.Glyph" Color="#FF212121"/>
|
||||
<SolidColorBrush x:Key="RadioButton.MouseOver.Background" Color="#FFF3F9FF"/>
|
||||
<SolidColorBrush x:Key="RadioButton.MouseOver.Border" Color="#FF5593FF"/>
|
||||
<SolidColorBrush x:Key="RadioButton.MouseOver.Glyph" Color="#FF212121"/>
|
||||
<SolidColorBrush x:Key="RadioButton.Pressed.Background" Color="#FFD9ECFF"/>
|
||||
<SolidColorBrush x:Key="RadioButton.Pressed.Border" Color="#FF3C77DD"/>
|
||||
<SolidColorBrush x:Key="RadioButton.Pressed.Glyph" Color="#FF212121"/>
|
||||
<SolidColorBrush x:Key="RadioButton.Disabled.Background" Color="#FFE6E6E6"/>
|
||||
<SolidColorBrush x:Key="RadioButton.Disabled.Border" Color="#FFBCBCBC"/>
|
||||
<SolidColorBrush x:Key="RadioButton.Disabled.Glyph" Color="#FF707070"/>
|
||||
|
||||
<Style x:Key="RadioButtonStyle" TargetType="{x:Type RadioButton}">
|
||||
<Setter Property="Width" Value="15" />
|
||||
<Setter Property="Height" Value="15" />
|
||||
<Setter Property="FocusVisualStyle" Value="{StaticResource FocusVisual}"/>
|
||||
<Setter Property="Background" Value="{StaticResource RadioButton.Static.Background}"/>
|
||||
<Setter Property="BorderBrush" Value="{StaticResource RadioButton.Static.Border}"/>
|
||||
<Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}"/>
|
||||
<Setter Property="BorderThickness" Value="1"/>
|
||||
<Setter Property="Template">
|
||||
<Setter.Value>
|
||||
<ControlTemplate TargetType="{x:Type RadioButton}">
|
||||
<Grid x:Name="templateRoot" Background="Transparent" SnapsToDevicePixels="True">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="Auto"/>
|
||||
<ColumnDefinition Width="*"/>
|
||||
</Grid.ColumnDefinitions>
|
||||
<Border x:Name="radioButtonBorder" Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" CornerRadius="3" Height="15" Width="15" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" Margin="0,0,0,0" VerticalAlignment="{TemplateBinding VerticalContentAlignment}">
|
||||
<Grid x:Name="markGrid" Margin="2">
|
||||
<Ellipse x:Name="optionMark" Fill="{StaticResource RadioButton.Static.Glyph}" MinWidth="6" MinHeight="6" Opacity="0"/>
|
||||
</Grid>
|
||||
</Border>
|
||||
<ContentPresenter x:Name="contentPresenter" Grid.Column="1" Focusable="False" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" Margin="{TemplateBinding Padding}" RecognizesAccessKey="True" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}"/>
|
||||
</Grid>
|
||||
<ControlTemplate.Triggers>
|
||||
<Trigger Property="HasContent" Value="true">
|
||||
<Setter Property="FocusVisualStyle" Value="{StaticResource OptionMarkFocusVisual}"/>
|
||||
<Setter Property="Padding" Value="4,-1,0,0"/>
|
||||
</Trigger>
|
||||
<Trigger Property="IsMouseOver" Value="true">
|
||||
<Setter Property="Background" TargetName="radioButtonBorder" Value="{StaticResource RadioButton.MouseOver.Background}"/>
|
||||
<Setter Property="BorderBrush" TargetName="radioButtonBorder" Value="{StaticResource RadioButton.MouseOver.Border}"/>
|
||||
<Setter Property="Fill" TargetName="optionMark" Value="{StaticResource RadioButton.MouseOver.Glyph}"/>
|
||||
</Trigger>
|
||||
<Trigger Property="IsEnabled" Value="false">
|
||||
<Setter Property="Background" TargetName="radioButtonBorder" Value="{StaticResource RadioButton.Disabled.Background}"/>
|
||||
<Setter Property="BorderBrush" TargetName="radioButtonBorder" Value="{StaticResource RadioButton.Disabled.Border}"/>
|
||||
<Setter Property="Fill" TargetName="optionMark" Value="{StaticResource RadioButton.Disabled.Glyph}"/>
|
||||
</Trigger>
|
||||
<Trigger Property="IsPressed" Value="true">
|
||||
<Setter Property="Background" TargetName="radioButtonBorder" Value="{StaticResource RadioButton.Pressed.Background}"/>
|
||||
<Setter Property="BorderBrush" TargetName="radioButtonBorder" Value="{StaticResource RadioButton.Pressed.Border}"/>
|
||||
<Setter Property="Fill" TargetName="optionMark" Value="{StaticResource RadioButton.Pressed.Glyph}"/>
|
||||
</Trigger>
|
||||
<Trigger Property="IsChecked" Value="true">
|
||||
<Setter Property="Opacity" TargetName="optionMark" Value="1"/>
|
||||
</Trigger>
|
||||
<Trigger Property="IsChecked" Value="{x:Null}">
|
||||
<Setter Property="Opacity" TargetName="optionMark" Value="0.56"/>
|
||||
</Trigger>
|
||||
</ControlTemplate.Triggers>
|
||||
</ControlTemplate>
|
||||
</Setter.Value>
|
||||
</Setter>
|
||||
</Style>
|
||||
|
||||
</ResourceDictionary>
|
||||
347
FasdDesktopUi/ResourceDictionaries/ScrollViewerResources.xaml
Normal file
347
FasdDesktopUi/ResourceDictionaries/ScrollViewerResources.xaml
Normal file
@@ -0,0 +1,347 @@
|
||||
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
|
||||
|
||||
<!--Control colors.-->
|
||||
<Color x:Key="WindowColor">#FFE8EDF9</Color>
|
||||
<Color x:Key="ContentAreaColorLight">#FFC5CBF9</Color>
|
||||
<Color x:Key="ContentAreaColorDark">#FF7381F9</Color>
|
||||
|
||||
<Color x:Key="DisabledControlLightColor">#FFE8EDF9</Color>
|
||||
<Color x:Key="DisabledControlDarkColor">#FFC5CBF9</Color>
|
||||
<Color x:Key="DisabledForegroundColor">#FF888888</Color>
|
||||
|
||||
<Color x:Key="SelectedBackgroundColor">#FFC5CBF9</Color>
|
||||
<Color x:Key="SelectedUnfocusedColor">#FFDDDDDD</Color>
|
||||
|
||||
<!--<Color x:Key="ControlLightColor">#DBDBDB</Color>
|
||||
<Color x:Key="ControlMediumColor">#DBDBDB</Color>
|
||||
<Color x:Key="ControlDarkColor">#DBDBDB</Color>-->
|
||||
|
||||
<Color x:Key="ControlMouseOverColor">#FF3843C4</Color>
|
||||
<Color x:Key="ControlPressedColor">#FF211AA9</Color>
|
||||
|
||||
<Color x:Key="GlyphColor">#FF444444</Color>
|
||||
<Color x:Key="GlyphMouseOver">sc#1, 0.004391443, 0.002428215, 0.242281124</Color>
|
||||
|
||||
<!--Border colors-->
|
||||
<Color x:Key="BorderLightColor">#FFCCCCCC</Color>
|
||||
<Color x:Key="BorderMediumColor">#FF888888</Color>
|
||||
<Color x:Key="BorderDarkColor">#FF444444</Color>
|
||||
|
||||
<Color x:Key="PressedBorderLightColor">#FF888888</Color>
|
||||
<Color x:Key="PressedBorderDarkColor">#FF444444</Color>
|
||||
|
||||
<Color x:Key="DisabledBorderLightColor">#FFAAAAAA</Color>
|
||||
<Color x:Key="DisabledBorderDarkColor">#FF888888</Color>
|
||||
|
||||
<Color x:Key="DefaultBorderBrushDarkColor">Black</Color>
|
||||
|
||||
<!--Control-specific resources.-->
|
||||
<Color x:Key="HeaderTopColor">#FFC5CBF9</Color>
|
||||
<Color x:Key="DatagridCurrentCellBorderColor">Black</Color>
|
||||
<Color x:Key="SliderTrackDarkColor">#FFC5CBF9</Color>
|
||||
|
||||
<Color x:Key="NavButtonFrameColor">#FF3843C4</Color>
|
||||
|
||||
<LinearGradientBrush x:Key="MenuPopupBrush"
|
||||
EndPoint="0.5,1"
|
||||
StartPoint="0.5,0">
|
||||
<GradientStop Color="{DynamicResource ControlLightColor}"
|
||||
Offset="0" />
|
||||
<GradientStop Color="{DynamicResource ControlMediumColor}"
|
||||
Offset="0.5" />
|
||||
<GradientStop Color="{DynamicResource ControlLightColor}"
|
||||
Offset="1" />
|
||||
</LinearGradientBrush>
|
||||
|
||||
<LinearGradientBrush x:Key="ProgressBarIndicatorAnimatedFill"
|
||||
StartPoint="0,0"
|
||||
EndPoint="1,0">
|
||||
<LinearGradientBrush.GradientStops>
|
||||
<GradientStopCollection>
|
||||
<GradientStop Color="#000000FF"
|
||||
Offset="0" />
|
||||
<GradientStop Color="#600000FF"
|
||||
Offset="0.4" />
|
||||
<GradientStop Color="#600000FF"
|
||||
Offset="0.6" />
|
||||
<GradientStop Color="#000000FF"
|
||||
Offset="1" />
|
||||
</GradientStopCollection>
|
||||
</LinearGradientBrush.GradientStops>
|
||||
</LinearGradientBrush>
|
||||
|
||||
<Style x:Key="ScrollBarLineButton"
|
||||
TargetType="{x:Type RepeatButton}">
|
||||
<Setter Property="SnapsToDevicePixels"
|
||||
Value="True" />
|
||||
<Setter Property="OverridesDefaultStyle"
|
||||
Value="true" />
|
||||
<Setter Property="Focusable"
|
||||
Value="false" />
|
||||
</Style>
|
||||
|
||||
<Style x:Key="ScrollBarPageButton"
|
||||
TargetType="{x:Type RepeatButton}">
|
||||
<Setter Property="SnapsToDevicePixels"
|
||||
Value="True" />
|
||||
<Setter Property="OverridesDefaultStyle"
|
||||
Value="true" />
|
||||
<Setter Property="IsTabStop"
|
||||
Value="false" />
|
||||
<Setter Property="Focusable"
|
||||
Value="false" />
|
||||
<Setter Property="Template">
|
||||
<Setter.Value>
|
||||
<ControlTemplate TargetType="{x:Type RepeatButton}">
|
||||
<Border Background="Transparent" />
|
||||
</ControlTemplate>
|
||||
</Setter.Value>
|
||||
</Setter>
|
||||
</Style>
|
||||
|
||||
<Style x:Key="ScrollBarThumb"
|
||||
TargetType="{x:Type Thumb}">
|
||||
<Setter Property="SnapsToDevicePixels"
|
||||
Value="True" />
|
||||
<Setter Property="OverridesDefaultStyle"
|
||||
Value="true" />
|
||||
<Setter Property="IsTabStop"
|
||||
Value="false" />
|
||||
<Setter Property="Focusable"
|
||||
Value="false" />
|
||||
<Setter Property="Cursor"
|
||||
Value="Hand"/>
|
||||
<Setter Property="Template">
|
||||
<Setter.Value>
|
||||
<ControlTemplate TargetType="{x:Type Thumb}">
|
||||
<Border CornerRadius="2"
|
||||
Background="{TemplateBinding Background}"
|
||||
BorderBrush="{TemplateBinding BorderBrush}"
|
||||
BorderThickness="0" />
|
||||
</ControlTemplate>
|
||||
</Setter.Value>
|
||||
</Setter>
|
||||
</Style>
|
||||
|
||||
<ControlTemplate x:Key="VerticalScrollBar"
|
||||
TargetType="{x:Type ScrollBar}">
|
||||
<Grid>
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition MaxHeight="0.1" />
|
||||
<RowDefinition Height="*" />
|
||||
<RowDefinition MaxHeight="0.1" />
|
||||
</Grid.RowDefinitions>
|
||||
<Border Grid.RowSpan="3"
|
||||
CornerRadius="2"
|
||||
Background="{DynamicResource Scrollbar.Track.Color}" />
|
||||
<RepeatButton Grid.Row="0"
|
||||
Style="{StaticResource ScrollBarLineButton}"
|
||||
Height="18"
|
||||
Command="ScrollBar.LineUpCommand"
|
||||
Content="M 0 4 L 8 4 L 4 0 Z" />
|
||||
<Track x:Name="PART_Track"
|
||||
Grid.Row="1"
|
||||
IsDirectionReversed="true">
|
||||
<Track.DecreaseRepeatButton>
|
||||
<RepeatButton Style="{StaticResource ScrollBarPageButton}"
|
||||
Command="ScrollBar.PageUpCommand" />
|
||||
</Track.DecreaseRepeatButton>
|
||||
<Track.Thumb>
|
||||
<Thumb Style="{StaticResource ScrollBarThumb}"
|
||||
Margin="1,0,1,0">
|
||||
<Thumb.BorderBrush>
|
||||
|
||||
<LinearGradientBrush StartPoint="0,0"
|
||||
EndPoint="1,0">
|
||||
<LinearGradientBrush.GradientStops>
|
||||
<GradientStopCollection>
|
||||
<GradientStop Color="{DynamicResource BorderLightColor}"
|
||||
Offset="0.0" />
|
||||
<GradientStop Color="{DynamicResource BorderDarkColor}"
|
||||
Offset="1.0" />
|
||||
</GradientStopCollection>
|
||||
</LinearGradientBrush.GradientStops>
|
||||
</LinearGradientBrush>
|
||||
|
||||
</Thumb.BorderBrush>
|
||||
<Thumb.Background>
|
||||
|
||||
<LinearGradientBrush StartPoint="0,0"
|
||||
EndPoint="1,0">
|
||||
<LinearGradientBrush.GradientStops>
|
||||
<GradientStopCollection>
|
||||
<GradientStop Color="{DynamicResource ControlLightColor}"
|
||||
Offset="0.0" />
|
||||
<GradientStop Color="{DynamicResource ControlMediumColor}"
|
||||
Offset="1.0" />
|
||||
</GradientStopCollection>
|
||||
</LinearGradientBrush.GradientStops>
|
||||
</LinearGradientBrush>
|
||||
|
||||
</Thumb.Background>
|
||||
</Thumb>
|
||||
</Track.Thumb>
|
||||
<Track.IncreaseRepeatButton>
|
||||
<RepeatButton Style="{StaticResource ScrollBarPageButton}"
|
||||
Command="ScrollBar.PageDownCommand" />
|
||||
</Track.IncreaseRepeatButton>
|
||||
</Track>
|
||||
<RepeatButton Grid.Row="2"
|
||||
Style="{StaticResource ScrollBarLineButton}"
|
||||
Height="18"
|
||||
Command="ScrollBar.LineDownCommand"
|
||||
Content="M 0 0 L 4 4 L 8 0 Z" />
|
||||
</Grid>
|
||||
</ControlTemplate>
|
||||
|
||||
<ControlTemplate x:Key="HorizontalScrollBar"
|
||||
TargetType="{x:Type ScrollBar}">
|
||||
<Grid>
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition MaxWidth="0.1" />
|
||||
<ColumnDefinition Width="*" />
|
||||
<ColumnDefinition MaxWidth="0.1" />
|
||||
</Grid.ColumnDefinitions>
|
||||
<Border Grid.ColumnSpan="3"
|
||||
CornerRadius="2"
|
||||
Background="{DynamicResource Scrollbar.Track.Color}" />
|
||||
<RepeatButton Grid.Column="0"
|
||||
Style="{StaticResource ScrollBarLineButton}"
|
||||
Width="18"
|
||||
Command="ScrollBar.LineLeftCommand"
|
||||
Content="M 4 0 L 4 8 L 0 4 Z" />
|
||||
<Track x:Name="PART_Track"
|
||||
Grid.Column="1"
|
||||
IsDirectionReversed="False">
|
||||
<Track.DecreaseRepeatButton>
|
||||
<RepeatButton Style="{StaticResource ScrollBarPageButton}"
|
||||
Command="ScrollBar.PageLeftCommand" />
|
||||
</Track.DecreaseRepeatButton>
|
||||
<Track.Thumb>
|
||||
<Thumb Style="{StaticResource ScrollBarThumb}"
|
||||
Margin="0,1,0,1">
|
||||
|
||||
<Thumb.BorderBrush>
|
||||
|
||||
<LinearGradientBrush StartPoint="0,0"
|
||||
EndPoint="1,0">
|
||||
<LinearGradientBrush.GradientStops>
|
||||
<GradientStopCollection>
|
||||
<GradientStop Color="{DynamicResource BorderLightColor}"
|
||||
Offset="0.0" />
|
||||
<GradientStop Color="{DynamicResource BorderDarkColor}"
|
||||
Offset="1.0" />
|
||||
</GradientStopCollection>
|
||||
</LinearGradientBrush.GradientStops>
|
||||
</LinearGradientBrush>
|
||||
|
||||
</Thumb.BorderBrush>
|
||||
<Thumb.Background>
|
||||
|
||||
<LinearGradientBrush StartPoint="0,0"
|
||||
EndPoint="0,1">
|
||||
<LinearGradientBrush.GradientStops>
|
||||
<GradientStopCollection>
|
||||
<GradientStop Color="{DynamicResource ControlLightColor}"
|
||||
Offset="0.0" />
|
||||
<GradientStop Color="{DynamicResource ControlMediumColor}"
|
||||
Offset="1.0" />
|
||||
</GradientStopCollection>
|
||||
</LinearGradientBrush.GradientStops>
|
||||
</LinearGradientBrush>
|
||||
|
||||
</Thumb.Background>
|
||||
</Thumb>
|
||||
</Track.Thumb>
|
||||
<Track.IncreaseRepeatButton>
|
||||
<RepeatButton Style="{StaticResource ScrollBarPageButton}"
|
||||
Command="ScrollBar.PageRightCommand" />
|
||||
</Track.IncreaseRepeatButton>
|
||||
</Track>
|
||||
<RepeatButton Grid.Column="2"
|
||||
Style="{StaticResource ScrollBarLineButton}"
|
||||
Width="18"
|
||||
Command="ScrollBar.LineRightCommand"
|
||||
Content="M 0 0 L 4 4 L 0 8 Z" />
|
||||
</Grid>
|
||||
</ControlTemplate>
|
||||
|
||||
<Style x:Key="{x:Type ScrollBar}"
|
||||
TargetType="{x:Type ScrollBar}">
|
||||
<Setter Property="SnapsToDevicePixels"
|
||||
Value="True" />
|
||||
<Setter Property="OverridesDefaultStyle"
|
||||
Value="true" />
|
||||
<Style.Triggers>
|
||||
<MultiTrigger>
|
||||
<MultiTrigger.Conditions>
|
||||
<Condition Property="Orientation"
|
||||
Value="Horizontal"/>
|
||||
<Condition Property="IsMouseOver"
|
||||
Value="false"/>
|
||||
</MultiTrigger.Conditions>
|
||||
|
||||
<Setter Property="Width"
|
||||
Value="Auto" />
|
||||
<Setter Property="Height"
|
||||
Value="6" />
|
||||
<Setter Property="Template"
|
||||
Value="{StaticResource HorizontalScrollBar}" />
|
||||
</MultiTrigger>
|
||||
|
||||
<MultiTrigger>
|
||||
<MultiTrigger.Conditions>
|
||||
<Condition Property="Orientation"
|
||||
Value="Horizontal"/>
|
||||
<Condition Property="IsMouseOver"
|
||||
Value="true"/>
|
||||
</MultiTrigger.Conditions>
|
||||
|
||||
<Setter Property="Width"
|
||||
Value="Auto" />
|
||||
<Setter Property="Height"
|
||||
Value="10" />
|
||||
<Setter Property="Margin"
|
||||
Value="0 -2"/>
|
||||
<Setter Property="Template"
|
||||
Value="{StaticResource HorizontalScrollBar}" />
|
||||
</MultiTrigger>
|
||||
|
||||
<MultiTrigger>
|
||||
<MultiTrigger.Conditions>
|
||||
<Condition Property="Orientation"
|
||||
Value="Vertical"/>
|
||||
<Condition Property="IsMouseOver"
|
||||
Value="false"/>
|
||||
</MultiTrigger.Conditions>
|
||||
|
||||
<Setter Property="Width"
|
||||
Value="6" />
|
||||
<Setter Property="Height"
|
||||
Value="Auto" />
|
||||
<Setter Property="Template"
|
||||
Value="{StaticResource VerticalScrollBar}" />
|
||||
</MultiTrigger>
|
||||
|
||||
<MultiTrigger>
|
||||
<MultiTrigger.Conditions>
|
||||
<Condition Property="Orientation"
|
||||
Value="Vertical"/>
|
||||
<Condition Property="IsMouseOver"
|
||||
Value="true"/>
|
||||
</MultiTrigger.Conditions>
|
||||
|
||||
<Setter Property="Width"
|
||||
Value="10" />
|
||||
<Setter Property="Margin"
|
||||
Value="-2 0"/>
|
||||
<Setter Property="Height"
|
||||
Value="Auto" />
|
||||
<Setter Property="Template"
|
||||
Value="{StaticResource VerticalScrollBar}" />
|
||||
</MultiTrigger>
|
||||
</Style.Triggers>
|
||||
</Style>
|
||||
|
||||
</ResourceDictionary>
|
||||
@@ -0,0 +1,25 @@
|
||||
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:ico="clr-namespace:FasdDesktopUi.Basics.UserControls.AdaptableIcon;assembly=F4SD-AdaptableIcon">
|
||||
|
||||
<Style x:Key="SettingsPage.Close.Icon"
|
||||
TargetType="ico:AdaptableIcon">
|
||||
<Setter Property="Cursor"
|
||||
Value="Hand" />
|
||||
<Setter Property="PrimaryIconColor"
|
||||
Value="{DynamicResource Color.Menu.Icon}" />
|
||||
<Setter Property="WindowChrome.IsHitTestVisibleInChrome"
|
||||
Value="True" />
|
||||
<Setter Property="BorderPadding"
|
||||
Value="10"/>
|
||||
|
||||
<Style.Triggers>
|
||||
<Trigger Property="IsMouseOver"
|
||||
Value="True">
|
||||
<Setter Property="PrimaryIconColor"
|
||||
Value="{DynamicResource Color.Menu.Icon.Hover}" />
|
||||
</Trigger>
|
||||
</Style.Triggers>
|
||||
</Style>
|
||||
|
||||
</ResourceDictionary>
|
||||
181
FasdDesktopUi/ResourceDictionaries/SliderResources.xaml
Normal file
181
FasdDesktopUi/ResourceDictionaries/SliderResources.xaml
Normal file
@@ -0,0 +1,181 @@
|
||||
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
|
||||
|
||||
<Style x:Key="SliderRepeatButton"
|
||||
TargetType="RepeatButton">
|
||||
<Setter Property="SnapsToDevicePixels"
|
||||
Value="true" />
|
||||
<Setter Property="OverridesDefaultStyle"
|
||||
Value="true" />
|
||||
<Setter Property="IsTabStop"
|
||||
Value="false" />
|
||||
<Setter Property="Focusable"
|
||||
Value="false" />
|
||||
<Setter Property="Template">
|
||||
<Setter.Value>
|
||||
<ControlTemplate TargetType="RepeatButton">
|
||||
<Border x:Name="RightSliderBorder"
|
||||
Background="{DynamicResource BackgroundColor.DetailsPage.Widget.Value}"
|
||||
Height="5"
|
||||
BorderThickness="1" />
|
||||
</ControlTemplate>
|
||||
</Setter.Value>
|
||||
</Setter>
|
||||
</Style>
|
||||
|
||||
<Style x:Key="SliderRepeatButton1"
|
||||
TargetType="RepeatButton">
|
||||
<Setter Property="SnapsToDevicePixels"
|
||||
Value="true" />
|
||||
<Setter Property="OverridesDefaultStyle"
|
||||
Value="true" />
|
||||
<Setter Property="Template">
|
||||
<Setter.Value>
|
||||
<ControlTemplate TargetType="RepeatButton">
|
||||
<Border x:Name="LeftSliderBorder"
|
||||
SnapsToDevicePixels="True"
|
||||
Background="{DynamicResource BackgroundColor.DetailsPage.Widget.Value}"
|
||||
Height="5"
|
||||
BorderThickness="1" />
|
||||
</ControlTemplate>
|
||||
</Setter.Value>
|
||||
</Setter>
|
||||
</Style>
|
||||
|
||||
<Style x:Key="SliderThumb"
|
||||
TargetType="Thumb">
|
||||
<Setter Property="SnapsToDevicePixels"
|
||||
Value="true" />
|
||||
<Setter Property="OverridesDefaultStyle"
|
||||
Value="true" />
|
||||
<Setter Property="Background"
|
||||
Value="{DynamicResource Color.Menu.Icon}" />
|
||||
<Setter Property="Template">
|
||||
<Setter.Value>
|
||||
<ControlTemplate TargetType="Thumb">
|
||||
<!--Add name to ellipse to use in controltemplate triggers-->
|
||||
<Border x:Name="ThumbBorder"
|
||||
Height="15"
|
||||
Width="15"
|
||||
CornerRadius="10"
|
||||
VerticalAlignment="Center"
|
||||
HorizontalAlignment="Center"
|
||||
Background="{TemplateBinding Background}"
|
||||
Padding="2">
|
||||
</Border>
|
||||
<ControlTemplate.Triggers>
|
||||
<Trigger Property="IsMouseOver"
|
||||
Value="true">
|
||||
<Setter TargetName="ThumbBorder"
|
||||
Property="Height"
|
||||
Value="17.5" />
|
||||
<Setter TargetName="ThumbBorder"
|
||||
Property="Width"
|
||||
Value="17.5" />
|
||||
<Setter TargetName="ThumbBorder"
|
||||
Property="CornerRadius"
|
||||
Value="13" />
|
||||
<Setter Property="Cursor"
|
||||
Value="Hand" />
|
||||
</Trigger>
|
||||
</ControlTemplate.Triggers>
|
||||
</ControlTemplate>
|
||||
</Setter.Value>
|
||||
</Setter>
|
||||
</Style>
|
||||
|
||||
<ControlTemplate x:Key="Slider"
|
||||
TargetType="Slider">
|
||||
<Grid>
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="Auto" />
|
||||
<RowDefinition Height="30" />
|
||||
<RowDefinition Height="Auto" />
|
||||
</Grid.RowDefinitions>
|
||||
<TickBar x:Name="TopTick"
|
||||
SnapsToDevicePixels="True"
|
||||
Placement="Top"
|
||||
Opacity=".4"
|
||||
Height="5"
|
||||
Visibility="Collapsed"
|
||||
Margin="0 0 0 -20"
|
||||
Fill="{DynamicResource Color.Menu.Icon}">
|
||||
</TickBar>
|
||||
|
||||
<Track Grid.Row="1"
|
||||
x:Name="PART_Track">
|
||||
<Track.DecreaseRepeatButton>
|
||||
<RepeatButton Style="{StaticResource SliderRepeatButton1}"
|
||||
Command="Slider.DecreaseLarge" />
|
||||
</Track.DecreaseRepeatButton>
|
||||
<Track.Thumb>
|
||||
<Thumb Style="{StaticResource SliderThumb}"
|
||||
Background="{TemplateBinding Background}"/>
|
||||
</Track.Thumb>
|
||||
<Track.IncreaseRepeatButton>
|
||||
<RepeatButton Style="{StaticResource SliderRepeatButton}"
|
||||
Command="Slider.IncreaseLarge" />
|
||||
</Track.IncreaseRepeatButton>
|
||||
</Track>
|
||||
|
||||
<TickBar x:Name="BottomTick"
|
||||
SnapsToDevicePixels="True"
|
||||
Grid.Row="2"
|
||||
Fill="{DynamicResource Color.Menu.Icon}"
|
||||
Opacity="0.5"
|
||||
Placement="Bottom"
|
||||
Margin="0 -15 0 0"
|
||||
Height="7.5"
|
||||
Visibility="Collapsed" />
|
||||
</Grid>
|
||||
|
||||
<ControlTemplate.Triggers>
|
||||
<Trigger Property="TickPlacement"
|
||||
Value="TopLeft">
|
||||
<Setter TargetName="TopTick"
|
||||
Property="Visibility"
|
||||
Value="Visible" />
|
||||
</Trigger>
|
||||
<Trigger Property="TickPlacement"
|
||||
Value="BottomRight">
|
||||
<Setter TargetName="BottomTick"
|
||||
Property="Visibility"
|
||||
Value="Visible" />
|
||||
</Trigger>
|
||||
<Trigger Property="TickPlacement"
|
||||
Value="Both">
|
||||
<Setter TargetName="TopTick"
|
||||
Property="Visibility"
|
||||
Value="Visible" />
|
||||
<Setter TargetName="BottomTick"
|
||||
Property="Visibility"
|
||||
Value="Visible" />
|
||||
</Trigger>
|
||||
</ControlTemplate.Triggers>
|
||||
</ControlTemplate>
|
||||
|
||||
<Style x:Name="CustomSlider"
|
||||
TargetType="Slider">
|
||||
<Setter Property="Focusable"
|
||||
Value="False" />
|
||||
<Setter Property="SnapsToDevicePixels"
|
||||
Value="true" />
|
||||
<Setter Property="OverridesDefaultStyle"
|
||||
Value="true" />
|
||||
<Setter Property="Background"
|
||||
Value="{DynamicResource Color.Menu.Icon}" />
|
||||
|
||||
<Style.Triggers>
|
||||
<Trigger Property="Orientation"
|
||||
Value="Horizontal">
|
||||
<Setter Property="MinHeight"
|
||||
Value="21" />
|
||||
<Setter Property="MinWidth"
|
||||
Value="104" />
|
||||
<Setter Property="Template"
|
||||
Value="{StaticResource Slider}" />
|
||||
</Trigger>
|
||||
</Style.Triggers>
|
||||
</Style>
|
||||
|
||||
</ResourceDictionary>
|
||||
@@ -0,0 +1,29 @@
|
||||
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
|
||||
|
||||
<SolidColorBrush x:Key="BackgroundColor.SlimPage.MenuBar"
|
||||
Color="#1A1A1A" />
|
||||
|
||||
<!--WidgetCollection-->
|
||||
<SolidColorBrush x:Key="BackgroundColor.SlimPage.WidgetCollection"
|
||||
Color="#272727" />
|
||||
<SolidColorBrush x:Key="FontColor.SlimPage.WidgetCollection.Header"
|
||||
Color="#9B9B9B" />
|
||||
<SolidColorBrush x:Key="FontColor.SlimPage.WidgetCollection.NoTitleValue"
|
||||
Color="#9B9B9B" />
|
||||
<SolidColorBrush x:Key="FontColor.SlimPage.WidgetCollection.Title"
|
||||
Color="#9B9B9B" />
|
||||
<SolidColorBrush x:Key="FontColor.SlimPage.WidgetCollection.Value"
|
||||
Color="#575757" />
|
||||
|
||||
<!--Data History-->
|
||||
<SolidColorBrush x:Key="BackgroundColor.SlimPage.DataHistory"
|
||||
Color="#1A1A1A" />
|
||||
<SolidColorBrush x:Key="BackgroundColor.SlimPage.DataHistory.Hover"
|
||||
Color="#121212" />
|
||||
<SolidColorBrush x:Key="FontColor.SlimPage.DataHistory.OverviewTitle"
|
||||
Color="#9B9B9B" />
|
||||
<SolidColorBrush x:Key="FontColor.SlimPage.DatHistory.ColumnHeader"
|
||||
Color="#575757" />
|
||||
|
||||
</ResourceDictionary>
|
||||
@@ -0,0 +1,29 @@
|
||||
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
|
||||
|
||||
<SolidColorBrush x:Key="BackgroundColor.SlimPage.MenuBar"
|
||||
Color="#F7FAFA" />
|
||||
|
||||
<!--WidgetCollection-->
|
||||
<SolidColorBrush x:Key="BackgroundColor.SlimPage.WidgetCollection"
|
||||
Color="#F2F2F2" />
|
||||
<SolidColorBrush x:Key="FontColor.SlimPage.WidgetCollection.Header"
|
||||
Color="#3D3C3C" />
|
||||
<SolidColorBrush x:Key="FontColor.SlimPage.WidgetCollection.NoTitleValue"
|
||||
Color="#545454" />
|
||||
<SolidColorBrush x:Key="FontColor.SlimPage.WidgetCollection.Title"
|
||||
Color="#3D3C3C" />
|
||||
<SolidColorBrush x:Key="FontColor.SlimPage.WidgetCollection.Value"
|
||||
Color="#3D3C3C" />
|
||||
|
||||
<!--Data History-->
|
||||
<SolidColorBrush x:Key="BackgroundColor.SlimPage.DataHistory"
|
||||
Color="#F7FAFA" />
|
||||
<SolidColorBrush x:Key="BackgroundColor.SlimPage.DataHistory.Hover"
|
||||
Color="#FAFCFC" />
|
||||
<SolidColorBrush x:Key="FontColor.SlimPage.DataHistory.OverviewTitle"
|
||||
Color="#3D3C3C" />
|
||||
<SolidColorBrush x:Key="FontColor.SlimPage.DatHistory.ColumnHeader"
|
||||
Color="#6D6D6D" />
|
||||
|
||||
</ResourceDictionary>
|
||||
@@ -0,0 +1,44 @@
|
||||
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
|
||||
|
||||
<Style x:Key="SlimPage.DataHistory.OverviewTitle"
|
||||
TargetType="TextBlock">
|
||||
<Setter Property="FontFamily"
|
||||
Value="Calibri" />
|
||||
<Setter Property="FontWeight"
|
||||
Value="Bold" />
|
||||
<Setter Property="FontSize"
|
||||
Value="13" />
|
||||
<Setter Property="TextBlock.LineHeight"
|
||||
Value="15" />
|
||||
<Setter Property="TextBlock.LineStackingStrategy"
|
||||
Value="BlockLineHeight" />
|
||||
<Setter Property="Foreground"
|
||||
Value="{DynamicResource FontColor.SlimPage.DataHistory.OverviewTitle}" />
|
||||
|
||||
<Style.Triggers>
|
||||
<DataTrigger Binding="{Binding RelativeSource={RelativeSource AncestorType=UserControl}, Path=IsMouseOver}"
|
||||
Value="True">
|
||||
<Setter Property="Foreground"
|
||||
Value="{DynamicResource Color.FunctionMarker}" />
|
||||
</DataTrigger>
|
||||
</Style.Triggers>
|
||||
</Style>
|
||||
|
||||
<Style x:Key="SlimPage.DataHistory.ColumnHeader"
|
||||
TargetType="TextBlock">
|
||||
<Setter Property="FontFamily"
|
||||
Value="Calibri" />
|
||||
<Setter Property="FontWeight"
|
||||
Value="Regular" />
|
||||
<Setter Property="FontSize"
|
||||
Value="12" />
|
||||
<Setter Property="TextBlock.LineHeight"
|
||||
Value="14" />
|
||||
<Setter Property="TextBlock.LineStackingStrategy"
|
||||
Value="BlockLineHeight" />
|
||||
<Setter Property="Foreground"
|
||||
Value="{DynamicResource FontColor.SlimPage.DatHistory.ColumnHeader}" />
|
||||
</Style>
|
||||
|
||||
</ResourceDictionary>
|
||||
@@ -0,0 +1,125 @@
|
||||
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:ico="clr-namespace:FasdDesktopUi.Basics.UserControls.AdaptableIcon;assembly=F4SD-AdaptableIcon">
|
||||
|
||||
<Style x:Key="SlimPage.Widget.Header"
|
||||
TargetType="TextBlock">
|
||||
<Setter Property="FontFamily"
|
||||
Value="Calibri" />
|
||||
<Setter Property="FontWeight"
|
||||
Value="Bold" />
|
||||
<Setter Property="FontSize"
|
||||
Value="12" />
|
||||
<Setter Property="TextBlock.LineHeight"
|
||||
Value="14" />
|
||||
<Setter Property="VerticalAlignment"
|
||||
Value="Center" />
|
||||
<Setter Property="TextBlock.LineStackingStrategy"
|
||||
Value="BlockLineHeight" />
|
||||
<Setter Property="Foreground"
|
||||
Value="{DynamicResource FontColor.SlimPage.WidgetCollection.Header}" />
|
||||
<Setter Property="Cursor"
|
||||
Value="Hand" />
|
||||
|
||||
<Style.Triggers>
|
||||
<EventTrigger RoutedEvent="Control.MouseLeftButtonUp">
|
||||
<EventTrigger.Actions>
|
||||
<BeginStoryboard>
|
||||
<Storyboard>
|
||||
<DoubleAnimation From="0.4"
|
||||
Duration="0:0:1"
|
||||
FillBehavior="Stop"
|
||||
Storyboard.TargetProperty="Opacity" />
|
||||
</Storyboard>
|
||||
</BeginStoryboard>
|
||||
</EventTrigger.Actions>
|
||||
</EventTrigger>
|
||||
</Style.Triggers>
|
||||
</Style>
|
||||
|
||||
<Style x:Key="SlimPage.Widget.Header.Icon"
|
||||
TargetType="ico:AdaptableIcon">
|
||||
<Setter Property="Margin"
|
||||
Value="-7 0 0 0" />
|
||||
<Setter Property="IconBackgroundColor"
|
||||
Value="Transparent" />
|
||||
<Setter Property="HorizontalAlignment"
|
||||
Value="Center" />
|
||||
<Setter Property="IconHeight"
|
||||
Value="20" />
|
||||
<Setter Property="BorderPadding"
|
||||
Value="3" />
|
||||
<Setter Property="PrimaryIconColor"
|
||||
Value="{DynamicResource Color.Menu.Icon}" />
|
||||
</Style>
|
||||
|
||||
<Style x:Key="SlimPage.Widget.Title"
|
||||
TargetType="TextBlock">
|
||||
<Setter Property="FontFamily"
|
||||
Value="Calibri" />
|
||||
<Setter Property="FontWeight"
|
||||
Value="Regular" />
|
||||
<Setter Property="FontSize"
|
||||
Value="10" />
|
||||
<Setter Property="TextBlock.LineHeight"
|
||||
Value="16" />
|
||||
<Setter Property="TextBlock.LineStackingStrategy"
|
||||
Value="BlockLineHeight" />
|
||||
<Setter Property="IsHitTestVisible"
|
||||
Value="False" />
|
||||
<Setter Property="Foreground"
|
||||
Value="{DynamicResource FontColor.SlimPage.WidgetCollection.Title}" />
|
||||
</Style>
|
||||
|
||||
<Style x:Key="SlimPage.Widget.Value.Base"
|
||||
TargetType="TextBlock">
|
||||
<Setter Property="FontFamily"
|
||||
Value="Calibri" />
|
||||
<Setter Property="FontSize"
|
||||
Value="10" />
|
||||
<Setter Property="TextBlock.LineHeight"
|
||||
Value="16" />
|
||||
<Setter Property="TextBlock.LineStackingStrategy"
|
||||
Value="BlockLineHeight" />
|
||||
<Setter Property="Cursor"
|
||||
Value="{DynamicResource Cursor.Copy}" />
|
||||
<Setter Property="TextTrimming"
|
||||
Value="CharacterEllipsis" />
|
||||
|
||||
<Style.Triggers>
|
||||
<EventTrigger RoutedEvent="Control.MouseLeftButtonUp">
|
||||
<EventTrigger.Actions>
|
||||
<BeginStoryboard>
|
||||
<Storyboard>
|
||||
<DoubleAnimation From="0.4"
|
||||
Duration="0:0:1"
|
||||
FillBehavior="Stop"
|
||||
Storyboard.TargetProperty="Opacity" />
|
||||
</Storyboard>
|
||||
</BeginStoryboard>
|
||||
</EventTrigger.Actions>
|
||||
</EventTrigger>
|
||||
</Style.Triggers>
|
||||
</Style>
|
||||
|
||||
<Style x:Key="SlimPage.Widget.NoTitleValue"
|
||||
TargetType="TextBlock"
|
||||
BasedOn="{StaticResource SlimPage.Widget.Value.Base}">
|
||||
<Setter Property="FontWeight"
|
||||
Value="Regular" />
|
||||
<Setter Property="HorizontalAlignment"
|
||||
Value="Left" />
|
||||
<Setter Property="Foreground"
|
||||
Value="{DynamicResource FontColor.SlimPage.WidgetCollection.NoTitleValue}" />
|
||||
</Style>
|
||||
|
||||
<Style x:Key="SlimPage.Widget.Value"
|
||||
TargetType="TextBlock"
|
||||
BasedOn="{StaticResource SlimPage.Widget.Value.Base}">
|
||||
<Setter Property="FontWeight"
|
||||
Value="Bold" />
|
||||
<Setter Property="Foreground"
|
||||
Value="{DynamicResource FontColor.SlimPage.WidgetCollection.Value}" />
|
||||
</Style>
|
||||
|
||||
</ResourceDictionary>
|
||||
180
FasdDesktopUi/ResourceDictionaries/TreeViewResources.xaml
Normal file
180
FasdDesktopUi/ResourceDictionaries/TreeViewResources.xaml
Normal file
@@ -0,0 +1,180 @@
|
||||
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
|
||||
|
||||
<Geometry x:Key="TreeArrow">F1 M 1.52133,16C 0.750666,16 0.270665,15.1667 0.657333,14.5L 4.37067,8.068L 0.657333,1.63067C -6.35783e-007,0.48 1.71867,-0.509333 2.38533,0.630666L 6.38533,7.568C 6.568,7.876 6.568,8.256 6.38533,8.568L 2.38533,15.5C 2.20933,15.808 1.88133,16 1.52133,16 Z</Geometry>
|
||||
|
||||
<Style x:Key="ExpandCollapseToggleStyle"
|
||||
TargetType="{x:Type ToggleButton}">
|
||||
<Setter Property="Focusable"
|
||||
Value="False" />
|
||||
<Setter Property="Width"
|
||||
Value="16" />
|
||||
<Setter Property="Height"
|
||||
Value="16" />
|
||||
|
||||
<Setter Property="Template">
|
||||
<Setter.Value>
|
||||
<ControlTemplate TargetType="{x:Type ToggleButton}">
|
||||
<Border x:Name="ExpandBorder"
|
||||
Height="16"
|
||||
Padding="2"
|
||||
Width="16"
|
||||
Background="#01010101"
|
||||
RenderTransformOrigin="0.5 0.5">
|
||||
<Viewbox>
|
||||
<Path x:Name="ExpandPath"
|
||||
Data="{StaticResource TreeArrow}"
|
||||
Fill="{DynamicResource Color.Menu.Icon}">
|
||||
</Path>
|
||||
</Viewbox>
|
||||
</Border>
|
||||
<ControlTemplate.Triggers>
|
||||
<Trigger Property="IsChecked"
|
||||
Value="True">
|
||||
<Setter Property="RenderTransform"
|
||||
TargetName="ExpandBorder">
|
||||
<Setter.Value>
|
||||
<RotateTransform Angle="90" />
|
||||
</Setter.Value>
|
||||
</Setter>
|
||||
<Setter Property="Fill"
|
||||
TargetName="ExpandPath"
|
||||
Value="{DynamicResource Color.Menu.Icon}" />
|
||||
</Trigger>
|
||||
<Trigger Property="IsMouseOver"
|
||||
Value="True">
|
||||
<Setter Property="Fill"
|
||||
TargetName="ExpandPath"
|
||||
Value="{DynamicResource Color.Menu.Icon.Hover}" />
|
||||
</Trigger>
|
||||
<MultiTrigger>
|
||||
<MultiTrigger.Conditions>
|
||||
<Condition Property="IsMouseOver"
|
||||
Value="True" />
|
||||
<Condition Property="IsChecked"
|
||||
Value="True" />
|
||||
</MultiTrigger.Conditions>
|
||||
<Setter Property="Fill"
|
||||
TargetName="ExpandPath"
|
||||
Value="{DynamicResource Color.Menu.Icon.Hover}" />
|
||||
</MultiTrigger>
|
||||
</ControlTemplate.Triggers>
|
||||
</ControlTemplate>
|
||||
</Setter.Value>
|
||||
</Setter>
|
||||
</Style>
|
||||
<Style x:Key="TreeViewItemFocusVisual">
|
||||
<Setter Property="Control.Template">
|
||||
<Setter.Value>
|
||||
<ControlTemplate>
|
||||
<Rectangle />
|
||||
</ControlTemplate>
|
||||
</Setter.Value>
|
||||
</Setter>
|
||||
</Style>
|
||||
<Style TargetType="{x:Type TreeViewItem}">
|
||||
<Setter Property="Background"
|
||||
Value="Transparent" />
|
||||
<Setter Property="HorizontalContentAlignment"
|
||||
Value="{Binding HorizontalContentAlignment, RelativeSource={RelativeSource AncestorType={x:Type ItemsControl}}}" />
|
||||
<Setter Property="VerticalContentAlignment"
|
||||
Value="{Binding VerticalContentAlignment, RelativeSource={RelativeSource AncestorType={x:Type ItemsControl}}}" />
|
||||
<Setter Property="Padding"
|
||||
Value="1,0,0,0" />
|
||||
<Setter Property="Foreground"
|
||||
Value="{DynamicResource FontColor.Menu.Categories}" />
|
||||
<Setter Property="FocusVisualStyle"
|
||||
Value="{StaticResource TreeViewItemFocusVisual}" />
|
||||
<Setter Property="Template">
|
||||
<Setter.Value>
|
||||
<ControlTemplate TargetType="{x:Type TreeViewItem}">
|
||||
<Grid>
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition MinWidth="19"
|
||||
Width="Auto" />
|
||||
<ColumnDefinition Width="Auto" />
|
||||
<ColumnDefinition Width="*" />
|
||||
</Grid.ColumnDefinitions>
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="Auto" />
|
||||
<RowDefinition />
|
||||
</Grid.RowDefinitions>
|
||||
<ToggleButton x:Name="Expander"
|
||||
ClickMode="Press"
|
||||
IsChecked="{Binding IsExpanded, RelativeSource={RelativeSource Mode=TemplatedParent}}"
|
||||
Style="{StaticResource ExpandCollapseToggleStyle}" />
|
||||
<Border x:Name="Bd"
|
||||
Background="{TemplateBinding Background}"
|
||||
BorderBrush="{TemplateBinding BorderBrush}"
|
||||
BorderThickness="{TemplateBinding BorderThickness}"
|
||||
Grid.Column="1"
|
||||
Padding="{TemplateBinding Padding}"
|
||||
SnapsToDevicePixels="true">
|
||||
<ContentPresenter x:Name="PART_Header"
|
||||
ContentSource="Header"
|
||||
HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
|
||||
SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" />
|
||||
</Border>
|
||||
<ItemsPresenter x:Name="ItemsHost"
|
||||
Grid.Column="1"
|
||||
Grid.ColumnSpan="2"
|
||||
Grid.Row="1" />
|
||||
</Grid>
|
||||
<ControlTemplate.Triggers>
|
||||
<Trigger Property="IsExpanded"
|
||||
Value="false">
|
||||
<Setter Property="Visibility"
|
||||
TargetName="ItemsHost"
|
||||
Value="Collapsed" />
|
||||
</Trigger>
|
||||
<Trigger Property="HasItems"
|
||||
Value="false">
|
||||
<Setter Property="Visibility"
|
||||
TargetName="Expander"
|
||||
Value="Hidden" />
|
||||
</Trigger>
|
||||
<Trigger Property="IsSelected"
|
||||
Value="true">
|
||||
<!--<Setter Property="Background"
|
||||
TargetName="Bd"
|
||||
Value="{DynamicResource {x:Static SystemColors.HighlightBrushKey}}" />-->
|
||||
<Setter Property="Foreground"
|
||||
Value="{DynamicResource Color.FunctionMarker}" />
|
||||
</Trigger>
|
||||
<MultiTrigger>
|
||||
<MultiTrigger.Conditions>
|
||||
<Condition Property="IsSelected"
|
||||
Value="true" />
|
||||
<Condition Property="IsSelectionActive"
|
||||
Value="false" />
|
||||
</MultiTrigger.Conditions>
|
||||
<!--<Setter Property="Background"
|
||||
TargetName="Bd"
|
||||
Value="{DynamicResource {x:Static SystemColors.InactiveSelectionHighlightBrushKey}}" />-->
|
||||
<Setter Property="Foreground"
|
||||
Value="{DynamicResource Color.FunctionMarker}" />
|
||||
</MultiTrigger>
|
||||
<Trigger Property="IsEnabled"
|
||||
Value="false">
|
||||
<Setter Property="Foreground"
|
||||
Value="{DynamicResource Color.SoftContrast}" />
|
||||
</Trigger>
|
||||
</ControlTemplate.Triggers>
|
||||
</ControlTemplate>
|
||||
</Setter.Value>
|
||||
</Setter>
|
||||
<Style.Triggers>
|
||||
<Trigger Property="VirtualizingPanel.IsVirtualizing"
|
||||
Value="true">
|
||||
<Setter Property="ItemsPanel">
|
||||
<Setter.Value>
|
||||
<ItemsPanelTemplate>
|
||||
<VirtualizingStackPanel />
|
||||
</ItemsPanelTemplate>
|
||||
</Setter.Value>
|
||||
</Setter>
|
||||
</Trigger>
|
||||
</Style.Triggers>
|
||||
</Style>
|
||||
|
||||
</ResourceDictionary>
|
||||
Reference in New Issue
Block a user