proneon267

Results 110 comments of proneon267

I have added support so that the font scales when the DPI changes while the app is running. I have also added Screen as an optional dependency to Scalable class,...

When the app is scaled from 125% -> 100% -> 175%, then the menu bar appears to be clipped, due to incorrect calculation of main_window.context box: ![Screenshot (20)](https://github.com/beeware/toga/assets/45512885/4a336f83-3429-4522-93aa-27a62ea367a9) This needs...

Nevermind. The bug was caused due to the faulty implementation of WeakRef introduced in #2066 and reported in #2163. https://github.com/beeware/toga/blob/7a46d410be4da0f0b3aee622cbfccb282b87973f/winforms/src/toga_winforms/window.py#L36 After removing the WeakRef wrapping, the resizing event handler appears...

In that case, I'll search further and report back what is causing the tests to fail.

Turns out the bugs were related to Hwnds being created at inappropriate times. As discussed in https://github.com/beeware/toga/pull/2155#discussion_r1365672659, the Hwnds are being created even before the Application instance is created. I...

> By "system DPI", do you mean the setting in your screenshots above? Or the one I mentioned in #2135, which doesn't take effect until you log out and in...

On further testing, it seems the stack trace dialog fonts are not being scaled. This needs to be fixed.

I have made the stack trace dialogs to scale with DPI change. Here is test app: At 125% scalling: ![image](https://github.com/beeware/toga/assets/45512885/bb2c2ee5-3764-413a-9498-008699fd3db8) At 175% scaling: ![image](https://github.com/beeware/toga/assets/45512885/2e391e7d-90be-4835-b306-4802ca3dd15a) Do let me know if anything...

@freakboy3742 could you please take a quick look at why the windows testbed fails? No failure messages is generated. Does it fail because of missing test coverage?