mirror of https://github.com/2dust/v2rayN
Merge pull request #2911 from FrzMtrsprt/more_dark_border
Dark border for every windowpull/2928/head
commit
7a913ee38f
|
@ -58,6 +58,7 @@ namespace v2rayN.ViewModels
|
|||
SaveServer();
|
||||
});
|
||||
|
||||
Utils.SetDarkBorder(view, _config.uiItem.colorModeDark);
|
||||
}
|
||||
|
||||
private void SaveServer()
|
||||
|
|
|
@ -46,6 +46,7 @@ namespace v2rayN.ViewModels
|
|||
SaveServer();
|
||||
});
|
||||
|
||||
Utils.SetDarkBorder(view, _config.uiItem.colorModeDark);
|
||||
}
|
||||
|
||||
private void SaveServer()
|
||||
|
|
|
@ -161,6 +161,8 @@ namespace v2rayN.ViewModels
|
|||
{
|
||||
SaveSetting();
|
||||
});
|
||||
|
||||
Utils.SetDarkBorder(view, _config.uiItem.colorModeDark);
|
||||
}
|
||||
|
||||
private void InitCoreType()
|
||||
|
|
|
@ -61,6 +61,7 @@ namespace v2rayN.ViewModels
|
|||
SaveRules();
|
||||
});
|
||||
|
||||
Utils.SetDarkBorder(view, _config.uiItem.colorModeDark);
|
||||
}
|
||||
private void SaveRules()
|
||||
{
|
||||
|
|
|
@ -115,6 +115,8 @@ namespace v2rayN.ViewModels
|
|||
{
|
||||
SaveRouting();
|
||||
});
|
||||
|
||||
Utils.SetDarkBorder(view, _config.uiItem.colorModeDark);
|
||||
}
|
||||
|
||||
public void RefreshRulesItems()
|
||||
|
|
|
@ -113,6 +113,8 @@ namespace v2rayN.ViewModels
|
|||
{
|
||||
SaveRouting();
|
||||
});
|
||||
|
||||
Utils.SetDarkBorder(view, _config.uiItem.colorModeDark);
|
||||
}
|
||||
|
||||
#region locked
|
||||
|
|
|
@ -41,6 +41,8 @@ namespace v2rayN.ViewModels
|
|||
{
|
||||
SaveSub();
|
||||
});
|
||||
|
||||
Utils.SetDarkBorder(view, _config.uiItem.colorModeDark);
|
||||
}
|
||||
private void SaveSub()
|
||||
{
|
||||
|
|
|
@ -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()
|
||||
|
|
|
@ -49,6 +49,8 @@ namespace v2rayN.Views
|
|||
txtGlobalHotkey4.KeyDown += TxtGlobalHotkey_KeyDown;
|
||||
|
||||
BindingData(-1);
|
||||
|
||||
Utils.SetDarkBorder(this, _config.uiItem.colorModeDark);
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -11,7 +11,7 @@ namespace v2rayN.Views
|
|||
{
|
||||
InitializeComponent();
|
||||
|
||||
ViewModel = new SubSettingViewModel();
|
||||
ViewModel = new SubSettingViewModel(this);
|
||||
lstSubscription.MouseDoubleClick += LstSubscription_MouseDoubleClick;
|
||||
|
||||
this.WhenActivated(disposables =>
|
||||
|
|
Loading…
Reference in New Issue