mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-19 00:37:25 +01:00
Match names everywhere
This commit is contained in:
@@ -31,7 +31,7 @@ void AppsWindow::refreshPreferences() {
|
||||
}
|
||||
|
||||
bool AppsWindow::updateAlphaLock() {
|
||||
return m_titleBarView.setAlphaLockStatus(Ion::Events::shiftAlphaStatus());
|
||||
return m_titleBarView.setShiftAlphaLockStatus(Ion::Events::shiftAlphaStatus());
|
||||
}
|
||||
|
||||
void AppsWindow::hideTitleBarView(bool hide) {
|
||||
|
||||
@@ -42,8 +42,8 @@ bool TitleBarView::setIsPlugged(bool isPlugged) {
|
||||
return m_batteryView.setIsPlugged(isPlugged);
|
||||
}
|
||||
|
||||
bool TitleBarView::setAlphaLockStatus(Ion::Events::ShiftAlphaStatus status) {
|
||||
return m_alphaLockView.setStatus(status);
|
||||
bool TitleBarView::setShiftAlphaLockStatus(Ion::Events::ShiftAlphaStatus status) {
|
||||
return m_shiftAlphaLockView.setStatus(status);
|
||||
}
|
||||
|
||||
int TitleBarView::numberOfSubviews() const {
|
||||
@@ -61,7 +61,7 @@ View * TitleBarView::subviewAtIndex(int index) {
|
||||
return &m_examModeIconView;
|
||||
}
|
||||
if (index == 3) {
|
||||
return &m_alphaLockView;
|
||||
return &m_shiftAlphaLockView;
|
||||
}
|
||||
return &m_batteryView;
|
||||
}
|
||||
@@ -81,8 +81,8 @@ void TitleBarView::layoutSubviews() {
|
||||
} else {
|
||||
m_examModeIconView.setFrame(KDRectZero);
|
||||
}
|
||||
KDSize alphaLockSize = m_alphaLockView.minimalSizeForOptimalDisplay();
|
||||
m_alphaLockView.setFrame(KDRect(bounds().width()-batterySize.width()-k_batteryRightMargin-k_alphaRightMargin-alphaLockSize.width(), (bounds().height()- alphaLockSize.height())/2, alphaLockSize));
|
||||
KDSize shiftAlphaLockSize = m_shiftAlphaLockView.minimalSizeForOptimalDisplay();
|
||||
m_shiftAlphaLockView.setFrame(KDRect(bounds().width()-batterySize.width()-k_batteryRightMargin-k_alphaRightMargin-shiftAlphaLockSize.width(), (bounds().height()- shiftAlphaLockSize.height())/2, shiftAlphaLockSize));
|
||||
}
|
||||
|
||||
void TitleBarView::refreshPreferences() {
|
||||
|
||||
@@ -15,7 +15,7 @@ public:
|
||||
bool setChargeState(Ion::Battery::Charge chargeState);
|
||||
bool setIsCharging(bool isCharging);
|
||||
bool setIsPlugged(bool isPlugged);
|
||||
bool setAlphaLockStatus(Ion::Events::ShiftAlphaStatus status);
|
||||
bool setShiftAlphaLockStatus(Ion::Events::ShiftAlphaStatus status);
|
||||
void refreshPreferences();
|
||||
private:
|
||||
constexpr static KDCoordinate k_batteryRightMargin = 5;
|
||||
@@ -29,7 +29,7 @@ private:
|
||||
View * subviewAtIndex(int index) override;
|
||||
MessageTextView m_titleView;
|
||||
BatteryView m_batteryView;
|
||||
ShiftAlphaLockView m_alphaLockView;
|
||||
ShiftAlphaLockView m_shiftAlphaLockView;
|
||||
BufferTextView m_preferenceView;
|
||||
ImageView m_examModeIconView;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user