mirror of
https://github.com/BlossomiShymae/Needlework.Net.git
synced 2025-12-06 10:10:48 +01:00
25 lines
681 B
C#
25 lines
681 B
C#
using Avalonia;
|
|
using Avalonia.Controls;
|
|
using Avalonia.Styling;
|
|
using Needlework.Net.Extensions;
|
|
using TextMateSharp.Grammars;
|
|
|
|
namespace Needlework.Net.Views.Pages.Console;
|
|
|
|
public partial class ConsoleView : UserControl
|
|
{
|
|
public ConsoleView()
|
|
{
|
|
InitializeComponent();
|
|
|
|
ResponseEditor.ApplyJsonEditorSettings();
|
|
RequestEditor.ApplyJsonEditorSettings();
|
|
OnBaseThemeChanged(Application.Current!.ActualThemeVariant);
|
|
}
|
|
|
|
private void OnBaseThemeChanged(ThemeVariant currentTheme)
|
|
{
|
|
var registryOptions = new RegistryOptions(
|
|
currentTheme == ThemeVariant.Dark ? ThemeName.DarkPlus : ThemeName.LightPlus);
|
|
}
|
|
} |