Skip to content

Commit

Permalink
removed the (possibly wrong) reference to a "V2"
Browse files Browse the repository at this point in the history
  • Loading branch information
wolframhaussig committed Feb 24, 2024
1 parent df19709 commit f742e88
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions WinFormsThemes/TestProject/FileThemeTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public void LoadShouldNotThrow_NonJson()
}

[TestMethod]
public void LoadV2Simple()
public void LoadVersionedSimple()
{
FileTheme? theme = FileTheme.Load(@"
{
Expand All @@ -62,7 +62,7 @@ public void LoadV2Simple()
}

[TestMethod]
public void LoadV2WithVariable()
public void LoadVersionedWithVariable()
{
FileTheme? theme = FileTheme.Load(@"
{
Expand All @@ -88,7 +88,7 @@ public void LoadV2WithVariable()
}

[TestMethod]
public void LoadV2InvalidSchema()
public void LoadVersionedInvalidSchema()
{
FileTheme? theme = FileTheme.Load(@"
{
Expand All @@ -103,7 +103,7 @@ public void LoadV2InvalidSchema()
}

[TestMethod]
public void LoadV2DefaultValue()
public void LoadVersionedDefaultValue()
{
FileTheme? theme = FileTheme.Load(@"
{
Expand All @@ -127,7 +127,7 @@ public void LoadV2DefaultValue()
}

[TestMethod]
public void LoadV2InvalidColorOrVariable()
public void LoadVersionedInvalidColorOrVariable()
{
FileTheme? theme = FileTheme.Load(@"
{
Expand All @@ -150,7 +150,7 @@ public void LoadV2InvalidColorOrVariable()
}

[TestMethod]
public void LoadV2SkipEmptyCapabilities()
public void LoadVersionedSkipEmptyCapabilities()
{
FileTheme? theme = FileTheme.Load(@"
{
Expand Down
2 changes: 1 addition & 1 deletion WinFormsThemes/WinFormsThemes/Themes/FileTheme.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit f742e88

Please sign in to comment.