Browse Source
Fixed FxCop issues in AvalonEdit. Still missing in highlighting editor: - edit environment colors (normal text, line number margin, etc.) - support all syntax definitions shipping with SharpDevelop git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@5575 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61pull/1/head
13 changed files with 141 additions and 140 deletions
@ -1,28 +1,34 @@ |
|||||||
<?xml version="1.0"?> |
<?xml version="1.0"?> |
||||||
<SyntaxDefinition name="Patch" extensions=".patch;.diff" xmlns="http://icsharpcode.net/sharpdevelop/syntaxdefinition/2008"> |
<SyntaxDefinition name="Patch" extensions=".patch;.diff" xmlns="http://icsharpcode.net/sharpdevelop/syntaxdefinition/2008"> |
||||||
|
<Color name="AddedText" foreground="Navy" exampleText="+added" /> |
||||||
|
<Color name="RemovedText" foreground="#FF339966" exampleText="-removed" /> |
||||||
|
<Color name="UnchangedText" exampleText=" unchanged" /> |
||||||
|
<Color name="Position" foreground="Navy" exampleText="@@ -186,6 +186,12 @@" /> |
||||||
|
<Color name="Header" foreground="DarkRed" exampleText="--- (oldversion) +++ (newversion)" /> |
||||||
|
<Color name="FileName" foreground="Green" fontWeight="bold" exampleText="Index: path/to/file" /> |
||||||
<RuleSet> |
<RuleSet> |
||||||
<Span foreground="Green" fontWeight="bold"> |
<Span color="FileName"> |
||||||
<Begin>Index:\s</Begin> |
<Begin>Index:\s</Begin> |
||||||
</Span> |
</Span> |
||||||
<Span foreground="DarkRed"> |
<Span color="Header"> |
||||||
<Begin>==</Begin> |
<Begin>==</Begin> |
||||||
</Span> |
</Span> |
||||||
<Span foreground="DarkRed"> |
<Span color="Header"> |
||||||
<Begin>---</Begin> |
<Begin>---</Begin> |
||||||
</Span> |
</Span> |
||||||
<Span foreground="DarkRed"> |
<Span color="Header"> |
||||||
<Begin>\+\+\+</Begin> |
<Begin>\+\+\+</Begin> |
||||||
</Span> |
</Span> |
||||||
<Span foreground="Purple"> |
<Span foreground="Purple"> |
||||||
<Begin>@</Begin> |
<Begin>@@</Begin> |
||||||
</Span> |
</Span> |
||||||
<Span foreground="#FF339966"> |
<Span color="RemovedText"> |
||||||
<Begin>-</Begin> |
<Begin>-</Begin> |
||||||
</Span> |
</Span> |
||||||
<Span foreground="Navy"> |
<Span color="AddedText"> |
||||||
<Begin>\+</Begin> |
<Begin>\+</Begin> |
||||||
</Span> |
</Span> |
||||||
<Span foreground="SystemColors.WindowText"> |
<Span color="UnchangedText"> |
||||||
<Begin>\s</Begin> |
<Begin>\s</Begin> |
||||||
</Span> |
</Span> |
||||||
</RuleSet> |
</RuleSet> |
||||||
|
@ -1,15 +1,21 @@ |
|||||||
<UserControl x:Class="ICSharpCode.SharpDevelop.Gui.ColorPicker" x:Name="colorPicker" |
<?xml version="1.0" encoding="utf-8"?> |
||||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" |
<UserControl |
||||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
x:Class="ICSharpCode.SharpDevelop.Gui.ColorPicker" |
||||||
xmlns:local="clr-namespace:ICSharpCode.SharpDevelop.Gui"> |
x:Name="colorPicker" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:local="clr-namespace:ICSharpCode.SharpDevelop.Gui"> |
||||||
<Button Name="button" Click="ButtonClick"> |
<Button |
||||||
<Button.Template> |
Name="button" |
||||||
<ControlTemplate TargetType="{x:Type Button}"> |
Click="ButtonClick" |
||||||
<Border CornerRadius="3" BorderBrush="Black" BorderThickness="1.5" Background="{TemplateBinding Background}"> |
Padding="2" |
||||||
<ContentPresenter Content="{TemplateBinding Content}" |
HorizontalContentAlignment="Stretch" |
||||||
HorizontalAlignment="Center" VerticalAlignment="Center" /> |
VerticalContentAlignment="Stretch"> |
||||||
</Border> |
<Border |
||||||
</ControlTemplate> |
BorderBrush="Black" |
||||||
</Button.Template> |
BorderThickness="1" |
||||||
|
Padding="1" |
||||||
|
Name="border"> |
||||||
|
<TextBlock |
||||||
|
Name="textBlock" |
||||||
|
TextAlignment="Center" /> |
||||||
|
</Border> |
||||||
</Button> |
</Button> |
||||||
</UserControl> |
</UserControl> |
Loading…
Reference in new issue