Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Assembly Browser: Changed navigation arrows disabled color, selected …

…assembly appearance
  • Loading branch information...
commit 8300e8fab78ed605731a0c5161fc55a00a144908 1 parent 3b3c465
@denismarkelov authored
View
1  .gitignore
@@ -9,3 +9,4 @@ build/reflector
_ReSharper*/
*.ReSharper
*.patch
+*.jtconfig
View
43 sources/AssemblyVisualizer/AssemblyBrowser/AssemblyBrowserWindow.xaml
@@ -54,13 +54,10 @@
<ColumnDefinition/>
<ColumnDefinition/>
</Grid.ColumnDefinitions>
- <Button Style="{StaticResource ImageButtonStyle}"
- Width="42"
- Height="42"
- Background="{StaticResource LeftArrowDrawing}"
+ <Button Width="42"
+ Height="42"
Margin="0, 0, 8, 0"
- Command="{Binding NavigateBackCommand}"
- IsEnabled="{Binding CanNavigateBack}">
+ Command="{Binding NavigateBackCommand}">
<Button.ToolTip>
<TextBlock>
<TextBlock Text="{Binding NavigateBackHint}"/>
@@ -69,16 +66,24 @@
FontWeight="Bold"/>
</TextBlock>
</Button.ToolTip>
+ <Button.Style>
+ <Style BasedOn="{StaticResource ImageButtonStyle}"
+ TargetType="{x:Type Button}">
+ <Setter Property="Background" Value="{StaticResource LeftArrowDrawing}"/>
+ <Style.Triggers>
+ <DataTrigger Binding="{Binding CanNavigateBack}" Value="False">
+ <Setter Property="Background" Value="{StaticResource LeftGrayArrowDrawing}"/>
+ <Setter Property="IsEnabled" Value="False"/>
+ </DataTrigger>
+ </Style.Triggers>
+ </Style>
+ </Button.Style>
</Button>
- <Button Style="{StaticResource ImageButtonStyle}"
- Width="42"
+ <Button Width="42"
Height="42"
- Grid.Column="1"
- Background="{StaticResource RightArrowDrawing}"
- Command="{Binding NavigateForwardCommand}"
- IsEnabled="{Binding CanNavigateForward}"
- >
+ Grid.Column="1"
+ Command="{Binding NavigateForwardCommand}">
<Button.ToolTip>
<TextBlock>
<TextBlock Text="{Binding NavigateForwardHint}"/>
@@ -87,6 +92,18 @@
FontWeight="Bold"/>
</TextBlock>
</Button.ToolTip>
+ <Button.Style>
+ <Style BasedOn="{StaticResource ImageButtonStyle}"
+ TargetType="{x:Type Button}">
+ <Setter Property="Background" Value="{StaticResource RightArrowDrawing}"/>
+ <Style.Triggers>
+ <DataTrigger Binding="{Binding CanNavigateForward}" Value="False">
+ <Setter Property="Background" Value="{StaticResource RightGrayArrowDrawing}"/>
+ <Setter Property="IsEnabled" Value="False"/>
+ </DataTrigger>
+ </Style.Triggers>
+ </Style>
+ </Button.Style>
</Button>
</Grid>
</Grid>
View
12 sources/AssemblyVisualizer/AssemblyBrowser/Screens/SearchScreenView.xaml
@@ -99,7 +99,17 @@
</DataTrigger>
<DataTrigger Binding="{Binding IsSelected}" Value="True">
<Setter TargetName="brd" Property="BorderBrush" Value="Green"/>
- <Setter TargetName="brd" Property="Background" Value="#88D6FFC9"/>
+ <Setter TargetName="brd" Property="TextElement.Foreground" Value="Green"/>
+ <!--<Setter TargetName="brd" Property="BorderBrush" Value="#AABBAA"/>
+ <Setter TargetName="brd" Property="Background">
+ <Setter.Value>
+ <RadialGradientBrush Center="0.8,0.2" RadiusX="0.8" RadiusY="0.8" GradientOrigin="0.8,0.2">
+ <GradientStop Color="#DDFFDD" Offset="0.3"/>
+ <GradientStop Color="#CCEECC" Offset="0.9"/>
+ <GradientStop Color="#BBDDBB" Offset="1"/>
+ </RadialGradientBrush>
+ </Setter.Value>
+ </Setter>-->
</DataTrigger>
</ControlTemplate.Triggers>
</ControlTemplate>
View
2  sources/AssemblyVisualizer/Common/ControlStylesDictionary.xaml
@@ -41,7 +41,7 @@
</Setter>
</Trigger>
<Trigger Property="IsEnabled" Value="False">
- <Setter TargetName="brdImage" Property="Opacity" Value="0.3"/>
+ <Setter TargetName="brdImage" Property="Opacity" Value="0.4"/>
</Trigger>
</ControlTemplate.Triggers>
</ControlTemplate>
View
88 sources/AssemblyVisualizer/Common/ImagesDictionary.xaml
@@ -44,6 +44,50 @@
</DrawingBrush.Drawing>
</DrawingBrush>
+ <!--Left gray arrow-->
+ <DrawingBrush x:Key="LeftGrayArrowDrawing" Stretch="Uniform">
+ <DrawingBrush.Drawing>
+ <DrawingGroup>
+ <DrawingGroup>
+ <DrawingGroup Transform="-1.27118599414825,0,0,1.27118599414825,56.195140838623,-15.2785701751709">
+ <GeometryDrawing Geometry="M40.482,36.421A15.645,8.397,0.000,1,1,9.192,36.421A15.645,8.397,0.000,1,1,40.482,36.421z">
+ <GeometryDrawing.Brush>
+ <RadialGradientBrush Center="24.837,36.421" RadiusX="15.645" RadiusY="15.645" GradientOrigin="24.837,36.421" MappingMode="Absolute" Transform="1,0,0,0.536723017692566,6.77279540163187E-15,16.8730602264404">
+ <GradientStop Color="Black" Offset="0" ></GradientStop>
+ <GradientStop Color="#00000000" Offset="1" ></GradientStop>
+ </RadialGradientBrush>
+ </GeometryDrawing.Brush>
+ </GeometryDrawing>
+ </DrawingGroup>
+ <GeometryDrawing Geometry="F1M39.490,15.497L39.490,32.491 26.538,32.491 26.538,40.974 6.578,23.974 26.532,6.730 26.532,15.502 39.490,15.497z">
+ <GeometryDrawing.Brush>
+ <RadialGradientBrush Center="22.292,32.798" RadiusX="16.956" RadiusY="16.956" GradientOrigin="22.292,32.798" MappingMode="Absolute" Transform="-0.843021988868713,1.87188497696357E-16,2.26522815177606E-16,1.02016794681549,43.5764617919922,1.2052149772644">
+ <GradientStop Color="#FF999999" Offset="0" ></GradientStop>
+ <GradientStop Color="#FF666666" Offset="1" ></GradientStop>
+ </RadialGradientBrush>
+ </GeometryDrawing.Brush>
+ <GeometryDrawing.Pen>
+ <Pen Brush="#FF444444" Thickness="1" StartLineCap="Round" EndLineCap="Round" DashCap="Round" LineJoin="Round" ></Pen>
+ </GeometryDrawing.Pen>
+ </GeometryDrawing>
+ <GeometryDrawing Geometry="F1M25.988,7.978L25.988,16.034 38.931,16.034 38.931,24.919C22.181,18.669,22.797,30.214,7.547,23.964L25.988,7.978z">
+ <GeometryDrawing.Brush>
+ <RadialGradientBrush Center="25.076,5.786" RadiusX="17.171" RadiusY="17.171" GradientOrigin="25.076,5.786" MappingMode="Absolute" Transform="-2.04672908782959,-3.74942707522362E-16,-2.8534041245803E-16,1.55761003494263,67.59375,3.27530908584595">
+ <GradientStop Color="White" Offset="0" ></GradientStop>
+ <GradientStop Color="Transparent" Offset="1" ></GradientStop>
+ </RadialGradientBrush>
+ </GeometryDrawing.Brush>
+ </GeometryDrawing>
+ <GeometryDrawing Geometry="F1M38.476,16.541L38.476,31.463 25.490,31.463 25.490,38.765 8.168,23.969 25.506,9.064 25.506,16.546 38.476,16.541z">
+ <GeometryDrawing.Pen>
+ <Pen Brush="#7BFFFFFF" Thickness="1" ></Pen>
+ </GeometryDrawing.Pen>
+ </GeometryDrawing>
+ </DrawingGroup>
+ </DrawingGroup>
+ </DrawingBrush.Drawing>
+ </DrawingBrush>
+
<!--Right arrow-->
<DrawingBrush x:Key="RightArrowDrawing" Stretch="Uniform">
<DrawingBrush.Drawing>
@@ -88,6 +132,50 @@
</DrawingBrush.Drawing>
</DrawingBrush>
+ <!--Right gray arrow-->
+ <DrawingBrush x:Key="RightGrayArrowDrawing" Stretch="Uniform">
+ <DrawingBrush.Drawing>
+ <DrawingGroup>
+ <DrawingGroup>
+ <DrawingGroup Transform="1.27118599414825,0,0,1.27118599414825,-8.11937618255615,-15.1017904281616">
+ <GeometryDrawing Geometry="M40.482,36.421A15.645,8.397,0.000,1,1,9.192,36.421A15.645,8.397,0.000,1,1,40.482,36.421z">
+ <GeometryDrawing.Brush>
+ <RadialGradientBrush Center="24.837,36.421" RadiusX="15.645" RadiusY="15.645" GradientOrigin="24.837,36.421" MappingMode="Absolute" Transform="1,0,0,0.536723017692566,2.51101201971819E-15,16.8730602264404">
+ <GradientStop Color="Black" Offset="0" ></GradientStop>
+ <GradientStop Color="#00000000" Offset="1" ></GradientStop>
+ </RadialGradientBrush>
+ </GeometryDrawing.Brush>
+ </GeometryDrawing>
+ </DrawingGroup>
+ <GeometryDrawing Geometry="F1M8.554,15.517L8.554,32.512 21.538,32.512 21.538,41.057 41.498,24.150 21.419,7.125 21.419,15.523 8.554,15.517z">
+ <GeometryDrawing.Brush>
+ <RadialGradientBrush Center="22.292,32.798" RadiusX="16.956" RadiusY="16.956" GradientOrigin="22.292,32.798" MappingMode="Absolute" Transform="0.843021988868713,1.87188497696357E-16,-2.26522815177606E-16,1.02016794681549,4.49929809570313,1.38199198246002">
+ <GradientStop Color="#FF999999" Offset="0" ></GradientStop>
+ <GradientStop Color="#FF666666" Offset="1" ></GradientStop>
+ </RadialGradientBrush>
+ </GeometryDrawing.Brush>
+ <GeometryDrawing.Pen>
+ <Pen Brush="#FF444444" Thickness="1" StartLineCap="Round" EndLineCap="Round" DashCap="Round" LineJoin="Round" ></Pen>
+ </GeometryDrawing.Pen>
+ </GeometryDrawing>
+ <GeometryDrawing Geometry="F1M21.962,8.249L21.962,16.055 9.145,16.055 9.145,25.096C26.895,27.096,25.779,17.640,40.529,24.140L21.962,8.249z">
+ <GeometryDrawing.Brush>
+ <RadialGradientBrush Center="19.701,2.897" RadiusX="17.171" RadiusY="17.171" GradientOrigin="19.701,2.897" MappingMode="Absolute" Transform="2.04672908782959,-3.74942707522362E-16,2.8534041245803E-16,1.55761003494263,-19.5179901123047,3.45208597183228">
+ <GradientStop Color="White" Offset="0" ></GradientStop>
+ <GradientStop Color="Transparent" Offset="1" ></GradientStop>
+ </RadialGradientBrush>
+ </GeometryDrawing.Brush>
+ </GeometryDrawing>
+ <GeometryDrawing Geometry="F1M9.538,16.562L9.538,31.546 22.523,31.546 22.523,38.941 40.001,24.146 22.507,9.365 22.507,16.567 9.538,16.562z">
+ <GeometryDrawing.Pen>
+ <Pen Brush="#7BFFFFFF" Thickness="1" ></Pen>
+ </GeometryDrawing.Pen>
+ </GeometryDrawing>
+ </DrawingGroup>
+ </DrawingGroup>
+ </DrawingBrush.Drawing>
+ </DrawingBrush>
+
<!--Down arrow-->
<DrawingBrush x:Key="DownArrowDrawing" Stretch="Uniform">
<DrawingBrush.Drawing>
Please sign in to comment.
Something went wrong with that request. Please try again.