@@ -1078,6 +1078,44 @@ private void MainGrid_Loaded(object sender, RoutedEventArgs e)
10781078 // Register a theme watchdog
10791079 NavView . ActualThemeVariantChanged += MainWindow_ActualThemeChanged ;
10801080
1081+ // Show the testing notice
1082+ if ( ! _mainPageLoadedOnce && ! Debugger . IsAttached )
1083+ new ContentDialog ( )
1084+ {
1085+ DefaultButton = ContentDialogButton . Close ,
1086+ IsPrimaryButtonEnabled = false ,
1087+ IsSecondaryButtonEnabled = false ,
1088+ CloseButtonText = "Ok" ,
1089+ Content = new Grid ( )
1090+ {
1091+ MaxHeight = 550 ,
1092+ Margin = new Thickness ( 0 , - 40 , 0 , 0 ) ,
1093+ VerticalAlignment = VerticalAlignment . Stretch ,
1094+ RowDefinitions = { new RowDefinition ( GridLength . Auto ) , new RowDefinition ( GridLength . Star ) , } ,
1095+ Children =
1096+ {
1097+ new TextBlock ( ) { Text = "Amethyst 2.0 Technical Preview" , FontSize = 30 , Margin = new Thickness ( 0 , 0 , 0 , 20 ) } . InGrid ( 0 ) ,
1098+ new TextBlock ( )
1099+ {
1100+ FontSize = 16 ,
1101+ MaxHeight = 450 ,
1102+ TextWrapping = TextWrapping . Wrap ,
1103+ Text = "This is a testing build of Amethyst 2.0, currently being dragged through the Avalonia porting process.\n \n " +
1104+ "Things will break. Some of them already have. That’s normal.\n \n " +
1105+ "If (when) you find something that doesn't work:\n " +
1106+ "• Report it directly to the me (公彦赤屋先/akaya) or\n " +
1107+ "• Post it on the Discord server, preferably pinging a team member\n \n " +
1108+ "Please:\n " +
1109+ "• Check and toggle everything you can\n " +
1110+ "• Test edge cases and invalid data inputs\n " +
1111+ "• Try to break stuff, if you feel like it\n \n " +
1112+ "By continuing, you acknowledge that this is an unstable test build. Please confirm, and report any issues you encounter.\n \n " +
1113+ "Thank you for helping shape the new Amethyst! 💜" ,
1114+ } . InGrid ( 1 )
1115+ }
1116+ }
1117+ } . ShowAsync ( ) ;
1118+
10811119 // Mark as loaded
10821120 _mainPageLoadedOnce = true ;
10831121 }
0 commit comments