mirror of
https://github.com/gui-cs/Terminal.Gui.git
synced 2026-01-01 16:59:35 +01:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user