-
Notifications
You must be signed in to change notification settings - Fork 172
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Avoid a flashing window blink during startup
The very first paint events cause a bright flash of unstyled shell content to appear before the configured colors are applied. Defer displaying the shell widget until nvim sends us colors. Instead of seeing the shell with its constructor-provided colors we will instead see Qt's default window background color, which follows the user's desktop theme and dark mode settings. The shell is made visible either after nvim sends a "default_colors_set" message and the colors are applied, or when the visibility timer fires, whichever happens first. In practice, the "default_colors_set" message is typically received before the timer times out and runs its callback.
- Loading branch information
Showing
2 changed files
with
29 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters