USB and log icons relative to target screen width
This commit is contained in:
@@ -112,11 +112,11 @@ void TopbarImpl::paint(BitmapBuffer * dc)
|
||||
flags = MENU_TITLE_DISABLE_COLOR;
|
||||
}
|
||||
|
||||
dc->drawBitmapPattern(LCD_W - 98, 8, LBM_TOPMENU_USB, flags);
|
||||
dc->drawBitmapPattern(USB_X, 8, LBM_TOPMENU_USB, flags);
|
||||
}
|
||||
// Logs
|
||||
else if (isFunctionActive(FUNCTION_LOGS) && BLINK_ON_PHASE) {
|
||||
dc->drawBitmapPattern(LCD_W - 98, 6, LBM_DOT, FOCUS_COLOR);
|
||||
dc->drawBitmapPattern(LOG_X, 6, LBM_DOT, FOCUS_COLOR);
|
||||
}
|
||||
|
||||
// RSSI
|
||||
|
||||
@@ -86,6 +86,8 @@ constexpr uint32_t DATETIME_MIDDLE = (LCD_W + DATETIME_SEPARATOR_X
|
||||
|
||||
constexpr uint32_t RSSI_X = LCD_W - 90;
|
||||
constexpr uint32_t AUDIO_X = LCD_W - 130;
|
||||
constexpr uint32_t USB_X = LCD_W - 98;
|
||||
constexpr uint32_t LOG_X = LCD_W - 98;
|
||||
|
||||
constexpr uint32_t MENUS_TOOLBAR_BUTTON_WIDTH = 30;
|
||||
constexpr uint32_t MENUS_TOOLBAR_BUTTON_PADDING = 3;
|
||||
|
||||
@@ -86,6 +86,8 @@ constexpr uint32_t DATETIME_MIDDLE = (LCD_W + DATETIME_SEPARATOR_X
|
||||
|
||||
constexpr uint32_t RSSI_X = LCD_W - 80;
|
||||
constexpr uint32_t AUDIO_X = LCD_W - 115;
|
||||
constexpr uint32_t USB_X = LCD_W - 82;
|
||||
constexpr uint32_t LOG_X = LCD_W - 82;
|
||||
|
||||
constexpr uint32_t MENUS_TOOLBAR_BUTTON_WIDTH = 30;
|
||||
constexpr uint32_t MENUS_TOOLBAR_BUTTON_PADDING = 3;
|
||||
|
||||
Reference in New Issue
Block a user