-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor UI background rendering. There's now a BackgroundScreen.
- Loading branch information
Showing
15 changed files
with
170 additions
and
119 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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -59,7 +59,6 @@ class UIScreen : public Screen { | |
|
||
protected: | ||
virtual void CreateViews() = 0; | ||
virtual void DrawBackground(UIContext &dc) {} | ||
|
||
void RecreateViews() override { recreateViews_ = true; } | ||
bool UseVerticalLayout() const; | ||
|
@@ -72,6 +71,8 @@ class UIScreen : public Screen { | |
bool ignoreInput_ = false; | ||
|
||
protected: | ||
This comment has been minimized.
Sorry, something went wrong.
unknownbrackets
Collaborator
|
||
virtual void DrawBackground(UIContext &ui) {} | ||
void SetupViewport(); | ||
void DoRecreateViews(); | ||
|
||
bool recreateViews_ = true; | ||
|
@@ -109,6 +110,9 @@ class PopupScreen : public UIDialogScreen { | |
|
||
void SetHasDropShadow(bool has) { hasDropShadow_ = has; } | ||
|
||
// For the postproc param sliders on DisplayLayoutScreen | ||
bool wantBrightBackground() const { return !hasDropShadow_; } | ||
|
||
protected: | ||
virtual bool FillVertical() const { return false; } | ||
virtual UI::Size PopupWidth() const { return 550; } | ||
|
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
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
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
Oops, something went wrong.
I would just name it
foundBackgroundScreen
...-[Unknown]