mirror of
https://github.com/Microsoft/calculator.git
synced 2025-08-23 06:25:19 -07:00
Merge pull request #39 from nventive/dev/jela/font-wasm
Adjust wasm fonts and initial loading
This commit is contained in:
commit
53c8196d88
2 changed files with 23 additions and 7 deletions
|
@ -1,6 +1,9 @@
|
||||||
<ResourceDictionary
|
<ResourceDictionary
|
||||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||||
xmlns:xamarin="http://uno.ui/xamarin"
|
xmlns:xamarin="http://uno.ui/xamarin"
|
||||||
|
xmlns:android="http://uno.ui/android"
|
||||||
|
xmlns:ios="http://uno.ui/ios"
|
||||||
|
xmlns:wasm="http://uno.ui/wasm"
|
||||||
xmlns:win="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
xmlns:win="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||||
xmlns:Controls="using:CalculatorApp.Controls"
|
xmlns:Controls="using:CalculatorApp.Controls"
|
||||||
|
@ -8,7 +11,7 @@
|
||||||
xmlns:converters="using:CalculatorApp.Converters"
|
xmlns:converters="using:CalculatorApp.Converters"
|
||||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||||
xmlns:local="using:CalculatorApp"
|
xmlns:local="using:CalculatorApp"
|
||||||
mc:Ignorable="xamarin">
|
mc:Ignorable="xamarin android ios wasm">
|
||||||
|
|
||||||
<ResourceDictionary.MergedDictionaries>
|
<ResourceDictionary.MergedDictionaries>
|
||||||
<!--
|
<!--
|
||||||
|
@ -272,7 +275,11 @@
|
||||||
<x:Double x:Key="AppMinWindowHeight">500</x:Double>
|
<x:Double x:Key="AppMinWindowHeight">500</x:Double>
|
||||||
<x:Double x:Key="AppMinWindowWidth">320</x:Double>
|
<x:Double x:Key="AppMinWindowWidth">320</x:Double>
|
||||||
|
|
||||||
<FontFamily x:Key="CalculatorFontFamily">ms-appx:///Assets/CalcMDL2.ttf#Calculator MDL2 Assets</FontFamily>
|
<!-- UNO TODO -->
|
||||||
|
<win:FontFamily x:Key="CalculatorFontFamily">ms-appx:///Assets/CalcMDL2.ttf#Calculator MDL2 Assets</win:FontFamily>
|
||||||
|
<android:FontFamily x:Key="CalculatorFontFamily">ms-appx:///Assets/CalcMDL2.ttf#Calculator MDL2 Assets</android:FontFamily>
|
||||||
|
<ios:FontFamily x:Key="CalculatorFontFamily">ms-appx:///Assets/CalcMDL2.ttf#Calculator MDL2 Assets</ios:FontFamily>
|
||||||
|
<wasm:FontFamily x:Key="CalculatorFontFamily">Calculator MDL2 Assets</wasm:FontFamily>
|
||||||
|
|
||||||
<x:Double x:Key="SplitViewOpenPaneLength">256</x:Double>
|
<x:Double x:Key="SplitViewOpenPaneLength">256</x:Double>
|
||||||
<Thickness x:Key="PivotPortraitThemePadding">0,1,0,0</Thickness>
|
<Thickness x:Key="PivotPortraitThemePadding">0,1,0,0</Thickness>
|
||||||
|
|
|
@ -32,3 +32,12 @@ body::after {
|
||||||
pointer-events: none;
|
pointer-events: none;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#uno-body::after {
|
||||||
|
font-family: 'Calculator MDL2 Assets';
|
||||||
|
background: transparent;
|
||||||
|
content: "";
|
||||||
|
opacity: 0;
|
||||||
|
pointer-events: none;
|
||||||
|
position: absolute;
|
||||||
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue