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 @@
@@ -1,28 +1,34 @@
|
||||
<?xml version="1.0"?> |
||||
<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> |
||||
<Span foreground="Green" fontWeight="bold"> |
||||
<Span color="FileName"> |
||||
<Begin>Index:\s</Begin> |
||||
</Span> |
||||
<Span foreground="DarkRed"> |
||||
<Span color="Header"> |
||||
<Begin>==</Begin> |
||||
</Span> |
||||
<Span foreground="DarkRed"> |
||||
<Span color="Header"> |
||||
<Begin>---</Begin> |
||||
</Span> |
||||
<Span foreground="DarkRed"> |
||||
<Span color="Header"> |
||||
<Begin>\+\+\+</Begin> |
||||
</Span> |
||||
<Span foreground="Purple"> |
||||
<Begin>@</Begin> |
||||
<Begin>@@</Begin> |
||||
</Span> |
||||
<Span foreground="#FF339966"> |
||||
<Span color="RemovedText"> |
||||
<Begin>-</Begin> |
||||
</Span> |
||||
<Span foreground="Navy"> |
||||
<Span color="AddedText"> |
||||
<Begin>\+</Begin> |
||||
</Span> |
||||
<Span foreground="SystemColors.WindowText"> |
||||
<Span color="UnchangedText"> |
||||
<Begin>\s</Begin> |
||||
</Span> |
||||
</RuleSet> |
||||
|
@ -1,15 +1,21 @@
@@ -1,15 +1,21 @@
|
||||
<UserControl x:Class="ICSharpCode.SharpDevelop.Gui.ColorPicker" 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.Template> |
||||
<ControlTemplate TargetType="{x:Type Button}"> |
||||
<Border CornerRadius="3" BorderBrush="Black" BorderThickness="1.5" Background="{TemplateBinding Background}"> |
||||
<ContentPresenter Content="{TemplateBinding Content}" |
||||
HorizontalAlignment="Center" VerticalAlignment="Center" /> |
||||
</Border> |
||||
</ControlTemplate> |
||||
</Button.Template> |
||||
<?xml version="1.0" encoding="utf-8"?> |
||||
<UserControl |
||||
x:Class="ICSharpCode.SharpDevelop.Gui.ColorPicker" |
||||
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" |
||||
Padding="2" |
||||
HorizontalContentAlignment="Stretch" |
||||
VerticalContentAlignment="Stretch"> |
||||
<Border |
||||
BorderBrush="Black" |
||||
BorderThickness="1" |
||||
Padding="1" |
||||
Name="border"> |
||||
<TextBlock |
||||
Name="textBlock" |
||||
TextAlignment="Center" /> |
||||
</Border> |
||||
</Button> |
||||
</UserControl> |
Loading…
Reference in new issue