-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* - Replace fluent theme with semi for data grids. - Fix selection highlighting in hex-editor - Centralize Spice86 theming additions and overrides. - Add hyperlink style * Whitespace formatting
- Loading branch information
1 parent
4beb477
commit 716ff19
Showing
3 changed files
with
47 additions
and
6 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
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,37 @@ | ||
<Styles xmlns="https://github.com/avaloniaui" | ||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"> | ||
|
||
<Design.PreviewWith> | ||
<ThemeVariantScope RequestedThemeVariant="Dark"> | ||
<Border Padding="20"> | ||
<StackPanel> | ||
<Button Content="This is a "hyperlink"" Classes="hyperlink" /> | ||
<TextBlock Foreground="{DynamicResource HighlightColor}">This is highlighted</TextBlock> | ||
</StackPanel> | ||
</Border> | ||
</ThemeVariantScope> | ||
</Design.PreviewWith> | ||
|
||
<Style Selector="Button.hyperlink"> | ||
<Setter Property="Template"> | ||
<ControlTemplate> | ||
<TextBlock Text="{TemplateBinding Content}" Foreground="{StaticResource SystemAccentColor}" TextDecorations="Underline"> | ||
<TextBlock.Styles> | ||
<Style Selector="TextBlock:pointerover"> | ||
<Setter Property="Foreground" Value="{StaticResource SystemAccentColorLight1}" /> | ||
</Style> | ||
</TextBlock.Styles> | ||
</TextBlock> | ||
</ControlTemplate> | ||
</Setter> | ||
<Setter Property="Background" Value="Transparent" /> | ||
<Setter Property="BorderThickness" Value="0" /> | ||
</Style> | ||
|
||
<Style> | ||
<Style.Resources> | ||
<SolidColorBrush x:Key="HighlightColor">Yellow</SolidColorBrush> | ||
</Style.Resources> | ||
</Style> | ||
|
||
</Styles> |