|
1 | 1 | using System; |
| 2 | +using Avalonia.Controls; |
2 | 3 | using Avalonia.Markup.Xaml; |
3 | 4 | using Avalonia.Media; |
4 | 5 | using Avalonia.Styling; |
@@ -103,14 +104,25 @@ public PipboyTheme(IServiceProvider? serviceProvider = null) |
103 | 104 | Resources["PipboyScanBeamColor"] = Color.FromArgb(40, p.Primary.R, p.Primary.G, p.Primary.B); |
104 | 105 |
|
105 | 106 | // Font design tokens |
106 | | - Resources["PipboyFontFamily"] = new FontFamily("Consolas,Courier New,monospace"); |
107 | | - Resources["PipboyFontSize"] = 13.0; |
108 | | - Resources["PipboyFontSizeSmall"] = 11.0; |
109 | | - Resources["PipboyFontSizeLarge"] = 16.0; |
| 107 | + Resources["PipboyFontFamily"] = new FontFamily("Consolas,Courier New,monospace"); |
| 108 | + Resources["PipboyFontSize"] = 13.0; |
| 109 | + Resources["PipboyFontSizeXSmall"] = 10.0; |
| 110 | + Resources["PipboyFontSizeSmall"] = 11.0; |
| 111 | + Resources["PipboyFontSizeLarge"] = 16.0; |
110 | 112 |
|
111 | 113 | // Spacing / sizing design tokens |
112 | 114 | Resources["PipboyControlHeight"] = 30.0; |
113 | 115 | Resources["PipboyTreeViewItemIndent"] = 16.0; |
| 116 | + Resources["PipboyPickerRowHeight"] = new GridLength(29); |
| 117 | + Resources["PipboyPickerItemHeight"] = 40.0; |
| 118 | + Resources["PipboyPopupMaxHeight"] = 200.0; |
| 119 | + |
| 120 | + // Opacity design tokens |
| 121 | + Resources["PipboyDisabledOpacity"] = 0.45; |
| 122 | + Resources["PipboyDimOpacity"] = 0.7; |
| 123 | + |
| 124 | + // Stroke design tokens |
| 125 | + Resources["PipboyIconStrokeThickness"] = 1.5; |
114 | 126 |
|
115 | 127 | // Load compiled AXAML styles — AvaloniaXamlLoader.Load uses the compiled (NativeAOT-safe) |
116 | 128 | // version generated from PipboyTheme.axaml; the StyleInclude chain inside that AXAML file |
|
0 commit comments