Permalink
Browse files

Sidebars matching except 1px on the right of avalon

  • Loading branch information...
1 parent e3ae461 commit 1d38f091b76a2f6b87f43b3602a0beceea4d7d91 @andrewtobin andrewtobin committed Jan 5, 2012
Showing with 1 addition and 192 deletions.
  1. +1 −2 src/MarkPad/AppBootstrapper.cs
  2. +0 −190 src/MarkPad/Document/DocumentView.xaml
@@ -59,8 +59,7 @@ private void SetAwesomiumDefaults()
var c = new Awesomium.Core.WebCoreConfig
{
CustomCSS = @"::-webkit-scrollbar { width: 12px; height: 20px; }
- ::-webkit-scrollbar-track { background-color: white; }
- ::-webkit-scrollbar-button { background-color: white; }
+ ::-webkit-scrollbar-track { background-color: white; }
::-webkit-scrollbar-thumb { background-color: #B9B9B9; }
::-webkit-scrollbar-thumb:hover { background-color: #000000; }",
};
@@ -320,183 +320,9 @@
</ControlTemplate>
<ControlTemplate x:Key="VerticalIncrementTemplate"
TargetType="RepeatButton">
- <Grid x:Name="Root">
- <VisualStateManager.VisualStateGroups>
- <VisualStateGroup x:Name="CommonStates">
- <VisualState x:Name="Normal" />
- <VisualState x:Name="MouseOver">
- <Storyboard>
- <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)"
- Storyboard.TargetName="HoverPath">
- <EasingDoubleKeyFrame KeyTime="0:0:0.1"
- Value="1" />
- </DoubleAnimationUsingKeyFrames>
- <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)"
- Storyboard.TargetName="Blur">
- <EasingDoubleKeyFrame KeyTime="0:0:0.1"
- Value="0.5" />
- </DoubleAnimationUsingKeyFrames>
- </Storyboard>
- </VisualState>
- <VisualState x:Name="Pressed">
- <Storyboard />
- </VisualState>
- <VisualState x:Name="Disabled">
- <Storyboard>
- <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)"
- Storyboard.TargetName="Root">
- <EasingDoubleKeyFrame KeyTime="0:0:0.1"
- Value="0.5" />
- </DoubleAnimationUsingKeyFrames>
- </Storyboard>
- </VisualState>
- </VisualStateGroup>
- </VisualStateManager.VisualStateGroups>
- <Path Data="F1 M 531.107,321.943L 541.537,321.943L 536.322,328.042L 531.107,321.943 Z "
- Height="4"
- Stretch="Uniform"
- Width="6">
- <Path.Fill>
- <SolidColorBrush x:Name="ButtonColor"
- Color="{DynamicResource Gray3}" />
- </Path.Fill>
- </Path>
- <Path x:Name="HoverPath"
- Data="F1 M 531.107,321.943L 541.537,321.943L 536.322,328.042L 531.107,321.943 Z "
- Height="4"
- Stretch="Uniform"
- Width="6"
- UseLayoutRounding="False"
- Opacity="0"
- Margin="1,0,0,0">
- <Path.Fill>
- <SolidColorBrush Color="{DynamicResource BlackColor}" />
- </Path.Fill>
- </Path>
- <Path x:Name="Blur"
- Data="F1 M 531.107,321.943L 541.537,321.943L 536.322,328.042L 531.107,321.943 Z "
- Height="4"
- Stretch="Uniform"
- Width="6"
- UseLayoutRounding="False"
- Opacity="0"
- Margin="1,0,0,0">
- <Path.Effect>
- <BlurEffect />
- </Path.Effect>
- <Path.Fill>
- <SolidColorBrush Color="{DynamicResource BlackColor}" />
- </Path.Fill>
- </Path>
- <Rectangle x:Name="DisabledElement"
- Fill="{DynamicResource WhiteColorBrush}"
- Opacity="0"
- RadiusY="2"
- RadiusX="2" />
- </Grid>
</ControlTemplate>
<ControlTemplate x:Key="VerticalDecrementTemplate"
TargetType="RepeatButton">
- <Grid x:Name="Root">
- <VisualStateManager.VisualStateGroups>
- <VisualStateGroup x:Name="CommonStates">
- <VisualState x:Name="Normal" />
- <VisualState x:Name="MouseOver">
- <Storyboard>
- <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)"
- Storyboard.TargetName="HoverPath">
- <EasingDoubleKeyFrame KeyTime="0:0:0.1"
- Value="1" />
- </DoubleAnimationUsingKeyFrames>
- <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)"
- Storyboard.TargetName="Blur">
- <EasingDoubleKeyFrame KeyTime="0:0:0.1"
- Value="0.5" />
- </DoubleAnimationUsingKeyFrames>
- </Storyboard>
- </VisualState>
- <VisualState x:Name="Pressed">
- <Storyboard />
- </VisualState>
- <VisualState x:Name="Disabled">
- <Storyboard>
- <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)"
- Storyboard.TargetName="Root">
- <EasingDoubleKeyFrame KeyTime="0:0:0.1"
- Value="0.5" />
- </DoubleAnimationUsingKeyFrames>
- </Storyboard>
- </VisualState>
- </VisualStateGroup>
- </VisualStateManager.VisualStateGroups>
- <Rectangle x:Name="Background"
- Fill="{DynamicResource ControlBackgroundBrush}"
- Opacity="0"
- RadiusY="2"
- RadiusX="2"
- StrokeThickness="1" />
- <Rectangle x:Name="BackgroundMouseOver"
- Fill="{DynamicResource HighlightBrush}"
- Opacity="0"
- RadiusY="2"
- RadiusX="2" />
- <Rectangle x:Name="BackgroundPressed"
- Fill="{DynamicResource HighlightBrush}"
- Opacity="0"
- RadiusY="2"
- RadiusX="2" />
- <Rectangle x:Name="BackgroundGradient"
- Fill="{DynamicResource TransparentWhiteBrush}"
- Margin="1"
- Opacity="0"
- RadiusY="1"
- RadiusX="1"
- Stroke="{DynamicResource ControlBackgroundBrush}"
- StrokeThickness="1" />
- <Rectangle x:Name="Highlight"
- IsHitTestVisible="false"
- Margin="1"
- Opacity="0"
- RadiusY="1"
- RadiusX="1"
- Stroke="{DynamicResource HighlightBrush}"
- StrokeThickness="1" />
- <Path Data="F1 M 541.537,173.589L 531.107,173.589L 536.322,167.49L 541.537,173.589 Z "
- Height="4"
- Stretch="Uniform"
- Width="6">
- <Path.Fill>
- <SolidColorBrush Color="{DynamicResource Gray2}" />
- </Path.Fill>
- </Path>
- <Path x:Name="HoverPath"
- Data="F1 M 541.537,173.589L 531.107,173.589L 536.322,167.49L 541.537,173.589 Z "
- Height="4"
- Stretch="Uniform"
- Width="6"
- UseLayoutRounding="False"
- Opacity="0"
- Margin="1,0,0,0">
- <Path.Fill>
- <SolidColorBrush Color="{DynamicResource BlackColor}" />
- </Path.Fill>
- </Path>
- <Path x:Name="Blur"
- Data="F1 M 541.537,173.589L 531.107,173.589L 536.322,167.49L 541.537,173.589 Z "
- Height="4"
- Stretch="Uniform"
- Width="6"
- UseLayoutRounding="False"
- Opacity="0"
- Margin="1,0,0,0">
- <Path.Effect>
- <BlurEffect />
- </Path.Effect>
- <Path.Fill>
- <SolidColorBrush Color="{DynamicResource BlackColor}" />
- </Path.Fill>
- </Path>
- </Grid>
</ControlTemplate>
<ControlTemplate x:Key="VerticalThumbTemplate"
TargetType="Thumb">
@@ -581,14 +407,6 @@
<SolidColorBrush Color="{DynamicResource Gray4}" />
</Border.BorderBrush>
</Border>
- <RepeatButton x:Name="VerticalSmallDecrease"
- Command="ScrollBar.LineUpCommand"
- Height="16"
- IsTabStop="False"
- Interval="50"
- Margin="1"
- Grid.Row="0"
- Template="{DynamicResource VerticalDecrementTemplate}" />
<Track x:Name="PART_Track"
MinHeight="60"
IsDirectionReversed="true"
@@ -617,14 +435,6 @@
Template="{DynamicResource RepeatButtonTemplate}" />
</Track.IncreaseRepeatButton>
</Track>
- <RepeatButton x:Name="VerticalSmallIncrease"
- Command="ScrollBar.LineDownCommand"
- Height="16"
- IsTabStop="False"
- Interval="50"
- Margin="1"
- Grid.Row="2"
- Template="{DynamicResource VerticalIncrementTemplate}" />
</Grid>
</Grid>
</ControlTemplate>

0 comments on commit 1d38f09

Please sign in to comment.