Skip to content

Commit

Permalink
[Color Picker] Increase width of editor window (#13420)
Browse files Browse the repository at this point in the history
  • Loading branch information
jaimecbernardo committed Sep 24, 2021
1 parent 3358fd9 commit 6212c1b
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 21 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
BorderThickness="1"
Title="Color Picker"
Height="380"
Width="400"
Width="440"
ResizeMode="NoResize"
Topmost="True"
WindowStartupLocation="CenterScreen">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

<Border x:Name="MainBorder"
Margin="12,16,12,0"
Width="308"
Width="348"
Height="36"
CornerRadius="2"
HorizontalAlignment="Stretch"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -239,11 +239,11 @@
ShadowDepth="2" />
</Grid.Effect>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="36" />
<ColumnDefinition Width="36" />
<ColumnDefinition Width="46" />
<ColumnDefinition Width="46" />
<ColumnDefinition Width="165" />
<ColumnDefinition Width="36" />
<ColumnDefinition Width="36" />
<ColumnDefinition Width="46" />
<ColumnDefinition Width="46" />
</Grid.ColumnDefinitions>

<Button x:Name="colorVariation1Button"
Expand Down Expand Up @@ -288,7 +288,7 @@
Background="Red"
Width="165"
Height="48"
Margin="72,0,0,0"
Margin="92,0,0,0"
AutomationProperties.Name="{x:Static p:Resources.Selected_color}"
AutomationProperties.HelpText="{x:Static p:Resources.Selected_color_helptext}"
ToolTipService.ToolTip="{x:Static p:Resources.Selected_color_tooltip}"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -191,13 +191,7 @@ private void ShowDetails()
{
_isCollapsed = false;

var opacityAppear = new DoubleAnimation(1.0, new Duration(TimeSpan.FromMilliseconds(300)));
opacityAppear.EasingFunction = new QuadraticEase() { EasingMode = EasingMode.EaseInOut };

var resize = new DoubleAnimation(400, new Duration(TimeSpan.FromMilliseconds(300)));
resize.EasingFunction = new ExponentialEase() { EasingMode = EasingMode.EaseInOut };

var resizeColor = new DoubleAnimation(309, new Duration(TimeSpan.FromMilliseconds(250)));
var resizeColor = new DoubleAnimation(349, new Duration(TimeSpan.FromMilliseconds(250)));
resizeColor.EasingFunction = new ExponentialEase() { EasingMode = EasingMode.EaseInOut };

var moveColor = new ThicknessAnimation(new Thickness(0), new Duration(TimeSpan.FromMilliseconds(250)));
Expand All @@ -217,16 +211,10 @@ private void HideDetails()
{
_isCollapsed = true;

var opacityAppear = new DoubleAnimation(0, new Duration(TimeSpan.FromMilliseconds(150)));
opacityAppear.EasingFunction = new QuadraticEase() { EasingMode = EasingMode.EaseInOut };

var resize = new DoubleAnimation(0, new Duration(TimeSpan.FromMilliseconds(150)));
resize.EasingFunction = new ExponentialEase() { EasingMode = EasingMode.EaseInOut };

var resizeColor = new DoubleAnimation(165, new Duration(TimeSpan.FromMilliseconds(150)));
resizeColor.EasingFunction = new ExponentialEase() { EasingMode = EasingMode.EaseInOut };

var moveColor = new ThicknessAnimation(new Thickness(72, 0, 0, 0), new Duration(TimeSpan.FromMilliseconds(150)));
var moveColor = new ThicknessAnimation(new Thickness(92, 0, 0, 0), new Duration(TimeSpan.FromMilliseconds(150)));
moveColor.EasingFunction = new ExponentialEase() { EasingMode = EasingMode.EaseInOut };

ControlHelper.SetCornerRadius(CurrentColorButton, new CornerRadius(0));
Expand Down

0 comments on commit 6212c1b

Please sign in to comment.