Fixes #2944. Makes ColorScheme explicitly readonly, removes Colors.Base, etc..., Fixes intermittent TreeView unit test failures (#3175)

* Removed resharper settings from editorconfig

* Moved ColorScheme to ColorScheme.cs

* Moved ColorScheme to ColorScheme.cs

* Potential fix. PlatformColor was not being set by FakeDriver correctly.

* Made ColorScheme effectively readonly

* Removed Color.Base etc... Updated API docs.
This commit is contained in:
Tig
2024-01-15 17:46:53 -07:00
committed by GitHub
parent b84862d0bd
commit 2c725b877f
81 changed files with 614 additions and 563 deletions

View File

@@ -1378,7 +1378,7 @@ Y
// Label is AutoSize == true
var label = new Label ("This should be the last line.") {
ColorScheme = Colors.Menu,
ColorScheme = Colors.ColorSchemes ["Menu"],
Width = Dim.Fill (),
X = 0, // keep unit test focused; don't use Center here
Y = Pos.AnchorEnd (1)
@@ -1422,7 +1422,7 @@ Y
// Label is AutoSize == true
var label = new Label ("This should be the last line.") {
ColorScheme = Colors.Menu,
ColorScheme = Colors.ColorSchemes ["Menu"],
Width = Dim.Fill (),
X = 0,
Y = Pos.Bottom (win) - 3 // two lines top and bottom borders more one line above the bottom border
@@ -1466,7 +1466,7 @@ Y
// Label is AutoSize == true
var label = new Label ("This should be the last line.") {
ColorScheme = Colors.Menu,
ColorScheme = Colors.ColorSchemes ["Menu"],
Width = Dim.Fill (),
X = 0,
Y = Pos.Bottom (win) - 4 // two lines top and bottom borders more two lines above border
@@ -1526,7 +1526,7 @@ Y
// Label is AutoSize == true
var label = new Label ("This should be the last line.") {
ColorScheme = Colors.Menu,
ColorScheme = Colors.ColorSchemes ["Menu"],
Width = Dim.Fill (),
X = 0,
Y = Pos.AnchorEnd (1)