mirror of
https://github.com/Artemis-RGB/Artemis
synced 2026-11-12 03:48:56 +00:00
UI - Always use dark theme
This commit is contained in:
1 parent
7759b6197f
commit
4703c0890a
6 files changed
+288
-24
No files matched your search
@@ -105,7 +105,7 @@ namespace Artemis.UI.Windows
|
||||
private void KillOtherInstances()
|
||||
{
|
||||
// Kill everything else heh
|
||||
List<Process> processes = Process.GetProcessesByName("Artemis.UI").Where(p => p.Id != Process.GetCurrentProcess().Id).ToList();
|
||||
List<Process> processes = Process.GetProcessesByName("Artemis.UI.Windows").Where(p => p.Id != Process.GetCurrentProcess().Id).ToList();
|
||||
foreach (Process process in processes)
|
||||
{
|
||||
try
|
||||
@@ -128,7 +128,7 @@ namespace Artemis.UI.Windows
|
||||
string args = argsList.Any() ? "-ArgumentList " + string.Join(',', argsList) : "";
|
||||
string command =
|
||||
$"-Command \"& {{Start-Sleep -Milliseconds {(int) e.Delay.TotalMilliseconds}; " +
|
||||
"(Get-Process 'Artemis.UI').kill(); " +
|
||||
"(Get-Process 'Artemis.UI.Windows').kill(); " +
|
||||
$"Start-Process -FilePath '{Constants.ExecutablePath}' -WorkingDirectory '{Constants.ApplicationFolder}' {args}}}\"";
|
||||
// Elevated always runs with RunAs
|
||||
if (e.Elevate)
|
||||
|
||||
@@ -1749,6 +1749,7 @@
|
||||
"Avalonia": "0.10.15",
|
||||
"Avalonia.Controls.PanAndZoom": "10.14.0",
|
||||
"Avalonia.Desktop": "0.10.15",
|
||||
"Avalonia.Diagnostics": "0.10.15",
|
||||
"Avalonia.ReactiveUI": "0.10.15",
|
||||
"Avalonia.Xaml.Behaviors": "0.10.14",
|
||||
"DynamicData": "7.8.6",
|
||||
@@ -1769,6 +1770,7 @@
|
||||
"dependencies": {
|
||||
"Artemis.Core": "1.0.0",
|
||||
"Avalonia": "0.10.15",
|
||||
"Avalonia.Diagnostics": "0.10.15",
|
||||
"Avalonia.ReactiveUI": "0.10.15",
|
||||
"Avalonia.Xaml.Behaviors": "0.10.14",
|
||||
"DynamicData": "7.8.6",
|
||||
|
||||
Reference in new issue
Block a user