Styles: add shared Typography/Scroll resources; add platform overrides (Desktop/Android/Browser) and load via App; switch icons to resource-based sizes and cap history text lines.
This commit is contained in:
parent
a212870d09
commit
7e40c1dc0b
8 changed files with 144 additions and 6 deletions
17
src/AdvancedCalculator.Android/Styles/Android.axaml
Normal file
17
src/AdvancedCalculator.Android/Styles/Android.axaml
Normal file
|
@ -0,0 +1,17 @@
|
|||
<ResourceDictionary xmlns="https://github.com/avaloniaui"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
|
||||
<!-- Android overrides: larger, touch-first -->
|
||||
<x:Double x:Key="FontSizeBase">16</x:Double>
|
||||
<x:Double x:Key="FontSizeLarge">18</x:Double>
|
||||
<x:Double x:Key="IconSizeM">24</x:Double>
|
||||
<x:Double x:Key="LineHeightBase">1.35</x:Double>
|
||||
|
||||
<!-- Thin overlay-like scrollbars -->
|
||||
<Style Selector="ScrollBar:vertical">
|
||||
<Setter Property="Width" Value="8"/>
|
||||
</Style>
|
||||
<Style Selector="ScrollBar:horizontal">
|
||||
<Setter Property="Height" Value="8"/>
|
||||
</Style>
|
||||
</ResourceDictionary>
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue