Split the display layout config between landscape and portrait orientations

This commit is contained in:
Henrik Rydgård
2025-11-05 12:49:51 +01:00
parent 3e2edbfe81
commit 67010ff2af
60 changed files with 480 additions and 317 deletions
+2 -2
View File
@@ -9,7 +9,7 @@ void UISimpleBaseDialogScreen::CreateViews() {
const bool canScroll = CanScroll();
ignoreBottomInset_ = canScroll;
const bool portrait = UsePortraitLayout();
const bool portrait = GetDeviceOrientation() == DeviceOrientation::Portrait;
root_ = new LinearLayout(ORIENT_VERTICAL, new LayoutParams(FILL_PARENT, FILL_PARENT));
root_->Add(new TopBar(*screenManager()->getUIContext(), portrait, GetTitle()));
@@ -29,7 +29,7 @@ void UISimpleBaseDialogScreen::CreateViews() {
void UITwoPaneBaseDialogScreen::CreateViews() {
using namespace UI;
const bool portrait = UsePortraitLayout();
const bool portrait = GetDeviceOrientation() == DeviceOrientation::Portrait;
auto di = GetI18NCategory(I18NCat::DIALOG);