mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-15 11:53:49 +07:00
Because it's used in initLux, it's accessed at an early delicate stage. But UiUtil is a huge class that invokes a lot of stuff in its static init, and some of that stuff (JBInsets.create) involves scaling, which isn't initialized here yet. Invoking preload() from there was a mistake. It's not guaranteed that all data needed to compute the scaling factors is ready. And we don't really need it at that stage. To fix this properly, we extract just the part of UiUtil that's used in initLux. It isn't even a public API. And as a bonus, it'll be faster here too, as we don't need to load that huge class anymore. GitOrigin-RevId: 6ad6bbb24c7753cfb27f148e405a31117ad74964