From dfcf994a02951118ab28e57eb60877fa687d3712 Mon Sep 17 00:00:00 2001 From: NicolD Date: Sat, 22 Jan 2022 08:26:36 +0100 Subject: [PATCH 1/2] Implemented SidebarBorderWidth --- LibreHardwareMonitor | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/LibreHardwareMonitor b/LibreHardwareMonitor index 124fabb..65664fd 160000 --- a/LibreHardwareMonitor +++ b/LibreHardwareMonitor @@ -1 +1 @@ -Subproject commit 124fabb1951aebe59708b7f8050038b076ac79dd +Subproject commit 65664fd75ec6dff9c6ccecadfbc45398dff21477 From c0214887a5b7c5ed5123571f21bb56f10167f9f6 Mon Sep 17 00:00:00 2001 From: NicolD Date: Sat, 22 Jan 2022 08:27:01 +0100 Subject: [PATCH 2/2] Implemented SidebarBorderWidth --- .../Properties/Resources.Designer.cs | 20 ++++++++++++- SidebarDiagnostics/Properties/Resources.resx | 11 +++++++- SidebarDiagnostics/Settings.cs | 17 +++++++++++ SidebarDiagnostics/Settings.xaml | 7 +++++ SidebarDiagnostics/SettingsModel.cs | 18 ++++++++++++ SidebarDiagnostics/Sidebar.xaml | 8 +++--- SidebarDiagnostics/SidebarDiagnostics.csproj | 28 +++++++++---------- SidebarDiagnostics/packages.config | 4 +-- 8 files changed, 90 insertions(+), 23 deletions(-) diff --git a/SidebarDiagnostics/Properties/Resources.Designer.cs b/SidebarDiagnostics/Properties/Resources.Designer.cs index e191c1f..5431e99 100644 --- a/SidebarDiagnostics/Properties/Resources.Designer.cs +++ b/SidebarDiagnostics/Properties/Resources.Designer.cs @@ -19,7 +19,7 @@ namespace SidebarDiagnostics.Framework { // class via a tool like ResGen or Visual Studio. // To add or remove a member, edit your .ResX file then rerun ResGen // with the /str option, or rebuild your VS project. - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "16.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "17.0.0.0")] [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] public class Resources { @@ -1779,6 +1779,24 @@ public static string SettingsShowTrayIconTooltip { } } + /// + /// Looks up a localized string similar to Sidebar Border Width. + /// + public static string SettingsSidebarBorderWidth { + get { + return ResourceManager.GetString("SettingsSidebarBorderWidth", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Width of the sidebar border in pixels.. + /// + public static string SettingsSidebarBorderWidthTooltip { + get { + return ResourceManager.GetString("SettingsSidebarBorderWidthTooltip", resourceCulture); + } + } + /// /// Looks up a localized string similar to Sidebar Width. /// diff --git a/SidebarDiagnostics/Properties/Resources.resx b/SidebarDiagnostics/Properties/Resources.resx index 4e24bea..7412aea 100644 --- a/SidebarDiagnostics/Properties/Resources.resx +++ b/SidebarDiagnostics/Properties/Resources.resx @@ -9,6 +9,7 @@ that is mostly human readable. The generation and parsing of the various data types are done through the TypeConverter classes associated with the data types. + Example: ... ado.net/XML headers & schema ... @@ -1040,4 +1041,12 @@ Shows the name of the computer. Settings show machine name tooltip - + + Sidebar Border Width + Settings sidebar border width label + + + Width of the sidebar border in pixels. + Settings sidebar border width tooltip + + \ No newline at end of file diff --git a/SidebarDiagnostics/Settings.cs b/SidebarDiagnostics/Settings.cs index 6c8653a..fc1b735 100644 --- a/SidebarDiagnostics/Settings.cs +++ b/SidebarDiagnostics/Settings.cs @@ -380,6 +380,23 @@ public int SidebarWidth } } + private int _sidebarBorderWidth { get; set; } = 12; + + [JsonProperty] + public int SidebarBorderWidth + { + get + { + return _sidebarBorderWidth; + } + set + { + _sidebarBorderWidth = value; + + NotifyPropertyChanged("SidebarBorderWidth"); + } + } + private bool _autoBGColor { get; set; } = false; [JsonProperty] diff --git a/SidebarDiagnostics/Settings.xaml b/SidebarDiagnostics/Settings.xaml index 9a360e1..1f0e693 100644 --- a/SidebarDiagnostics/Settings.xaml +++ b/SidebarDiagnostics/Settings.xaml @@ -161,6 +161,7 @@ +