diff --git a/src/OneWare.Core/App.axaml.cs b/src/OneWare.Core/App.axaml.cs index 01fb099b..beb1fd1e 100644 --- a/src/OneWare.Core/App.axaml.cs +++ b/src/OneWare.Core/App.axaml.cs @@ -180,6 +180,7 @@ protected override AvaloniaObject CreateShell() windowService.RegisterMenuItem("MainWindow_MainMenu/Extras", new MenuItemModel("Settings") { Header = $"Settings", + ImageIconObservable = Current?.GetResourceObservable("Material.SettingsOutline"), Command = new RelayCommand(() => windowService.Show(new ApplicationSettingsView() { DataContext = ContainerLocator.Container.Resolve() diff --git a/src/OneWare.TerminalManager/ViewModels/TerminalManagerViewModel.cs b/src/OneWare.TerminalManager/ViewModels/TerminalManagerViewModel.cs index 9dba6106..3318123c 100644 --- a/src/OneWare.TerminalManager/ViewModels/TerminalManagerViewModel.cs +++ b/src/OneWare.TerminalManager/ViewModels/TerminalManagerViewModel.cs @@ -1,6 +1,7 @@ using System.Collections.ObjectModel; using System.Reactive.Linq; using System.Runtime.InteropServices; +using Avalonia.Threading; using OneWare.Shared; using OneWare.Shared.Enums; using OneWare.Shared.Helpers; @@ -38,14 +39,14 @@ public TerminalManagerViewModel(ISettingsService settingsService, IDockService d Title = "Terminal"; Id = "Terminal"; - // settingsService.GetSettingObservable("General_SelectedTheme").Throttle(TimeSpan.FromMilliseconds(5)) - // .Subscribe(x => Dispatcher.UIThread.Post(() => - // { - // foreach (var t in Terminals) - // { - // t.Terminal.Redraw(); - // } - // })); + settingsService.GetSettingObservable("General_SelectedTheme").Throttle(TimeSpan.FromMilliseconds(5)) + .Subscribe(x => Dispatcher.UIThread.Post(() => + { + foreach (var t in Terminals) + { + t.Terminal.Redraw(); + } + })); } public override void InitializeContent() diff --git a/src/OneWare.UniversalFpgaProjectSystem/Models/FpgaModelBase.cs b/src/OneWare.UniversalFpgaProjectSystem/Models/FpgaModelBase.cs index 2f2587e4..134bc128 100644 --- a/src/OneWare.UniversalFpgaProjectSystem/Models/FpgaModelBase.cs +++ b/src/OneWare.UniversalFpgaProjectSystem/Models/FpgaModelBase.cs @@ -62,13 +62,14 @@ public string SearchTextNodes set => SetProperty(ref _searchTextNodes, value); } - public event EventHandler NodeConnected; + public event EventHandler? NodeConnected; - public event EventHandler NodeDisconnected; + public event EventHandler? NodeDisconnected; public FpgaModelBase() { - ConnectCommand = new RelayCommand(ConnectSelected, () => SelectedNode is not null && SelectedPin is not null); + ConnectCommand = new RelayCommand(ConnectSelected, () => SelectedNode is { Connection: null } + && SelectedPin is { Connection :null }); DisconnectCommand = new RelayCommand(DisconnectSelected, () => SelectedPin is {Connection: not null}); diff --git a/src/OneWare.UniversalFpgaProjectSystem/Views/UniversalFpgaProjectCompileView.axaml b/src/OneWare.UniversalFpgaProjectSystem/Views/UniversalFpgaProjectCompileView.axaml index bfd71052..31ec14ac 100644 --- a/src/OneWare.UniversalFpgaProjectSystem/Views/UniversalFpgaProjectCompileView.axaml +++ b/src/OneWare.UniversalFpgaProjectSystem/Views/UniversalFpgaProjectCompileView.axaml @@ -16,7 +16,7 @@ x:DataType="viewModels:UniversalFpgaProjectCompileViewModel" Name="UniversalFpgaProjectCompileViewView"> - + @@ -41,64 +41,82 @@ Content="{Binding }" /> - + - + - - - - + + + - - - - - - - - + + + + + + + + - + - + - - - + + + - - + +