Skip to content

Commit

Permalink
Gradients based on surface color
Browse files Browse the repository at this point in the history
DigitalE4rth committed Sep 2, 2023

Unverified

This commit is not signed, but one or more authors requires that any commit attributed to them is signed.
1 parent 1cbdbd7 commit dcc50f5
Showing 7 changed files with 16 additions and 10 deletions.
2 changes: 1 addition & 1 deletion WhyOrchid/Styles/Button/ButtonFilled.xaml
Original file line number Diff line number Diff line change
@@ -37,7 +37,7 @@
<Border.Background>
<LinearGradientBrush StartPoint="0.5,0" EndPoint="0.5,1">
<GradientStop Offset="0" Color="Transparent" />
<GradientStop Offset="1" Color="Black" />
<GradientStop Offset="1" Color="{Binding Source={x:Static properties:Settings.Default}, Path=Color_Surface, Mode=OneTime}" />
</LinearGradientBrush>
</Border.Background>
</Border>
2 changes: 1 addition & 1 deletion WhyOrchid/Styles/Button/ButtonMenu.xaml
Original file line number Diff line number Diff line change
@@ -72,7 +72,7 @@
<Border.Background>
<LinearGradientBrush StartPoint="0.5,0" EndPoint="0.5,1">
<GradientStop Offset="0" Color="Transparent" />
<GradientStop Offset="1" Color="Black" />
<GradientStop Offset="1" Color="{Binding Source={x:Static properties:Settings.Default}, Path=Color_Surface, Mode=OneTime}" />
</LinearGradientBrush>
</Border.Background>
</Border>
2 changes: 1 addition & 1 deletion WhyOrchid/Styles/Button/ButtonMenuState.xaml
Original file line number Diff line number Diff line change
@@ -72,7 +72,7 @@
<Border.Background>
<LinearGradientBrush StartPoint="0.5,0" EndPoint="0.5,1">
<GradientStop Offset="0" Color="Transparent" />
<GradientStop Offset="1" Color="Black" />
<GradientStop Offset="1" Color="{Binding Source={x:Static properties:Settings.Default}, Path=Color_Surface, Mode=OneTime}" />
</LinearGradientBrush>
</Border.Background>
</Border>
10 changes: 8 additions & 2 deletions WhyOrchid/Styles/Card/CardDropDownItem.xaml
Original file line number Diff line number Diff line change
@@ -54,9 +54,15 @@
Margin="1,8,0,8"
HorizontalAlignment="Left"
VerticalAlignment="Stretch"
Background="{Binding Source={x:Static properties:Settings.Default}, Path=Color_Primary, Mode=OneTime}"
CornerRadius="1.5"
Opacity="0" />
Opacity="0">
<Border.Background>
<LinearGradientBrush StartPoint="0.5,0" EndPoint="0.5,1">
<GradientStop Offset="0" Color="Transparent" />
<GradientStop Offset="1" Color="{Binding Source={x:Static properties:Settings.Default}, Path=Color_Surface, Mode=OneTime}" />
</LinearGradientBrush>
</Border.Background>
</Border>

<ContentPresenter x:Name="ContentPresenter"
Margin="12.5,0,12.5,0"
6 changes: 3 additions & 3 deletions WhyOrchid/Styles/Card/CardToggleButton.xaml
Original file line number Diff line number Diff line change
@@ -139,13 +139,13 @@
<Border Width="48"
Height="26"
CornerRadius="13"
Opacity="0.15">
Opacity="0.1">
<Border.Background>
<LinearGradientBrush StartPoint="0.5,0" EndPoint="0.5,1">
<GradientStop Offset="0" Color="Black" />
<GradientStop Offset="0" Color="{Binding Source={x:Static properties:Settings.Default}, Path=Color_Surface, Mode=OneTime}" />
<GradientStop Offset="0.45" Color="Transparent" />
<GradientStop Offset="0.65" Color="Transparent" />
<GradientStop Offset="1" Color="Black" />
<GradientStop Offset="1" Color="{Binding Source={x:Static properties:Settings.Default}, Path=Color_Surface, Mode=OneTime}" />
</LinearGradientBrush>
</Border.Background>
</Border>
2 changes: 1 addition & 1 deletion WhyOrchid/Styles/CheckBox/CheckBoxToggleSwitch.xaml
Original file line number Diff line number Diff line change
@@ -51,7 +51,7 @@
<Border Width="48"
Height="26"
CornerRadius="13"
Opacity="0.15">
Opacity="0.1">
<Border.Background>
<LinearGradientBrush StartPoint="0.5,0" EndPoint="0.5,1">
<GradientStop Offset="0" Color="Black" />
2 changes: 1 addition & 1 deletion WhyOrchid/Styles/ComboBox/ComboBoxItem.xaml
Original file line number Diff line number Diff line change
@@ -58,7 +58,7 @@
<Border.Background>
<LinearGradientBrush StartPoint="0.5,0" EndPoint="0.5,1">
<GradientStop Offset="0" Color="Transparent" />
<GradientStop Offset="1" Color="Black" />
<GradientStop Offset="1" Color="{Binding Source={x:Static properties:Settings.Default}, Path=Color_Surface, Mode=OneTime}" />
</LinearGradientBrush>
</Border.Background>
</Border>

0 comments on commit dcc50f5

Please sign in to comment.