From 0537adc27a6843bebb8776ee49a92a4fdab8fb5e Mon Sep 17 00:00:00 2001 From: Robert Date: Mon, 21 Sep 2020 19:39:14 +0200 Subject: [PATCH] UI - Moved frame time to appbar to avoid Win+Tab issue UI - Cleaned up home page Overlay module - Removed test activation requirements Debugger - Fixed rendering image scaling Surface editor - Attempted to fix movement of devices without a layout --- src/Artemis.UI/App.xaml | 3 ++ src/Artemis.UI/Screens/Home/HomeView.xaml | 33 +++++++++-------- src/Artemis.UI/Screens/RootView.xaml | 8 ++++- src/Artemis.UI/Screens/RootViewModel.cs | 36 ++++++++++++------- .../Settings/Debug/Tabs/RenderDebugView.xaml | 17 +++++---- .../Tabs/Plugins/PluginSettingsViewModel.cs | 1 + .../Visualization/SurfaceDeviceView.xaml | 8 +++-- .../Views/DebugConfigurationView.xaml | 10 ++++-- .../OverlayModule.cs | 18 +--------- 9 files changed, 74 insertions(+), 60 deletions(-) diff --git a/src/Artemis.UI/App.xaml b/src/Artemis.UI/App.xaml index bcd49c34f..ae724e222 100644 --- a/src/Artemis.UI/App.xaml +++ b/src/Artemis.UI/App.xaml @@ -24,6 +24,9 @@ + + + diff --git a/src/Artemis.UI/Screens/Home/HomeView.xaml b/src/Artemis.UI/Screens/Home/HomeView.xaml index 71cd26300..23ffe9d24 100644 --- a/src/Artemis.UI/Screens/Home/HomeView.xaml +++ b/src/Artemis.UI/Screens/Home/HomeView.xaml @@ -70,9 +70,8 @@ - - + If you need help, have some feedback or have any other questions feel free to contact us through any of the + following channels. + CommandParameter="https://github.com/Artemis-RGB/Artemis"> GitHub @@ -94,11 +93,11 @@ - - - + + Feel like you want to make a donation? It would be gratefully received. Click the button to donate via PayPal. diff --git a/src/Artemis.UI/Screens/RootView.xaml b/src/Artemis.UI/Screens/RootView.xaml index 42594df85..b59cd308e 100644 --- a/src/Artemis.UI/Screens/RootView.xaml +++ b/src/Artemis.UI/Screens/RootView.xaml @@ -65,7 +65,13 @@ Title="{Binding ActiveItem.DisplayName}" ShowNavigationDrawerButton="True" DockPanel.Dock="Top"> - + + + diff --git a/src/Plugins/Artemis.Plugins.Modules.Overlay/OverlayModule.cs b/src/Plugins/Artemis.Plugins.Modules.Overlay/OverlayModule.cs index 15902d85b..a338d68d0 100644 --- a/src/Plugins/Artemis.Plugins.Modules.Overlay/OverlayModule.cs +++ b/src/Plugins/Artemis.Plugins.Modules.Overlay/OverlayModule.cs @@ -1,6 +1,4 @@ -using System; -using System.IO; -using Artemis.Core; +using Artemis.Core; using Artemis.Core.Modules; using SkiaSharp; @@ -15,20 +13,6 @@ namespace Artemis.Plugins.Modules.Overlay DisplayName = "Overlay"; DisplayIcon = "ArrangeBringToFront"; DefaultPriorityCategory = ModulePriorityCategory.Overlay; - UpdateDuringActivationOverride = false; - - ActivationRequirements.Add(new ProcessActivationRequirement("taskmgr")); - ActivationRequirements.Add(new ProcessActivationRequirement("calc")); - ActivationRequirements.Add(new ProcessActivationRequirement("mspaint") - { - Location = Path.Combine(Directory.GetParent(Environment.GetFolderPath(Environment.SpecialFolder.System)).FullName, "System32") - }); - - AddTimedUpdate(TimeSpan.FromSeconds(5), DelayedUpdate); - } - - private void DelayedUpdate(double obj) - { } // This is the end of your plugin life cycle.