File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2222 </Application .Resources>
2323
2424 <Application .Styles>
25- <sty : FluentAvaloniaTheme PreferSystemTheme =" True " PreferUserAccentColor =" True" />
25+ <sty : FluentAvaloniaTheme PreferSystemTheme =" False " PreferUserAccentColor =" True" />
2626 </Application .Styles>
2727</Application >
Original file line number Diff line number Diff line change 44using Microsoft . Extensions . Logging ;
55using Avalonia . Data . Core . Plugins ;
66using CommunityToolkit . Mvvm . DependencyInjection ;
7+ using FluentAvalonia . Styling ;
78using Microsoft . Extensions . Hosting ;
89using VRCFaceTracking . Contracts . Services ;
910using VRCFaceTracking . Views ;
@@ -21,6 +22,14 @@ public override void Initialize()
2122 {
2223 AvaloniaXamlLoader . Load ( this ) ;
2324
25+ // gsettings breaks gamescope on linux and system theme is unreliable on plasma anyways
26+ if ( ! OperatingSystem . IsLinux ( ) )
27+ {
28+ var faTheme = Styles . OfType < FluentAvaloniaTheme > ( ) . FirstOrDefault ( ) ;
29+ if ( faTheme is not null )
30+ faTheme . PreferSystemTheme = true ;
31+ }
32+
2433#if DEBUG
2534 var loggerFactory = LoggerFactory . Create ( b => b
2635 . SetMinimumLevel ( LogLevel . Information )
You can’t perform that action at this time.
0 commit comments