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:
Codex CLI 2025-08-27 03:15:47 -05:00
commit 7e40c1dc0b
8 changed files with 144 additions and 6 deletions

View 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>