-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Light theme modified, dark theme added and set as default one
- Loading branch information
Showing
8 changed files
with
399 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,189 @@ | ||
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | ||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"> | ||
<!--<Style TargetType="{x:Type TextBlock}"> | ||
<Setter Property="Foreground" Value="White"/> | ||
<Setter Property="Background" Value="Black"/> | ||
<LinearGradientBrush x:Key="BackgroundBrush" StartPoint="0,0" EndPoint="0,1"> | ||
<GradientStop Offset="0" Color="#2b2b2b"/> | ||
<GradientStop Offset="1" Color="#242424"/> | ||
</LinearGradientBrush> | ||
<SolidColorBrush x:Key="ForegroundBrush" Color="#ffffff"/> | ||
<SolidColorBrush x:Key="AccentBrush" Color="#ff8300"/> | ||
<SolidColorBrush x:Key="AccentLightBrush" Color="#ffa632"/> | ||
<SolidColorBrush x:Key="AccentDarkBrush" Color="#d55c00"/> | ||
|
||
<Style TargetType="Grid"> | ||
<Setter Property="Background" Value="{StaticResource BackgroundBrush}"/> | ||
</Style> | ||
<Style TargetType="{x:Type Label}"> | ||
<Setter Property="Foreground" Value="White"/> | ||
<Setter Property="Background" Value="Black"/> | ||
|
||
<Style TargetType="Label"> | ||
<Setter Property="Background" Value="{StaticResource BackgroundBrush}"/> | ||
<Setter Property="Foreground" Value="{StaticResource ForegroundBrush}"/> | ||
<Setter Property="BorderBrush" Value="{StaticResource AccentBrush}"/> | ||
<Setter Property="BorderThickness" Value="2"/> | ||
</Style> | ||
|
||
<ControlTemplate x:Key="ComboBoxToggleButton" TargetType="ToggleButton"> | ||
<Grid> | ||
<Grid.ColumnDefinitions> | ||
<ColumnDefinition /> | ||
<ColumnDefinition Width="20" /> | ||
</Grid.ColumnDefinitions> | ||
<Border x:Name="Border" | ||
Grid.ColumnSpan="2" | ||
Background="{StaticResource BackgroundBrush}" | ||
BorderBrush="{StaticResource AccentBrush}" | ||
BorderThickness="1" /> | ||
<Border x:Name="InnerBorder" | ||
Grid.Column="0" | ||
Background="{StaticResource BackgroundBrush}" | ||
Margin="1" | ||
BorderBrush="{StaticResource AccentBrush}" | ||
BorderThickness="0,0,1,0" /> | ||
<Path x:Name="Arrow" | ||
Grid.Column="1" | ||
HorizontalAlignment="Center" | ||
VerticalAlignment="Center" | ||
Data="M 0 0 L 4 4 L 8 0 Z" | ||
Fill="{StaticResource AccentBrush}" /> | ||
</Grid> | ||
<ControlTemplate.Triggers> | ||
<Trigger Property="IsChecked" Value="True"> | ||
<Setter Property="Background" TargetName="Border" Value="{StaticResource AccentBrush}" /> | ||
<Setter Property="BorderBrush" TargetName="Border" Value="{StaticResource AccentBrush}" /> | ||
<Setter Property="Fill" TargetName="Arrow" Value="{StaticResource BackgroundBrush}" /> | ||
</Trigger> | ||
<Trigger Property="IsMouseOver" Value="True"> | ||
<Setter Property="BorderBrush" TargetName="Border" Value="{StaticResource AccentLightBrush}" /> | ||
</Trigger> | ||
<Trigger Property="IsEnabled" Value="False"> | ||
<Setter Property="Opacity" Value="0.56" /> | ||
<Setter Property="Background" TargetName="Border" Value="{StaticResource BackgroundBrush}" /> | ||
<Setter Property="BorderBrush" TargetName="Border" Value="{StaticResource AccentBrush}" /> | ||
<Setter Property="Fill" TargetName="Arrow" Value="{StaticResource ForegroundBrush}" /> | ||
</Trigger> | ||
</ControlTemplate.Triggers> | ||
</ControlTemplate> | ||
|
||
<Style TargetType="ComboBox"> | ||
<Setter Property="Background" Value="{StaticResource BackgroundBrush}"/> | ||
<Setter Property="Foreground" Value="{StaticResource ForegroundBrush}"/> | ||
<Setter Property="BorderBrush" Value="{StaticResource AccentBrush}"/> | ||
<Setter Property="BorderThickness" Value="1"/> | ||
<Setter Property="Padding" Value="5"/> | ||
<Setter Property="Template"> | ||
<Setter.Value> | ||
<ControlTemplate TargetType="ComboBox"> | ||
<Grid> | ||
<ToggleButton x:Name="ToggleButton" | ||
Template="{StaticResource ComboBoxToggleButton}" | ||
Grid.Column="2" | ||
Focusable="false" | ||
IsChecked="{Binding Path=IsDropDownOpen, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}" /> | ||
<ContentPresenter x:Name="ContentSite" | ||
IsHitTestVisible="False" | ||
Content="{TemplateBinding SelectionBoxItem}" | ||
ContentTemplate="{TemplateBinding SelectionBoxItemTemplate}" | ||
ContentTemplateSelector="{TemplateBinding ItemTemplateSelector}" | ||
Margin="3,3,23,3" | ||
VerticalAlignment="Center" | ||
HorizontalAlignment="Left" /> | ||
<Popup x:Name="Popup" | ||
Placement="Bottom" | ||
IsOpen="{TemplateBinding IsDropDownOpen}" | ||
AllowsTransparency="True" | ||
Focusable="False" | ||
PopupAnimation="Slide"> | ||
<Grid x:Name="DropDown" | ||
SnapsToDevicePixels="True" | ||
MinWidth="{TemplateBinding ActualWidth}" | ||
MaxHeight="{TemplateBinding MaxDropDownHeight}"> | ||
<Border x:Name="DropDownBorder" | ||
Background="{StaticResource BackgroundBrush}" | ||
BorderThickness="1" | ||
BorderBrush="{StaticResource AccentBrush}" /> | ||
<ScrollViewer Margin="4,6,4,6" SnapsToDevicePixels="True"> | ||
<StackPanel IsItemsHost="True" KeyboardNavigation.DirectionalNavigation="Contained" /> | ||
</ScrollViewer> | ||
</Grid> | ||
</Popup> | ||
</Grid> | ||
<ControlTemplate.Triggers> | ||
<Trigger Property="IsFocused" Value="True"> | ||
<Setter Property="BorderBrush" Value="{StaticResource AccentLightBrush}" /> | ||
</Trigger> | ||
<Trigger Property="IsEnabled" Value="False"> | ||
<Setter Property="Opacity" TargetName="ContentSite" Value="0.56" /> | ||
</Trigger> | ||
<DataTrigger Binding="{Binding Path=SelectedItem, RelativeSource={RelativeSource Self}}" Value="{x:Null}"> | ||
<Setter Property="Foreground" Value="{StaticResource ForegroundBrush}"/> | ||
</DataTrigger> | ||
<DataTrigger Binding="{Binding Path=SelectedItem, RelativeSource={RelativeSource Self}}" Value="{x:Null}"> | ||
<Setter Property="Background" Value="{StaticResource BackgroundBrush}"/> | ||
</DataTrigger> | ||
<MultiDataTrigger> | ||
<MultiDataTrigger.Conditions> | ||
<Condition Binding="{Binding Path=IsDropDownOpen, RelativeSource={RelativeSource Self}}" Value="True" /> | ||
<Condition Binding="{Binding Path=HasItems, RelativeSource={RelativeSource Self}}" Value="False" /> | ||
</MultiDataTrigger.Conditions> | ||
<Setter Property="Visibility" TargetName="Popup" Value="Hidden" /> | ||
</MultiDataTrigger> | ||
</ControlTemplate.Triggers> | ||
</ControlTemplate> | ||
</Setter.Value> | ||
</Setter> | ||
</Style> | ||
|
||
<Style TargetType="TextBox"> | ||
<Setter Property="Background" Value="{StaticResource BackgroundBrush}"/> | ||
<Setter Property="Foreground" Value="{StaticResource ForegroundBrush}"/> | ||
<Setter Property="BorderBrush" Value="{StaticResource AccentBrush}"/> | ||
<Setter Property="CaretBrush" Value="{StaticResource AccentLightBrush}"/> | ||
<Setter Property="BorderThickness" Value="1"/> | ||
<Setter Property="Padding" Value="5"/> | ||
</Style> | ||
|
||
<Style TargetType="Button"> | ||
<Setter Property="Background" Value="{StaticResource BackgroundBrush}"/> | ||
<Setter Property="Foreground" Value="{StaticResource ForegroundBrush}"/> | ||
<Setter Property="BorderBrush" Value="{StaticResource AccentBrush}"/> | ||
<Setter Property="BorderThickness" Value="1"/> | ||
<Setter Property="Padding" Value="5"/> | ||
<Setter Property="Margin" Value="10"/> | ||
<Setter Property="MinWidth" Value="100"/> | ||
<Setter Property="HorizontalAlignment" Value="Center"/> | ||
</Style> | ||
<Style TargetType="{x:Type Button}"> | ||
|
||
<Style x:Key="ThemeButton" TargetType="Button"> | ||
<Setter Property="Foreground" Value="White"/> | ||
<Setter Property="Background" Value="Black"/> | ||
</Style>--> | ||
<Setter Property="Padding" Value="10"/> | ||
<Setter Property="Template"> | ||
<Setter.Value> | ||
<ControlTemplate TargetType="{x:Type Button}"> | ||
<Border Background="{TemplateBinding Background}" Padding="{TemplateBinding Padding}"> | ||
<ContentPresenter HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}"/> | ||
</Border> | ||
</ControlTemplate> | ||
</Setter.Value> | ||
</Setter> | ||
</Style> | ||
|
||
<Style TargetType="TextBlock"> | ||
<Setter Property="Foreground" Value="{StaticResource ForegroundBrush}"/> | ||
<Setter Property="Margin" Value="10"/> | ||
</Style> | ||
|
||
<Style TargetType="ListBox"> | ||
<Setter Property="Background" Value="{StaticResource BackgroundBrush}"/> | ||
<Setter Property="Foreground" Value="{StaticResource ForegroundBrush}"/> | ||
<Setter Property="BorderBrush" Value="{StaticResource AccentBrush}"/> | ||
<Setter Property="BorderThickness" Value="1"/> | ||
<Setter Property="Padding" Value="5"/> | ||
<Setter Property="Margin" Value="10"/> | ||
</Style> | ||
|
||
<Style TargetType="ListBoxItem"> | ||
<Setter Property="Padding" Value="5"/> | ||
</Style> | ||
|
||
<Style TargetType="Image"> | ||
<Setter Property="Margin" Value="5"/> | ||
</Style> | ||
</ResourceDictionary> |
Oops, something went wrong.