From f742e884ff7d03b135cae41cbf9ae40780b1d30d Mon Sep 17 00:00:00 2001 From: "13997737+wolframhaussig@users.noreply.github.com" <13997737+wolframhaussig@users.noreply.github.com> Date: Sat, 24 Feb 2024 17:04:53 +0100 Subject: [PATCH] removed the (possibly wrong) reference to a "V2" --- WinFormsThemes/TestProject/FileThemeTest.cs | 12 ++++++------ WinFormsThemes/WinFormsThemes/Themes/FileTheme.cs | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/WinFormsThemes/TestProject/FileThemeTest.cs b/WinFormsThemes/TestProject/FileThemeTest.cs index 1621a5e..37aadd9 100644 --- a/WinFormsThemes/TestProject/FileThemeTest.cs +++ b/WinFormsThemes/TestProject/FileThemeTest.cs @@ -39,7 +39,7 @@ public void LoadShouldNotThrow_NonJson() } [TestMethod] - public void LoadV2Simple() + public void LoadVersionedSimple() { FileTheme? theme = FileTheme.Load(@" { @@ -62,7 +62,7 @@ public void LoadV2Simple() } [TestMethod] - public void LoadV2WithVariable() + public void LoadVersionedWithVariable() { FileTheme? theme = FileTheme.Load(@" { @@ -88,7 +88,7 @@ public void LoadV2WithVariable() } [TestMethod] - public void LoadV2InvalidSchema() + public void LoadVersionedInvalidSchema() { FileTheme? theme = FileTheme.Load(@" { @@ -103,7 +103,7 @@ public void LoadV2InvalidSchema() } [TestMethod] - public void LoadV2DefaultValue() + public void LoadVersionedDefaultValue() { FileTheme? theme = FileTheme.Load(@" { @@ -127,7 +127,7 @@ public void LoadV2DefaultValue() } [TestMethod] - public void LoadV2InvalidColorOrVariable() + public void LoadVersionedInvalidColorOrVariable() { FileTheme? theme = FileTheme.Load(@" { @@ -150,7 +150,7 @@ public void LoadV2InvalidColorOrVariable() } [TestMethod] - public void LoadV2SkipEmptyCapabilities() + public void LoadVersionedSkipEmptyCapabilities() { FileTheme? theme = FileTheme.Load(@" { diff --git a/WinFormsThemes/WinFormsThemes/Themes/FileTheme.cs b/WinFormsThemes/WinFormsThemes/Themes/FileTheme.cs index 6685357..4009b6b 100644 --- a/WinFormsThemes/WinFormsThemes/Themes/FileTheme.cs +++ b/WinFormsThemes/WinFormsThemes/Themes/FileTheme.cs @@ -173,7 +173,7 @@ private void loadFromOldFileStructure(JsonNode doc) _controlErrorBackColor = ((string?)doc["colors"]?["errorBackColor"]).ToColor(); _controlErrorForeColor = ((string?)doc["colors"]?["errorForeColor"]).ToColor(); - //backwards compatibility for themes V2 + //backwards compatibility for themes with themeVersion < 2 _tableBackColor = ControlBackColor; _tableHeaderBackColor = TableBackColor; _tableHeaderForeColor = ControlForeColor;