cogentcore / core

A free and open source framework for building powerful, fast, elegant 2D and 3D apps that run on macOS, Windows, Linux, iOS, Android, and the web with a single Go codebase, allowing you to Code Once, Run Everywhere.
http://cogentcore.org/core
BSD 3-Clause "New" or "Revised" License
1.72k stars 80 forks source link

Not all elements are updating on settings changes #709

Open kkoreilly opened 9 months ago

kkoreilly commented 9 months ago

We may need to handle some global Restyle/Rebuild flag.

ddkwork commented 9 months ago

I agree with this opinion, on Win11 and Android devices, you have to set zoom to 50%-80% every time for it to display properly

kkoreilly commented 7 months ago

Text editor and xyz are the main things that need to be fixed for this; xyz will require a major redesign of the 3d styling paradigm.

rcoreilly commented 3 months ago

xyz is fixed in 6b257619fe57dc62d90173941b40f1994ee96ffd , using styler on the outer core widget for the background color and logic in Text2D that detects usage of standard font color and updates it accordingly.

rcoreilly commented 3 months ago

texteditor histyle here: 5c74c765a

kkoreilly commented 2 months ago

There are still some issues with scrollbars and text field cursors not updating on theme change. Also, we still need to redesign xyz to use updaters and plans (#1022), which will fully resolve theme changing for xyz.

kkoreilly commented 2 months ago

Note that the scrollbars also do not update in the interactive styling demo in the docs and demo due to their insulation from the normal updating process, so we may want to just implement NodeWalkDown on Frame for them so that they always update properly.