Add an "info textview" with a border.

This commit is contained in:
Henrik Rydgård committed 2026-10-31 00:27:10 +01:00
1 parent 3ddea502dc
commit 67763e48a1
3 files changed
+13 -1

No files matched your search

+7 -1
View File
@@ -366,7 +366,13 @@ static UI::View *CreateSettingViewInner(const SettingItem &item, I18NCat pageCat
case SettingType::Hint:
return parent->Add(new SettingHint(text, prevView));
case SettingType::Description:
return parent->Add(new SettingHint(text, nullptr));
{
TextView *description = parent->Add(new TextView(text, FLAG_WRAP_TEXT, false, new LinearLayoutParams(FILL_PARENT, WRAP_CONTENT, Margins(0, 4))));
description->SetTextSize(TextSize::Small);
description->SetPadding(Margins(12));
description->SetFrame(true);
return description;
}
case SettingType::Custom:
return item.createCustom(parent);
case SettingType::Link: