Browse Source

remove hard-coded magnifier - added to resource + fix the VisualizerPicker.xaml

pull/15/head
Eusebiu Marcu 15 years ago
parent
commit
7091c64e9f
  1. 0
      data/resources/image/BitmapResources/BitmapResources-data/magnifier.png
  2. 1
      data/resources/image/BitmapResources/BitmapResources.res
  3. 1
      src/AddIns/Debugger/Debugger.AddIn/Debugger.AddIn.csproj
  4. 70
      src/AddIns/Debugger/Debugger.AddIn/Tooltips/VisualizerPicker.xaml
  5. BIN
      src/Main/StartUp/Project/Resources/BitmapResources.resources

0
src/AddIns/Debugger/Debugger.AddIn/Tooltips/magnifier.png → data/resources/image/BitmapResources/BitmapResources-data/magnifier.png

Before

Width:  |  Height:  |  Size: 564 B

After

Width:  |  Height:  |  Size: 564 B

1
data/resources/image/BitmapResources/BitmapResources.res

@ -227,6 +227,7 @@ Icons.16x16.HtmlElements.FieldSetElement = BitmapResources-data\Icons.1
Icons.16x16.SplitWindow = BitmapResources-data\Icons.16x16.SplitWindow.png Icons.16x16.SplitWindow = BitmapResources-data\Icons.16x16.SplitWindow.png
Icons.16x16.DeleteHistory = BitmapResources-data\Icons.16x16.DeleteHistory.png Icons.16x16.DeleteHistory = BitmapResources-data\Icons.16x16.DeleteHistory.png
Icons.16x16.Refresh = BitmapResources-data\Icons.16x16.Refresh.png Icons.16x16.Refresh = BitmapResources-data\Icons.16x16.Refresh.png
Icons.Magnifier = BitmapResources-data\magnifier.png
#pad icons #pad icons
PadIcons.ErrorList = PadIcons\ErrorList.png PadIcons.ErrorList = PadIcons\ErrorList.png

1
src/AddIns/Debugger/Debugger.AddIn/Debugger.AddIn.csproj

@ -319,7 +319,6 @@
<Compile Include="Visualizers\PresentationBindings\EnumViewModel.cs" /> <Compile Include="Visualizers\PresentationBindings\EnumViewModel.cs" />
<Compile Include="Visualizers\PresentationBindings\ViewModelBase.cs" /> <Compile Include="Visualizers\PresentationBindings\ViewModelBase.cs" />
<None Include="COPYING" /> <None Include="COPYING" />
<None Include="Tooltips\magnifier.png" />
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<Content Include="Debugger.AddIn.addin"> <Content Include="Debugger.AddIn.addin">

70
src/AddIns/Debugger/Debugger.AddIn/Tooltips/VisualizerPicker.xaml

