diff --git a/TuneLab/GUI/Dialog.axaml b/TuneLab/GUI/Dialog.axaml index a80a75c..2e3c0c4 100644 --- a/TuneLab/GUI/Dialog.axaml +++ b/TuneLab/GUI/Dialog.axaml @@ -21,25 +21,29 @@ - + - - - - - - - + + + + + + - - - + + + - - + + + diff --git a/TuneLab/GUI/Dialog.axaml.cs b/TuneLab/GUI/Dialog.axaml.cs index 4002c57..8fda701 100644 --- a/TuneLab/GUI/Dialog.axaml.cs +++ b/TuneLab/GUI/Dialog.axaml.cs @@ -4,6 +4,7 @@ using Avalonia.Media; using ReactiveUI; using System; +using System.Reflection.Metadata; using System.Threading.Tasks; using TuneLab.GUI; using TuneLab.GUI.Components; @@ -34,13 +35,12 @@ public Dialog() Topmost = true; this.DataContext = this; - this.Background = Style.INTERFACE.ToBrush(); + this.Background = Style.BACK.ToBrush(); + Content.Background = Style.INTERFACE.ToBrush(); titleBar = this.FindControl("TitleBar") ?? throw new InvalidOperationException("TitleBar not found"); titleLabel = this.FindControl - + diff --git a/TuneLab/Views/LyricInput.axaml.cs b/TuneLab/Views/LyricInput.axaml.cs index 1361dbb..5395b62 100644 --- a/TuneLab/Views/LyricInput.axaml.cs +++ b/TuneLab/Views/LyricInput.axaml.cs @@ -23,8 +23,7 @@ public LyricInput() WindowStartupLocation = WindowStartupLocation.CenterScreen; Topmost = true; - this.Background = Style.INTERFACE.ToBrush(); - TitleBar.Background = Style.BACK.ToBrush(); + this.Background = Style.BACK.ToBrush(); TitleLabel.Foreground = Style.TEXT_LIGHT.ToBrush(); var closeButton = new Button() { Width = 48, Height = 40 } @@ -34,6 +33,8 @@ public LyricInput() WindowControl.Children.Add(closeButton); + Content.Background = Style.INTERFACE.ToBrush(); + mLyricInputBox = new TextInput(); mLyricInputBox.AcceptsReturn = true; mLyricInputBox.Width = 432;