~aleteoryx/muditaos

cb4aac9b85f9e92dc8f2f177161f3fc89c1891c9 — Wojtek Rzepecki 4 years ago 682fb74
[EGD-7734] Fix alarm popup display issues

fixed issues when refreshing alarm popup
1 files changed, 3 insertions(+), 2 deletions(-)

M module-apps/apps-common/popups/AlarmPopup.cpp
M module-apps/apps-common/popups/AlarmPopup.cpp => module-apps/apps-common/popups/AlarmPopup.cpp +3 -2
@@ 124,7 124,7 @@ namespace gui
        alarmTimeLabel->setFont(style::window::font::largelight);
        alarmTimeLabel->setAlignment(gui::Alignment(gui::Alignment::Horizontal::Center, gui::Alignment::Vertical::Top));
        alarmTimeLabel->setText(getPresenter()->startedAt());
        alarmTimeLabel->setMinimumWidthToFitText(alarmTimeLabel->getText());
        alarmTimeLabel->setMaximumWidth(style::window::default_body_width);
        alarmTimeLabel->setMinimumHeightToFitText();
        alarmTimeLabel->setMargins(Margins(
            0, style::popup::alarm::AlarmTimeLabel::top_margin, 0, style::popup::alarm::AlarmTimeLabel::bottom_margin));


@@ 154,7 154,7 @@ namespace gui
                gui::Alignment(gui::Alignment::Horizontal::Center, gui::Alignment::Vertical::Bottom));
            snoozeLabel->setText(utils::translate("app_popup_alarm_snoozed_till") + std::string{" "} +
                                 getPresenter()->snoozedTill());
            snoozeLabel->setMinimumWidthToFitText(snoozeLabel->getText());
            snoozeLabel->setMaximumWidth(style::window::default_body_width);
            snoozeLabel->setMinimumHeightToFitText();
        }
    }


@@ 185,5 185,6 @@ namespace gui
            snoozeLabel->setText(utils::translate("app_popup_alarm_snoozed_till") + std::string{" "} +
                                 getPresenter()->snoozedTill());
        }
        body->resizeItems();
    }
} // namespace gui