mirror of
https://github.com/Microsoft/calculator.git
synced 2025-08-23 06:25:19 -07:00
Merge pull request #23 from nventive/dev/madi/fix-button-themeing
Dev/madi/fix button themeing
This commit is contained in:
commit
6843d212c3
4 changed files with 1872 additions and 1859 deletions
|
@ -182,17 +182,29 @@
|
||||||
</ResourceDictionary.ThemeDictionaries>-->
|
</ResourceDictionary.ThemeDictionaries>-->
|
||||||
|
|
||||||
<!-- UNO TODO BEGIN THEME RESOURCES -->
|
<!-- UNO TODO BEGIN THEME RESOURCES -->
|
||||||
<Thickness x:Key="HighContrastThicknessTop">
|
<Thickness x:Key="HighContrastThicknessTop">0,0,0,0</Thickness>
|
||||||
0,0,0,0
|
|
||||||
</Thickness>
|
|
||||||
|
|
||||||
<x:Double x:Key="HighContrastStrokeThickness">
|
<x:Double x:Key="HighContrastStrokeThickness">0</x:Double>
|
||||||
0
|
|
||||||
</x:Double>
|
|
||||||
|
|
||||||
<Color x:Key="AltHighColor">#FFF2F2F2</Color>
|
<Color x:Key="AltHighColor">#FFF2F2F2</Color>
|
||||||
<Color x:Key="ChromeMediumLowColor">#FFE0E0E0</Color>
|
<Color x:Key="ChromeMediumLowColor">#FFE0E0E0</Color>
|
||||||
|
|
||||||
|
<Color x:Key="AccentPressColor">#FFB0DCFF</Color>
|
||||||
|
|
||||||
|
<Color x:Key="AccentHoverColor">#FF0077D7</Color>
|
||||||
|
|
||||||
|
<SolidColorBrush x:Key="AccentPressBackgroundColorBrush"
|
||||||
|
Color="{StaticResource AccentPressColor}" />
|
||||||
|
|
||||||
|
<SolidColorBrush x:Key="AccentHoverBackgroundColorBrush"
|
||||||
|
Color="{StaticResource AccentHoverColor}" />
|
||||||
|
|
||||||
|
<SolidColorBrush x:Key="AccentPressForegroundColorBrush"
|
||||||
|
Color="White" />
|
||||||
|
|
||||||
|
<SolidColorBrush x:Key="AccentHoverForegroundColorBrush"
|
||||||
|
Color="White" />
|
||||||
|
|
||||||
<SolidColorBrush x:Key="SystemControlBackgroundAltHighBrush"
|
<SolidColorBrush x:Key="SystemControlBackgroundAltHighBrush"
|
||||||
Color="{StaticResource AltHighColor}" />
|
Color="{StaticResource AltHighColor}" />
|
||||||
|
|
||||||
|
@ -249,8 +261,7 @@
|
||||||
<win:RevealBackgroundBrush x:Key="AppControlHighlightAltListAccentHighRevealBackgroundBrush"
|
<win:RevealBackgroundBrush x:Key="AppControlHighlightAltListAccentHighRevealBackgroundBrush"
|
||||||
TargetTheme="Dark"
|
TargetTheme="Dark"
|
||||||
Color="{ThemeResource SystemAccentColorDark3}"
|
Color="{ThemeResource SystemAccentColorDark3}"
|
||||||
FallbackColor="{ThemeResource SystemAccentColorDark3}"
|
FallbackColor="{ThemeResource SystemAccentColorDark3}" />
|
||||||
/>
|
|
||||||
|
|
||||||
<xamarin:SolidColorBrush x:Key="AppControlHighlightAltListAccentHighRevealBackgroundBrush"
|
<xamarin:SolidColorBrush x:Key="AppControlHighlightAltListAccentHighRevealBackgroundBrush"
|
||||||
Color="{ThemeResource SystemColorHighlightTextColor}" />
|
Color="{ThemeResource SystemColorHighlightTextColor}" />
|
||||||
|
@ -316,11 +327,11 @@
|
||||||
<Setter Property="Foreground"
|
<Setter Property="Foreground"
|
||||||
Value="{ThemeResource SystemControlForegroundBaseHighBrush}" />
|
Value="{ThemeResource SystemControlForegroundBaseHighBrush}" />
|
||||||
<Setter Property="HoverBackground"
|
<Setter Property="HoverBackground"
|
||||||
Value="{ThemeResource AppControlHoverButtonFaceBrush}" />
|
Value="{StaticResource AppControlHoverButtonFaceBrush}" />
|
||||||
<Setter Property="HoverForeground"
|
<Setter Property="HoverForeground"
|
||||||
Value="{ThemeResource SystemControlHighlightAltBaseHighBrush}" />
|
Value="{ThemeResource SystemControlHighlightAltBaseHighBrush}" />
|
||||||
<Setter Property="PressBackground"
|
<Setter Property="PressBackground"
|
||||||
Value="{ThemeResource AppControlPressedButtonFaceBrush}" />
|
Value="{StaticResource AppControlPressedButtonFaceBrush}" />
|
||||||
<Setter Property="PressForeground"
|
<Setter Property="PressForeground"
|
||||||
Value="{ThemeResource SystemControlHighlightAltBaseHighBrush}" />
|
Value="{ThemeResource SystemControlHighlightAltBaseHighBrush}" />
|
||||||
<Setter Property="BorderThickness"
|
<Setter Property="BorderThickness"
|
||||||
|
@ -563,16 +574,16 @@
|
||||||
<Style x:Key="AccentCalcButtonStyle"
|
<Style x:Key="AccentCalcButtonStyle"
|
||||||
BasedOn="{StaticResource SymbolOperatorButtonStyle}"
|
BasedOn="{StaticResource SymbolOperatorButtonStyle}"
|
||||||
TargetType="Controls:CalculatorButton">
|
TargetType="Controls:CalculatorButton">
|
||||||
<!--
|
|
||||||
UNO TODO
|
|
||||||
<Setter Property="HoverBackground"
|
<Setter Property="HoverBackground"
|
||||||
Value="{ThemeResource SystemControlHighlightAccentRevealBackgroundBrush}" />
|
Value="{StaticResource AccentHoverBackgroundColorBrush}" />
|
||||||
<Setter Property="HoverForeground"
|
<Setter Property="HoverForeground"
|
||||||
Value="{ThemeResource SystemControlHighlightAltAltHighBrush}" />-->
|
Value="{ThemeResource AccentHoverForegroundColorBrush}" />
|
||||||
|
|
||||||
<Setter Property="PressBackground"
|
<Setter Property="PressBackground"
|
||||||
Value="{ThemeResource AppControlHighlightAltListAccentHighRevealBackgroundBrush}" />
|
Value="{StaticResource AccentPressBackgroundColorBrush}" />
|
||||||
<Setter Property="PressForeground"
|
<Setter Property="PressForeground"
|
||||||
Value="{ThemeResource SystemControlHighlightAltAltHighBrush}" />
|
Value="{ThemeResource AccentHoverForegroundColorBrush}" />
|
||||||
</Style>
|
</Style>
|
||||||
|
|
||||||
<!-- RESULTS -->
|
<!-- RESULTS -->
|
||||||
|
|
|
@ -26,14 +26,14 @@
|
||||||
-->
|
-->
|
||||||
|
|
||||||
<!-- CalculatorBaseStyle -->
|
<!-- CalculatorBaseStyle -->
|
||||||
<Style x:Key="CalculatorBaseStyle"
|
<Style x:Name="CalculatorBaseStyle"
|
||||||
TargetType="local:Calculator">
|
TargetType="local:Calculator">
|
||||||
<Setter Property="Margin"
|
<Setter Property="Margin"
|
||||||
Value="0,0,0,0" />
|
Value="0,0,0,0" />
|
||||||
</Style>
|
</Style>
|
||||||
|
|
||||||
<!-- UnitConverterBaseStyle -->
|
<!-- UnitConverterBaseStyle -->
|
||||||
<Style x:Key="UnitConverterBaseStyle"
|
<Style x:Name="UnitConverterBaseStyle"
|
||||||
TargetType="local:UnitConverter">
|
TargetType="local:UnitConverter">
|
||||||
<Setter Property="Visibility"
|
<Setter Property="Visibility"
|
||||||
Value="Collapsed" />
|
Value="Collapsed" />
|
||||||
|
@ -70,7 +70,8 @@
|
||||||
This row is padding for the SystemFocusVisuals,
|
This row is padding for the SystemFocusVisuals,
|
||||||
otherwise the focus rectangles render under the title bar controls.
|
otherwise the focus rectangles render under the title bar controls.
|
||||||
-->
|
-->
|
||||||
<RowDefinition x:Name="FocusVisualMargin" Height="3"/>
|
<RowDefinition x:Name="FocusVisualMargin"
|
||||||
|
Height="3" />
|
||||||
<RowDefinition Height="*" />
|
<RowDefinition Height="*" />
|
||||||
</Grid.RowDefinitions>
|
</Grid.RowDefinitions>
|
||||||
|
|
||||||
|
@ -150,7 +151,8 @@
|
||||||
|
|
||||||
<NavigationView.PaneFooter>
|
<NavigationView.PaneFooter>
|
||||||
|
|
||||||
<StackPanel HorizontalAlignment="Stretch" Orientation="Vertical">
|
<StackPanel HorizontalAlignment="Stretch"
|
||||||
|
Orientation="Vertical">
|
||||||
|
|
||||||
<NavigationViewList x:Name="NavFooter"
|
<NavigationViewList x:Name="NavFooter"
|
||||||
Width="{x:Bind NavView.OpenPaneLength, Mode=Oneway}"
|
Width="{x:Bind NavView.OpenPaneLength, Mode=Oneway}"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue