Stop hardcoding the colors of the homebrew store title.

See #18802
This commit is contained in:
Henrik Rydgård 2024-10-23 15:39:45 +02:00
parent abe27dcb64
commit 1092fc6374

View File

@ -523,9 +523,9 @@ void StoreScreen::CreateViews() {
LinearLayout *topBar = root_->Add(new LinearLayout(ORIENT_HORIZONTAL, new LinearLayoutParams(FILL_PARENT, 64.0f))); LinearLayout *topBar = root_->Add(new LinearLayout(ORIENT_HORIZONTAL, new LinearLayoutParams(FILL_PARENT, 64.0f)));
topBar->Add(new Choice(di->T("Back"), new LinearLayoutParams(WRAP_CONTENT, FILL_PARENT)))->OnClick.Handle<UIScreen>(this, &UIScreen::OnBack); topBar->Add(new Choice(di->T("Back"), new LinearLayoutParams(WRAP_CONTENT, FILL_PARENT)))->OnClick.Handle<UIScreen>(this, &UIScreen::OnBack);
titleText_ = new TextView(mm->T("PPSSPP Homebrew Store"), ALIGN_VCENTER, false, new LinearLayoutParams(WRAP_CONTENT, FILL_PARENT)); titleText_ = new TextView(mm->T("PPSSPP Homebrew Store"), ALIGN_VCENTER, false, new LinearLayoutParams(WRAP_CONTENT, FILL_PARENT));
titleText_->SetTextColor(screenManager()->getUIContext()->GetTheme().itemFocusedStyle.fgColor);
topBar->Add(titleText_); topBar->Add(titleText_);
UI::Drawable solid(0xFFbd9939); topBar->SetBG(screenManager()->getUIContext()->GetTheme().itemFocusedStyle.background);
topBar->SetBG(solid);
LinearLayout *content; LinearLayout *content;
if (connectionError_ || loading_) { if (connectionError_ || loading_) {