-
Notifications
You must be signed in to change notification settings - Fork 151
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #354 from AvaloniaUI/styling-adjustments
Styling adjustments
- Loading branch information
Showing
17 changed files
with
145 additions
and
128 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 8 additions & 0 deletions
8
src/AvaloniaEdit/CodeCompletion/CompletionTipContentControl.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
using Avalonia.Controls; | ||
|
||
namespace AvaloniaEdit.CodeCompletion; | ||
|
||
public class CompletionTipContentControl : ContentControl | ||
{ | ||
|
||
} |
30 changes: 30 additions & 0 deletions
30
src/AvaloniaEdit/CodeCompletion/CompletionTipContentControl.xaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
<ResourceDictionary xmlns="https://github.com/avaloniaui" | ||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | ||
xmlns:codeCompletion="using:AvaloniaEdit.CodeCompletion" | ||
x:ClassModifier="internal"> | ||
|
||
<!-- Style used for tooltip next to completion list box. --> | ||
<ControlTheme x:Key="{x:Type codeCompletion:CompletionTipContentControl}" | ||
TargetType="{x:Type codeCompletion:CompletionTipContentControl}"> | ||
<Setter Property="BorderThickness" Value="{DynamicResource CompletionToolTipBorderThickness}" /> | ||
<Setter Property="BorderBrush" Value="{DynamicResource CompletionToolTipBorderBrush}" /> | ||
<Setter Property="Background" Value="{DynamicResource CompletionToolTipBackground}" /> | ||
<Setter Property="Foreground" Value="{DynamicResource CompletionToolTipForeground}" /> | ||
<Setter Property="Padding" Value="4,2" /> | ||
<Setter Property="Template"> | ||
<ControlTemplate> | ||
<ContentPresenter Name="PART_ContentPresenter" | ||
Background="{TemplateBinding Background}" | ||
BorderBrush="{TemplateBinding BorderBrush}" | ||
BorderThickness="{TemplateBinding BorderThickness}" | ||
CornerRadius="{TemplateBinding CornerRadius}" | ||
ContentTemplate="{TemplateBinding ContentTemplate}" | ||
Content="{TemplateBinding Content}" | ||
Padding="{TemplateBinding Padding}" | ||
VerticalContentAlignment="{TemplateBinding VerticalContentAlignment}" | ||
HorizontalContentAlignment="{TemplateBinding HorizontalContentAlignment}"/> | ||
</ControlTemplate> | ||
</Setter> | ||
</ControlTheme> | ||
|
||
</ResourceDictionary> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<ResourceDictionary xmlns="https://github.com/avaloniaui" | ||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"> | ||
<ResourceDictionary.MergedDictionaries> | ||
<MergeResourceInclude Source="/TextEditor.xaml" /> | ||
<MergeResourceInclude Source="/Editing/TextArea.xaml" /> | ||
<MergeResourceInclude Source="/CodeCompletion/CompletionTipContentControl.xaml" /> | ||
<MergeResourceInclude Source="/CodeCompletion/CompletionList.xaml" /> | ||
<MergeResourceInclude Source="/CodeCompletion/InsightWindow.xaml" /> | ||
<MergeResourceInclude Source="/Search/SearchPanel.xaml" /> | ||
</ResourceDictionary.MergedDictionaries> | ||
</ResourceDictionary> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,39 @@ | ||
<Styles xmlns="https://github.com/avaloniaui"> | ||
<Styles xmlns="https://github.com/avaloniaui" | ||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"> | ||
<Styles.Resources> | ||
<ResourceDictionary> | ||
<StaticResource x:Key="SearchPanelFontSize" ResourceKey="ControlContentThemeFontSize" /> | ||
<StaticResource x:Key="SearchPanelFontFamily" ResourceKey="ContentControlThemeFontFamily" /> | ||
<ResourceDictionary.ThemeDictionaries> | ||
<ResourceDictionary x:Key="Default"> | ||
<StaticResource x:Key="CompletionToolTipBackground" ResourceKey="ToolTipBackground" /> | ||
<StaticResource x:Key="CompletionToolTipForeground" ResourceKey="ToolTipForeground" /> | ||
<StaticResource x:Key="CompletionToolTipBorderBrush" ResourceKey="ToolTipBorderBrush" /> | ||
<StaticResource x:Key="CompletionToolTipBorderThickness" ResourceKey="ToolTipBorderThemeThickness" /> | ||
<StaticResource x:Key="OverloadViewerBackground" ResourceKey="ToolTipBackground" /> | ||
<StaticResource x:Key="OverloadViewerForeground" ResourceKey="ToolTipForeground" /> | ||
<StaticResource x:Key="OverloadViewerBorderBrush" ResourceKey="ToolTipBorderBrush" /> | ||
<SolidColorBrush x:Key="SearchPanelBackgroundBrush" Color="{DynamicResource SystemChromeMediumColor}" /> | ||
<SolidColorBrush x:Key="SearchPanelBorderBrush" Color="{DynamicResource SystemBaseLowColor}" /> | ||
<SolidColorBrush x:Key="TextAreaSelectionBrush" Color="{DynamicResource SystemAccentColor}" /> | ||
</ResourceDictionary> | ||
<ResourceDictionary x:Key="Dark"> | ||
<StaticResource x:Key="CompletionToolTipBackground" ResourceKey="ToolTipBackground" /> | ||
<StaticResource x:Key="CompletionToolTipForeground" ResourceKey="ToolTipForeground" /> | ||
<StaticResource x:Key="CompletionToolTipBorderBrush" ResourceKey="ToolTipBorderBrush" /> | ||
<StaticResource x:Key="CompletionToolTipBorderThickness" ResourceKey="ToolTipBorderThemeThickness" /> | ||
<StaticResource x:Key="OverloadViewerBackground" ResourceKey="ToolTipBackground" /> | ||
<StaticResource x:Key="OverloadViewerForeground" ResourceKey="ToolTipForeground" /> | ||
<StaticResource x:Key="OverloadViewerBorderBrush" ResourceKey="ToolTipBorderBrush" /> | ||
<SolidColorBrush x:Key="SearchPanelBackgroundBrush" Color="{DynamicResource SystemChromeMediumColor}" /> | ||
<SolidColorBrush x:Key="SearchPanelBorderBrush" Color="{DynamicResource SystemBaseLowColor}" /> | ||
<SolidColorBrush x:Key="TextAreaSelectionBrush" Color="{DynamicResource SystemAccentColor}" /> | ||
</ResourceDictionary> | ||
</ResourceDictionary.ThemeDictionaries> | ||
|
||
<ResourceDictionary.MergedDictionaries> | ||
<ResourceInclude Source="/Themes/Fluent/Base.xaml" /> | ||
<ResourceInclude Source="/TextEditor.xaml" /> | ||
<ResourceInclude Source="/Editing/TextArea.xaml" /> | ||
<ResourceInclude Source="/CodeCompletion/CompletionList.xaml" /> | ||
<ResourceInclude Source="/CodeCompletion/InsightWindow.xaml" /> | ||
<ResourceInclude Source="/Search/SearchPanel.xaml" /> | ||
<ResourceInclude Source="../Base.xaml" /> | ||
</ResourceDictionary.MergedDictionaries> | ||
</ResourceDictionary> | ||
</Styles.Resources> | ||
|
||
<StyleInclude Source="/CodeCompletion/CompletionWindow.xaml" /> | ||
<StyleInclude Source="/Rendering/VisualLineDrawingVisual.xaml" /> | ||
</Styles> |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,39 @@ | ||
<Styles xmlns="https://github.com/avaloniaui"> | ||
<Styles xmlns="https://github.com/avaloniaui" | ||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"> | ||
<Styles.Resources> | ||
<ResourceDictionary> | ||
<StaticResource x:Key="SearchPanelFontSize" ResourceKey="FontSizeNormal" /> | ||
<StaticResource x:Key="SearchPanelFontFamily" ResourceKey="ContentControlThemeFontFamily" /> | ||
<ResourceDictionary.ThemeDictionaries> | ||
<ResourceDictionary x:Key="Default"> | ||
<StaticResource x:Key="CompletionToolTipBackground" ResourceKey="ThemeBackgroundBrush" /> | ||
<StaticResource x:Key="CompletionToolTipForeground" ResourceKey="ThemeForegroundColor" /> | ||
<StaticResource x:Key="CompletionToolTipBorderBrush" ResourceKey="ThemeBorderMidBrush" /> | ||
<StaticResource x:Key="CompletionToolTipBorderThickness" ResourceKey="ThemeBorderThickness" /> | ||
<StaticResource x:Key="OverloadViewerBackground" ResourceKey="ThemeBackgroundBrush" /> | ||
<StaticResource x:Key="OverloadViewerForeground" ResourceKey="ThemeForegroundColor" /> | ||
<StaticResource x:Key="OverloadViewerBorderBrush" ResourceKey="ThemeBorderMidBrush" /> | ||
<SolidColorBrush x:Key="SearchPanelBackgroundBrush" Color="{DynamicResource ThemeBackgroundColor}" /> | ||
<SolidColorBrush x:Key="SearchPanelBorderBrush" Color="{DynamicResource ThemeBorderLowColor}" /> | ||
<SolidColorBrush x:Key="TextAreaSelectionBrush" Color="{DynamicResource HighlightBrush}" /> | ||
</ResourceDictionary> | ||
<ResourceDictionary x:Key="Dark"> | ||
<StaticResource x:Key="CompletionToolTipBackground" ResourceKey="ThemeBackgroundBrush" /> | ||
<StaticResource x:Key="CompletionToolTipForeground" ResourceKey="ThemeForegroundColor" /> | ||
<StaticResource x:Key="CompletionToolTipBorderBrush" ResourceKey="ThemeBorderMidBrush" /> | ||
<StaticResource x:Key="CompletionToolTipBorderThickness" ResourceKey="ThemeBorderThickness" /> | ||
<StaticResource x:Key="OverloadViewerBackground" ResourceKey="ThemeBackgroundBrush" /> | ||
<StaticResource x:Key="OverloadViewerForeground" ResourceKey="ThemeForegroundColor" /> | ||
<StaticResource x:Key="OverloadViewerBorderBrush" ResourceKey="ThemeBorderMidBrush" /> | ||
<SolidColorBrush x:Key="SearchPanelBackgroundBrush" Color="{DynamicResource ThemeBackgroundColor}" /> | ||
<SolidColorBrush x:Key="SearchPanelBorderBrush" Color="{DynamicResource ThemeBorderLowColor}" /> | ||
<SolidColorBrush x:Key="TextAreaSelectionBrush" Color="{DynamicResource HighlightBrush}" /> | ||
</ResourceDictionary> | ||
</ResourceDictionary.ThemeDictionaries> | ||
|
||
<ResourceDictionary.MergedDictionaries> | ||
<ResourceInclude Source="/Themes/Simple/Base.xaml" /> | ||
<ResourceInclude Source="/TextEditor.xaml" /> | ||
<ResourceInclude Source="/Editing/TextArea.xaml" /> | ||
<ResourceInclude Source="/CodeCompletion/CompletionList.xaml" /> | ||
<ResourceInclude Source="/CodeCompletion/InsightWindow.xaml" /> | ||
<ResourceInclude Source="/Search/SearchPanel.xaml" /> | ||
<ResourceInclude Source="../Base.xaml" /> | ||
</ResourceDictionary.MergedDictionaries> | ||
</ResourceDictionary> | ||
</Styles.Resources> | ||
|
||
<StyleInclude Source="/CodeCompletion/CompletionWindow.xaml" /> | ||
<StyleInclude Source="/Rendering/VisualLineDrawingVisual.xaml" /> | ||
</Styles> |
Oops, something went wrong.