Merge pull request #2911 from FrzMtrsprt/more_dark_border

Dark border for every window
pull/2928/head
2dust 2023-01-02 09:50:24 +08:00 committed by GitHub
commit 7a913ee38f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
10 changed files with 18 additions and 2 deletions

View File

@ -58,6 +58,7 @@ namespace v2rayN.ViewModels
SaveServer();
});
Utils.SetDarkBorder(view, _config.uiItem.colorModeDark);
}
private void SaveServer()

View File

@ -46,6 +46,7 @@ namespace v2rayN.ViewModels
SaveServer();
});
Utils.SetDarkBorder(view, _config.uiItem.colorModeDark);
}
private void SaveServer()

View File

@ -161,6 +161,8 @@ namespace v2rayN.ViewModels
{
SaveSetting();
});
Utils.SetDarkBorder(view, _config.uiItem.colorModeDark);
}
private void InitCoreType()

View File

@ -61,6 +61,7 @@ namespace v2rayN.ViewModels
SaveRules();
});
Utils.SetDarkBorder(view, _config.uiItem.colorModeDark);
}
private void SaveRules()
{

View File

@ -115,6 +115,8 @@ namespace v2rayN.ViewModels
{
SaveRouting();
});
Utils.SetDarkBorder(view, _config.uiItem.colorModeDark);
}
public void RefreshRulesItems()

View File

@ -113,6 +113,8 @@ namespace v2rayN.ViewModels
{
SaveRouting();
});
Utils.SetDarkBorder(view, _config.uiItem.colorModeDark);
}
#region locked

View File

@ -41,6 +41,8 @@ namespace v2rayN.ViewModels
{
SaveSub();
});
Utils.SetDarkBorder(view, _config.uiItem.colorModeDark);
}
private void SaveSub()
{

View File

@ -5,6 +5,7 @@ using ReactiveUI;
using ReactiveUI.Fody.Helpers;
using Splat;
using System.Reactive;
using System.Windows;
using System.Windows.Forms;
using v2rayN.Base;
using v2rayN.Handler;
@ -30,7 +31,7 @@ namespace v2rayN.ViewModels
public ReactiveCommand<Unit, Unit> SubShareCmd { get; }
public bool IsModified { get; set; }
public SubSettingViewModel()
public SubSettingViewModel(Window view)
{
_config = LazyConfig.Instance.GetConfig();
_noticeHandler = Locator.Current.GetService<NoticeHandler>();
@ -59,6 +60,8 @@ namespace v2rayN.ViewModels
{
SubShare();
}, canEditRemove);
Utils.SetDarkBorder(view, _config.uiItem.colorModeDark);
}
public void RefreshSubItems()

View File

@ -49,6 +49,8 @@ namespace v2rayN.Views
txtGlobalHotkey4.KeyDown += TxtGlobalHotkey_KeyDown;
BindingData(-1);
Utils.SetDarkBorder(this, _config.uiItem.colorModeDark);
}

View File

@ -11,7 +11,7 @@ namespace v2rayN.Views
{
InitializeComponent();
ViewModel = new SubSettingViewModel();
ViewModel = new SubSettingViewModel(this);
lstSubscription.MouseDoubleClick += LstSubscription_MouseDoubleClick;
this.WhenActivated(disposables =>