Add background to the scroll views. Not really pretty but more readable

This commit is contained in:
Henrik Rydgård committed 2022-12-07 23:12:09 +01:00
1 parent 79d303f35c
commit 42b74c6a9a
4 files changed
+14 -1

No files matched your search

+5
View File
@@ -218,6 +218,11 @@ void DisplayLayoutScreen::CreateViews() {
LinearLayout *bottomControls = new LinearLayout(ORIENT_HORIZONTAL, new AnchorLayoutParams(NONE, NONE, NONE, 10.0f, false));
root_->Add(bottomControls);
// Set backgrounds for readability
Drawable backgroundWithAlpha(GetBackgroundColorWithAlpha(*screenManager()->getUIContext()));
leftScrollView->SetBG(backgroundWithAlpha);
rightScrollView->SetBG(backgroundWithAlpha);
if (!IsVREnabled()) {
auto stretch = new CheckBox(&g_Config.bDisplayStretch, gr->T("Stretch"));
rightColumn->Add(stretch);