Skip to content

Commit

Permalink
Merge pull request #3194 from deanchalk/master
Browse files Browse the repository at this point in the history
#3185 - Oddness with Theming and Selection in InfiniteCanvas Control
  • Loading branch information
michael-hawker authored Mar 31, 2020
2 parents adf771e + 21d3d21 commit 45cdd25
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 21 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,22 +35,6 @@ protected override void OnApplyTemplate()
_editZone.TextChanged -= EditZone_TextChanged;
_editZone.TextChanged += EditZone_TextChanged;
_editZone.FontSize = FontSize;
_editZone.SelectionHighlightColorWhenNotFocused.Color = Color.FromArgb(
1,
_editZone.SelectionHighlightColor.Color.R,
_editZone.SelectionHighlightColor.Color.G,
_editZone.SelectionHighlightColor.Color.B);
_editZone.SelectionHighlightColorWhenNotFocused.Opacity = .1;

_editZone.SelectionHighlightColor.Color =
Color.FromArgb(
1,
_editZone.SelectionHighlightColor.Color.R,
_editZone.SelectionHighlightColor.Color.G,
_editZone.SelectionHighlightColor.Color.B);

_editZone.SelectionHighlightColor.Opacity = .1;

base.OnApplyTemplate();
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,11 @@
</InkToolbarCustomToolButton>
</InkToolbar>

<StackPanel Background="{ThemeResource SystemChromeMediumColor}"
<StackPanel Background="{ThemeResource SystemControlBackgroundChromeMediumBrush}"
Orientation="Horizontal">
<Grid Width="2"
Height="48"
Background="{ThemeResource SystemListMediumColor}" />
Background="{ThemeResource SystemControlBackgroundListMediumBrush}" />
<Button x:Name="EraseAllButton"
Style="{StaticResource CanvasTextBoxButtonStyle}"
ToolTipService.ToolTip="Erase All">
Expand All @@ -57,7 +57,7 @@
</Button>
</StackPanel>
<StackPanel x:Name="CanvasTextBoxTools"
Background="{ThemeResource SystemChromeMediumColor}"
Background="{ThemeResource SystemControlBackgroundChromeMediumBrush}"
Orientation="Horizontal"
Visibility="Collapsed">
<Grid Width="2"
Expand Down Expand Up @@ -157,14 +157,14 @@
TargetType="ToggleButton">
<Setter Property="Width" Value="48" />
<Setter Property="Height" Value="48" />
<Setter Property="Background" Value="{ThemeResource SystemChromeMediumColor}" />
<Setter Property="Background" Value="{ThemeResource SystemControlBackgroundChromeMediumBrush}" />
<Setter Property="Foreground" Value="{ThemeResource SystemControlForegroundBaseHighBrush}" />
</Style>
<Style x:Key="CanvasTextBoxButtonStyle"
TargetType="Button">
<Setter Property="Width" Value="48" />
<Setter Property="Height" Value="48" />
<Setter Property="Background" Value="{ThemeResource SystemChromeMediumColor}" />
<Setter Property="Background" Value="{ThemeResource SystemControlBackgroundChromeMediumBrush}" />
<Setter Property="Foreground" Value="{ThemeResource SystemControlForegroundBaseHighBrush}" />
</Style>

Expand Down

0 comments on commit 45cdd25

Please sign in to comment.