Skip to content

Commit

Permalink
chore: adjust shadow corner impl
Browse files Browse the repository at this point in the history
  • Loading branch information
Xiaoy312 committed Aug 29, 2023
1 parent a8e6843 commit 1cd6cd7
Show file tree
Hide file tree
Showing 7 changed files with 298 additions and 200 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,6 @@
</utu:ShadowContainer>

<utu:ShadowContainer Margin="0,60,0,0"
CornerRadius="20"
Background="{StaticResource UnoColor}"
Shadows="{StaticResource NeumorphismHollow}">
<TextBox Width="200"
Expand All @@ -244,8 +243,7 @@
PlaceholderText="Hollow element"
Text="Login" />
</utu:ShadowContainer>
<utu:ShadowContainer CornerRadius="20"
Background="{StaticResource UnoColor}"
<utu:ShadowContainer Background="{StaticResource UnoColor}"
Shadows="{StaticResource NeumorphismHollow}"
Margin="0,15">
<TextBox Width="200"
Expand All @@ -259,7 +257,6 @@
</utu:ShadowContainer>

<utu:ShadowContainer Margin="0,30"
CornerRadius="15"
Background="{StaticResource UnoColor}"
Shadows="{StaticResource NeumorphismBulging}">
<Button Width="200"
Expand All @@ -277,19 +274,15 @@
Orientation="Horizontal"
Spacing="16">

<utu:ShadowContainer Background="{StaticResource UnoColor}"
CornerRadius="20"
Shadows="{StaticResource NeumorphismRaising}">
<utu:ShadowContainer Background="{StaticResource UnoColor}" Shadows="{StaticResource NeumorphismRaising}">
<Button Content="Regular"
CornerRadius="20"
BorderThickness="0"
Background="Transparent"
Foreground="White" />
</utu:ShadowContainer>

<utu:ShadowContainer CornerRadius="50"
Background="{StaticResource UnoColor}"
Shadows="{StaticResource NeumorphismRaising}">
<utu:ShadowContainer Background="{StaticResource UnoColor}" Shadows="{StaticResource NeumorphismRaising}">
<Button Content="Round"
Width="100"
Height="100"
Expand All @@ -299,9 +292,7 @@
Foreground="White" />
</utu:ShadowContainer>

<utu:ShadowContainer Background="{StaticResource UnoColor}"
CornerRadius="20"
Shadows="{StaticResource NeumorphismRaising}">
<utu:ShadowContainer Background="{StaticResource UnoColor}" Shadows="{StaticResource NeumorphismRaising}">
<Button Content="Bigger"
Height="60"
BorderThickness="0"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
using System.Linq;
using System.Text;
using Uno.Disposables;
using Uno.Extensions;
using Uno.Toolkit.UI;
using Uno.Toolkit.Samples.Entities;
using Uno.Toolkit.Samples.Helpers;
Expand Down
Loading

0 comments on commit 1cd6cd7

Please sign in to comment.