Fixes #2493. Move all layout code out of View (and Toplevel) into a layout helper class (#2544)

* Comment/warning clean up

* Moved Text and Drawing out

* Moved Layout out

* Removed extra lines

* Removed Mouse out

* Reorgainzed View

* API docs

* removed border.cs

* TopLevel.Resized -> TerminalResized

* Mdi -> Overlapped

* Removed confusing and un-needed WillPresent

* privates -> _

* Tweaked RunLoop API
This commit is contained in:
Tig
2023-04-14 10:26:10 -06:00
committed by GitHub
parent 8c59e8255f
commit b4552ee14b
154 changed files with 5261 additions and 5725 deletions

View File

@@ -103,7 +103,6 @@ namespace Terminal.Gui.ConfigurationTests {
Assert.Equal (dictSrc ["Disabled"], dictCopy ["Disabled"]);
Assert.Equal (dictDest ["Normal"], dictCopy ["Normal"]);
}
//[Fact ()]
@@ -178,7 +177,6 @@ namespace Terminal.Gui.ConfigurationTests {
// Assert.True (false, "This test needs an implementation");
//}
/// <summary>
/// Save the `config.json` file; this can be used to update the file in `Terminal.Gui.Resources.config.json'.
/// </summary>
@@ -261,7 +259,6 @@ namespace Terminal.Gui.ConfigurationTests {
ConfigurationManager.Settings ["Application.EnableConsoleScrolling"].PropertyValue = true;
ConfigurationManager.Settings.Apply ();
ConfigurationManager.Locations = ConfigLocations.DefaultOnly;
// act
@@ -280,7 +277,6 @@ namespace Terminal.Gui.ConfigurationTests {
}
[Fact]
public void TestConfigProperties ()
{
@@ -622,7 +618,6 @@ namespace Terminal.Gui.ConfigurationTests {
jsonException = Assert.Throws<JsonException> (() => ConfigurationManager.Settings.Update (json, "test"));
Assert.Equal ("Both Foreground and Background colors must be provided.", jsonException.Message);
// Unknown proeprty
json = @"
{
@@ -761,7 +756,6 @@ namespace Terminal.Gui.ConfigurationTests {
//Assert.Equal ("AppSpecific", ConfigurationManager.Config.Settings.TestSetting);
}
[Fact]
public void Load_FiresUpdated ()
{

View File

@@ -40,7 +40,6 @@ namespace Terminal.Gui.ConfigurationTests {
Assert.Equal (expectedColor, actualColor);
}
[Theory]
[InlineData (Color.Black, "Black")]
[InlineData (Color.Blue, "Blue")]

View File

@@ -17,7 +17,6 @@ namespace Terminal.Gui.ConfigurationTests {
}
};
[Fact]
public void ThemeManager_ClassMethodsWork ()
{