diff --git a/apps/title_bar_view.cpp b/apps/title_bar_view.cpp index b22c32571..0c2902b27 100644 --- a/apps/title_bar_view.cpp +++ b/apps/title_bar_view.cpp @@ -60,7 +60,7 @@ void TitleBarView::layoutSubviews() { m_titleView.setFrame(KDRect(0, 2, bounds().width(), bounds().height()-2)); m_preferenceView.setFrame(KDRect(k_preferenceMargin, 0, m_preferenceView.minimalSizeForOptimalDisplay().width(), bounds().height())); KDSize batterySize = m_batteryView.minimalSizeForOptimalDisplay(); - m_batteryView.setFrame(KDRect(bounds().width() - batterySize.width() - k_batteryLeftMargin, (bounds().height()- batterySize.height())/2, batterySize)); + m_batteryView.setFrame(KDRect(bounds().width() - batterySize.width() - k_batteryRightMargin, (bounds().height()- batterySize.height())/2, batterySize)); if (GlobalPreferences::sharedGlobalPreferences()->examMode() == GlobalPreferences::ExamMode::Activate) { m_examModeIconView.setFrame(KDRect(k_examIconMargin, (bounds().height() - k_examIconHeight)/2, k_examIconWidth, k_examIconHeight)); } else { diff --git a/apps/title_bar_view.h b/apps/title_bar_view.h index 33ec2fde1..538266dea 100644 --- a/apps/title_bar_view.h +++ b/apps/title_bar_view.h @@ -14,7 +14,7 @@ public: bool setIsCharging(bool isCharging); void refreshPreferences(); private: - constexpr static KDCoordinate k_batteryLeftMargin = 5; + constexpr static KDCoordinate k_batteryRightMargin = 5; constexpr static KDCoordinate k_preferenceMargin = 3; constexpr static KDCoordinate k_examIconWidth = 18; constexpr static KDCoordinate k_examIconHeight = 9;