🎨 MarlinUI for E3V2 tweaks

This commit is contained in:
Scott Lahteine
2021-08-27 16:12:08 -05:00
parent 72d7bbbbf6
commit 03344a0947
5 changed files with 24 additions and 33 deletions

View File

@ -579,14 +579,8 @@ void DWIN_Draw_Label(const uint8_t row, const __FlashStringHelper *title) {
}
void DWIN_Draw_Signed_Float(uint8_t size, uint16_t bColor, uint8_t iNum, uint8_t fNum, uint16_t x, uint16_t y, long value) {
if (value < 0) {
DWIN_Draw_String(true, size, Color_White, bColor, x - 8, y, F("-"));
DWIN_Draw_FloatValue(true, true, 0, size, Color_White, bColor, iNum, fNum, x, y, -value);
}
else {
DWIN_Draw_String(true, size, Color_White, bColor, x - 8, y, F(" "));
DWIN_Draw_FloatValue(true, true, 0, size, Color_White, bColor, iNum, fNum, x, y, value);
}
DWIN_Draw_String(true, size, Color_White, bColor, x - 8, y, value < 0 ? F("-") : F(" "));
DWIN_Draw_FloatValue(true, true, 0, size, Color_White, bColor, iNum, fNum, x, y, value < 0 ? -value : value);
}
void Draw_Edit_Integer3(const uint8_t row, const uint16_t value, const bool active=false) {