@ -1,28 +1,26 @@
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" <ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:Microsoft_Windows_Themes="clr-namespace:Microsoft.Windows.Themes;assembly=PresentationFramework.Aero" xmlns:Microsoft_Windows_Themes="clr-namespace:Microsoft.Windows.Themes;assembly=PresentationFramework.Aero"
xmlns:debugging="clr-namespace:Debugger.AddIn.Tooltips"> xmlns:debugging="clr-namespace:Debugger.AddIn.Tooltips"
xmlns:core="http://icsharpcode.net/sharpdevelop/core">
<BitmapImage x:Key="MagnifierImage" UriSource="magnifier.png" /> <Style x:Key="ComboBoxFocusVisual">
<Setter Property="Control.Template">
<Style x:Key="ComboBoxFocusVisual"> <Setter.Value>
<Setter Property="Control.Template"> <ControlTemplate>
<Setter.Value> <Rectangle Stroke="Black" StrokeDashArray="1 2" StrokeThickness="1" Margin="4,4,21,4" SnapsToDevicePixels="true"/>
<ControlTemplate> </ControlTemplate>
<Rectangle Stroke="Black" StrokeDashArray="1 2" StrokeThickness="1" Margin="4,4,21,4" SnapsToDevicePixels="true"/> </Setter.Value>
</ControlTemplate> </Setter>
</Setter.Value> </Style>
</Setter> <LinearGradientBrush x:Key="ButtonNormalBackground" EndPoint="0,1" StartPoint="0,0">
</Style> <GradientStop Color="#F3F3F3" Offset="0"/>
<LinearGradientBrush x:Key="ButtonNormalBackground" EndPoint="0,1" StartPoint="0,0"> <GradientStop Color="#EBEBEB" Offset="0.5"/>
<GradientStop Color="#F3F3F3" Offset="0"/> <GradientStop Color="#DDDDDD" Offset="0.5"/>
<GradientStop Color="#EBEBEB" Offset="0.5"/> <GradientStop Color="#CDCDCD" Offset="1"/>
<GradientStop Color="#DDDDDD" Offset="0.5"/> </LinearGradientBrush>
<GradientStop Color="#CDCDCD" Offset="1"/> <SolidColorBrush x:Key="ButtonNormalBorder" Color="#FF707070"/>
</LinearGradientBrush> <Geometry x:Key="DownArrowGeometry">M 0 0 L 2 3 L 4 0 Z</Geometry>
<SolidColorBrush x:Key="ButtonNormalBorder" Color="#FF707070"/> <Style x:Key="ComboBoxReadonlyToggleButton" TargetType="{x:Type ToggleButton}">
<Geometry x:Key="DownArrowGeometry">M 0 0 L 2 3 L 4 0 Z</Geometry>
<Style x:Key="ComboBoxReadonlyToggleButton" TargetType="{x:Type ToggleButton}">
<Setter Property="OverridesDefaultStyle" Value="true"/> <Setter Property="OverridesDefaultStyle" Value="true"/>
<Setter Property="IsTabStop" Value="false"/> <Setter Property="IsTabStop" Value="false"/>
<Setter Property="Focusable" Value="false"/> <Setter Property="Focusable" Value="false"/>
@ -40,7 +38,7 @@
</Grid.ColumnDefinitions> </Grid.ColumnDefinitions>
<!-- <!--
<Rectangle Width="10" Height="10" Grid.Column="0" Fill="Black"></Rectangle> --> <Rectangle Width="10" Height="10" Grid.Column="0" Fill="Black"></Rectangle> -->
<Image Grid.Column="0" Width="10" Height="10" Stretch="Fill" Source="{StaticResource MagnifierImage}" /> <Image Grid.Column="0" Width="10" Height="10" Stretch="Fill" Source="{core:GetBitmap Icons.Magnifier}" />
<Path Grid.Column="1" x:Name="Arrow" Fill="Black" HorizontalAlignment="Center" Margin="0" VerticalAlignment="Center" Data="{StaticResource DownArrowGeometry}"/> <Path Grid.Column="1" x:Name="Arrow" Fill="Black" HorizontalAlignment="Center" Margin="0" VerticalAlignment="Center" Data="{StaticResource DownArrowGeometry}"/>
</Grid> </Grid>
</Border> </Border>
@ -52,8 +50,8 @@
<Trigger Property="IsMouseOver" Value="true"> <Trigger Property="IsMouseOver" Value="true">
<Setter TargetName="FaceBorder" Property="Background" Value="White"/> <Setter TargetName="FaceBorder" Property="Background" Value="White"/>
<Setter TargetName="FaceBorder" Property="BorderBrush" Value="#FFE0EDFF"/> <Setter TargetName="FaceBorder" Property="BorderBrush" Value="#FFE0EDFF"/>
<!-- #FFE0EDFF border --> <!-- #FFE0EDFF border -->
<!-- #FFD9D9E9 fill --> <!-- #FFD9D9E9 fill -->
</Trigger> </Trigger>
</ControlTemplate.Triggers> </ControlTemplate.Triggers>
</ControlTemplate> </ControlTemplate>
@ -97,16 +95,16 @@
<!-- Content of ComboBox face --> <!-- Content of ComboBox face -->
<ContentPresenter <ContentPresenter
HorizontalAlignment="Left" HorizontalAlignment="Left"
Margin="0" Margin="0"
VerticalAlignment="Center" VerticalAlignment="Center"
IsHitTestVisible="false" IsHitTestVisible="false"
SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}"
ContentStringFormat="{TemplateBinding SelectionBoxItemStringFormat}" ContentStringFormat="{TemplateBinding SelectionBoxItemStringFormat}"
Content=" " Content=" "
ContentTemplate="{TemplateBinding SelectionBoxItemTemplate}" ContentTemplate="{TemplateBinding SelectionBoxItemTemplate}"
ContentTemplateSelector="{TemplateBinding ItemTemplateSelector}"/> ContentTemplateSelector="{TemplateBinding ItemTemplateSelector}"/>
</Grid> </Grid>
<ControlTemplate.Triggers> <ControlTemplate.Triggers>
<Trigger Property="HasDropShadow" SourceName="PART_Popup" Value="true"> <Trigger Property="HasDropShadow" SourceName="PART_Popup" Value="true">

BIN
src/Main/StartUp/Project/Resources/BitmapResources.resources

Binary file not shown.
Loading…
Cancel
Save