yangjun
yangjun
the patch for 5653 doesn't fix this, i found when you mouse hover over the balck window, it will restore normal display
with simple example below, it seems more like 5653 now, the black window is black until resize window, even i hover and move the window, it always black, but only...
i add myApp.Settings().SetTheme(theme.LightTheme()) after app.New(), the bug disapear, i don't know why. 
seems the black window not init theme ok, fyne seems default to dark theme or maybe a lazy init.
> I doubt that it would be causing this. We just set dark or light theme depending on what the system tells us (with fallbacks for errors and incorrect values)....
> Are you using the X11 session of Plasma? If not, would you mind trying Wayland and testing again? sorry i only run x11, no Wayland
try v2.6.3 and it is ok now, at least on my pc.
可以参巧一下这个https://www.v2ex.com/t/921641#reply5
链接过程不太一样,原理倒是行得通的,不过应该要patch go源码才行了,xp希望不大,win7应该还是可以的
> 建议你试试,主要是我并不清楚需要修改什么…… golang 新版本会用一些新的api, 当然是旧版本系统没有的。如: https://github.com/golang/go/blob/2e064cf14441460290fd25d9d61f02a9d0bae671/src/runtime/os_windows.go#L250C2-L254C77 ``` bcryptPrimitives := windowsLoadSystemLib(bcryptprimitivesdll[:]) if bcryptPrimitives == 0 { throw("bcryptprimitives.dll not found") } _ProcessPrng = windowsFindfunc(bcryptPrimitives, []byte("ProcessPrng\000")) ```