-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Start working on updating to pre710 nuget package #289
Conversation
200 failing tests
|
Further work requires updating once gui-cs/Terminal.Gui#3402 is merged and published
this.button = new Terminal.Gui.Button();
this.greyOnBlack = new Terminal.Gui.ColorScheme();
this.greyOnBlack.Normal = new Terminal.Gui.Attribute(Terminal.Gui.Color.DarkGray, Terminal.Gui.Color.Black);
this.greyOnBlack.HotNormal = new Terminal.Gui.Attribute(Terminal.Gui.Color.DarkGray, Terminal.Gui.Color.Black);
this.greyOnBlack.Focus = new Terminal.Gui.Attribute(Terminal.Gui.Color.Black, Terminal.Gui.Color.DarkGray);
this.greyOnBlack.HotFocus = new Terminal.Gui.Attribute(Terminal.Gui.Color.Black, Terminal.Gui.Color.DarkGray);
this.greyOnBlack.Disabled = new Terminal.Gui.Attribute(Terminal.Gui.Color.DarkGray, Terminal.Gui.Color.Black); And must be initialized like this: this.button = new Terminal.Gui.Button();
this.greyOnBlack = new Terminal.Gui.ColorScheme()
{
Normal = new Terminal.Gui.Attribute(Terminal.Gui.Color.DarkGray, Terminal.Gui.Color.Black),
HotNormal = new Terminal.Gui.Attribute(Terminal.Gui.Color.DarkGray, Terminal.Gui.Color.Black),
Focus = new Terminal.Gui.Attribute(Terminal.Gui.Color.Black, Terminal.Gui.Color.DarkGray),
HotFocus = new Terminal.Gui.Attribute(Terminal.Gui.Color.Black, Terminal.Gui.Color.DarkGray),
Disabled = new Terminal.Gui.Attribute(Terminal.Gui.Color.DarkGray, Terminal.Gui.Color.Black)
}; |
We cannot use initializer lists in code gen because it is not supported. Need to add the constructor call instead. |
In the
|
This did the trick. var fSide = posView.GetType().GetField("<side>P", BindingFlags.NonPublic | BindingFlags.Instance) ?? throw new Exception("PosView was missing expected field 'side'");
var iSide = fSide.GetValue(posView) |
|
Nice detective work on |
Ok think I got all the |
Tznind pre636 support
I was thinking about this and came to the conclusion that using |
Yes, I agree. Previously these were Now it should be more possible to use But I think it will have to wait till that refactoring is done in gui-cs/Terminal.Gui#3482. |
Another problem I'm encountering is with resizing a view because on the sides and bottom, as long as there is a border, it will just move the view instead of resizing it. I think the TG should rethink this behavior. Movement should only be possible from the top and sides and at the bottom it should only allow resizing. |
This is how it is supposed to work. Bottom right few cells are for resizing, the rest are for moving. This allows a 1xN view to be resized (regardless of whether or not it has a frame). I think there is a bug in the mouse handling code of TGD. It worked before in v1 and v2 before all the mouse changes. Possibly in the migration to the new mouse API something is not translating positions correctly. This is probably why all the mouse click and drag tests are now failing |
Building but completely broken
- delete now working correctly instead of free type - Shift now ignored instead of adding 'S' - Fix space which was adding 'S'
Only 1 failing test now. I think it might be around screen/local coordinates of views. I need to do more manual testing to understand any gaps. I especially need to test multiple nested views that are not at origin of parent view to ensure coordinates are all resolving correctly. Other outstanding issues:
|
Updates Terminal.Gui v2 dependency to latest.