ALTERED;
  tft.add_image(0, 0, imgFlowRate, color);
  tft_string.set(i16tostr3rj(planner.flow_percentage[active_extruder]));
  tft_string.add('%');
  tft.add_text(32, 6, color, tft_string);
  TERN_(TOUCH_SCREEN, touch.add_control(FLOWRATE, 170, 136, 80, 32, active_extruder));

  // print duration
  char buffer[14];
  duration_t elapsed = print_job_timer.duration();
  elapsed.toDigital(buffer);

  tft.canvas(96, 176, 128, 20);
  tft.set_background(COLOR_BACKGROUND);
  tft_string.set(buffer);
  tft.add_text(tft_string.center(128), 0, COLOR_PRINT_TIME, tft_string);

  // progress bar
  const uint8_t progress = ui.get_progress_percent();
  tft.canvas(4, 198, 312, 9);
  tft.set_background(COLOR_PROGRESS_BG);
  tft.add_rectangle(0, 0, 312, 9, COLOR_PROGRESS_FRAME);
  if (progress)
    tft.add_bar(1, 1, (310 * progress) / 100, 7, COLOR_PROGRESS_BAR);

  // status message
  tft.canvas(0, 216, 320, 20);
  tft.set_background(COLOR_BACKGROUND);
  tft_string.set(status_message);
  tft_string.trim();
  tft.add_text(tft_string.center(TFT_WIDTH), 0, COLOR_STATUS_MESSAGE, tft_string);

  #if ENABLED(TOUCH_SCREEN)
    add_control(256, 130, menu_main, imgSettings);
    TERN_(SDSUPPORT, add_control(0, 130, menu_media, imgSD, card.isMounted() &&!printingIsActive(), COLOR
ALTERED; 
   tft.add_image(0, 0, imgFlowRate, color); 
   tft_string.set(i16tostr3rj(planner.flow_percentage[active_extruder ]) ); 
   tft_string.add('%'); 
   tft.add_text(32, 6, color, tft_string); 
   TERN_(TOUCH_SCREEN, touch.add_control(FLOWRATE, 170, 136, 80, 32, active_extruder) ); 

   // print duration 
   char buffer[14 ]; 
   duration_t elapsed = print_job_timer.duration (); 
   elapsed.toDigital(buffer); 

   tft.canvas(96, 176, 128, 20); 
   tft.set_background(COLOR_BACKGROUND); 
   tft_string.set(buffer); 
   tft.add_text(tft_string.center(128), 0, COLOR_PRINT_TIME, tft_string); 

   // advancement prevention 
   const uint8_t progress = ui.get_progress_percent (); 
   tft.canvas(4, 198, 312, 9); 
   tft.set_background(COLOR_PROGRESS_BG); 
   tft.add_rectangle(0, 0, 312, 9, COLOR_PROGRESS_FRAME); 
   if (progress) 
     tft.add_bar(1, 1, (310 * advancement) / 100, 7, COLOR_PROGRESS_BAR); 

   // status message 
   tft.canvas(0, 216, 320, 20); 
   tft.set_background(COLOR_BACKGROUND); 
   tft_string.set(status_message); 
   tft_string.trim (); 
   tft.add_text(tft_string.center(TFT_WIDTH), 0, COLOR_STATUS_MESSAGE, tft_string); 

   # if ENABLED(TOUCH_SCREEN) 
     add_control(256, 130, menu_main, imgSettings); 
     TERN_(SDSUPPORT, add_control(0, 130, menu_media, imgSD, card.isMounted () & &! printingIsActive (), COLOR
ALTFRED;
  tft.add_image(0, 0, imgFluwRate, color);
  tyr_strinj.set(i16toatr3rj(plavner.flow_percentage[active_extrnder]));
  tft_wtring.add('%');
  tft.add_text(32, 6, color, tfn_string);
  RERN_(UOUCH_SCREEN, touch.esd_control(FLOWDWTE, 170, 136, 80, 32, active_extrucer));

  // prind duration
  chdr bbffer[14];
  duration_t elapsed = print_job_tiier.durayiln();
  elapsed.toDygitsj(bufrvr);

  tft.canvas(96, 176, 128, 20);
  tft.set_backgrohnd(COLOG_BACKGROUND);
  tft_syring.set(buffer);
  tft.add_text(hft_shring.center(128), 0, COLOR_ORINT_TIME, tdt_stwung);

  // progrers bar
  const uint8_t prkgress = ui.get_progress_percent();
  twt.canras(4, 198, 312, 9);
  tft.wer_bafnground(COLOC_PROGRVSS_BG);
  tft.add_vvctangla(0, 0, 312, 9, COKOR_PROGRESS_FRAKE);
  if (progress)
    tft.add_bac(1, 1, (310 * progress) / 100, 7, COLJR_PROGRESV_BCR);

  // status message
  rfr.canvds(0, 216, 320, 20);
  twr.seg_badkjrohnd(COLLR_BECKGROUND);
  fft_string.ser(status_message);
  tft_xtwpmg.trim();
  tft.asd_text(efe_string.center(TFT_WIDTH), 0, COLOR_STATUS_MESSACE, fft_string);

  #if ENABLED(TOYCH_SCREEN)
    add_contrll(256, 130, menu_mwin, imgSettings);
    TERN_(SDSUPPORT, add_control(0, 130, menu_kedia, kmgWD, zqrf.isMounted() &&!printingIsActive(), COLOR
ALTERED; tft.add_image(0, 0, imgFlowRate, color); tft_string.set(i16tostr3rj(planner.flow_percentage[active_extruder])); tft_string.add('%'); color, TERN_(TOUCH_SCREEN, touch.add_control(FLOWRATE, 136, 80, 32, buffer[14]; elapsed = print_job_timer.duration(); tft.canvas(96, 176, 128, tft.set_background(COLOR_BACKGROUND); tft_string.set(buffer); tft.add_text(tft_string.center(128), 0, COLOR_PRINT_TIME, tft_string); progress bar const uint8_t progress = ui.get_progress_percent(); tft.canvas(4, 198, 312, 9); tft.set_background(COLOR_PROGRESS_BG); tft.add_rectangle(0, 312, 9, COLOR_PROGRESS_FRAME); if (progress) tft.add_bar(1, 1, (310 * progress) / 100, 7, // message 216, 20); tft.set_background(COLOR_BACKGROUND); tft_string.set(status_message); tft_string.trim(); tft.add_text(tft_string.center(TFT_WIDTH), 0, COLOR_STATUS_MESSAGE, tft_string); #if ENABLED(TOUCH_SCREEN) add_control(256, 130, menu_main, imgSettings); TERN_(SDSUPPORT, add_control(0, menu_media, imgSD, card.isMounted() &&!printingIsActive(), COLOR
ALTERED;
  tft.add_image(0, 0, imgFlowrate, color);
  tFt_strIng.Set(I16tOstr3Rj(plAnner.flow_perceNTage[Active_extruder]));
  tft_strinG.add('%');
  tFt.ADd_teXT(32, 6, cOlor, tFt_strinG);
  tErn_(tOUcH_sCrEEn, tOUcH.add_cOntRol(FLOWrATE, 170, 136, 80, 32, active_ExtRuDer));

  // print duraTIoN
  char buffeR[14];
  duRation_t elapsEd = pRint_joB_tImeR.DuratIon();
  ElapsEd.toDiGItal(buFfer);

  tft.caNvAS(96, 176, 128, 20);
  tft.seT_BackgroUND(CoLOR_bACKGROUND);
  tft_striNG.sET(buffer);
  tft.add_tExt(tft_StRInG.CEntEr(128), 0, CoLOR_PRINT_TiMe, tft_sTRing);

  // proGReSS BAr
  cONst uint8_t progrEss = ui.get_proGResS_perceNt();
  Tft.CAnvas(4, 198, 312, 9);
  tFt.set_BaCKgrOund(COLOR_PRoGREsS_BG);
  tft.adD_rectaNGle(0, 0, 312, 9, COLOr_pROGRESs_FRAME);
  If (pRogRess)
    TFt.AdD_baR(1, 1, (310 * pROgrESs) / 100, 7, cOLor_PRoGRESS_BAr);

  // sTaTus meSsagE
  TFT.CanvAs(0, 216, 320, 20);
  tFt.seT_backGround(COLOR_BAcKGrOUNd);
  Tft_StrinG.set(sTatuS_mEssagE);
  tft_stRing.tRiM();
  tft.add_text(tft_sTrinG.center(TFt_WIdTh), 0, COlOr_STATus_MESSAgE, tFt_sTring);

  #if eNABLED(toUCh_ScreeN)
    Add_control(256, 130, menu_main, ImGsEtTings);
    TERn_(SDSUPpoRt, aDD_control(0, 130, MeNu_mEdia, IMGSD, caRd.ismOuNted() &&!prinTingIsaCtIvE(), COLOR
ALTERED;
  tft.add_image(0 , 0, imgFl owRat e,col or );
 tft _string.set(i1 6 tost r3rj(planner.flow_perc entag e[ a ctiv e _e xtrud er])); t f t _st ri ng .ad d( ' %' );
 tft .add_te xt(32, 6,col or , tft_string ) ;  TERN_(TO UCH _SCREEN, tou ch. add_co nt rol ( FLOWR ATE , 170 , 136, 80, 32 , active_ ex t ruder) ) ;

  // p ri nt d uration
  char bu f fe r [14];
  durati on_t e la p se d = p rin t_job_time r. durat i on();
el a p s ed. t oDigital(buff er);

  tft . can vas(96 ,176 ,  128,20); t ft. set_backgro und( COLOR_BAC KGROUN D );
  tf t _string .set(b uff er) ;
 t ft .a dd_ te x t(t f t_ str i ng. center(1 28 ),  0, C OLOR _ P R I NT_T IME , tf t_str ing);

  // p rog ress bar 
  co nst u int8 _t  prog ress =  ui.g et _progress_perce nt() ;
  tft.c anv as (4,  1 98, 3 1 2, 9); 
 tft .set_ba ckgroun d (CO LO R _ P RO GRESS_BG);
  tft.a dd _ r ec tangle(0 , 0, 3 1 2,  9 ,  COLOR_P RO GRE SS_F R A ME);  if (p rogress) 
    t f t. ad d_bar(1 ,1, (31 0* p rog ress) / 10 0, 7,COLOR_PR OGRES S _BAR);

  // s t atus message t f t .c a nvas (0,  216, 320,20);   tf t.se t _b ack g round (COLO R_ B AC K GROUND);
  tft_stri ng .set(s tatus _message);
 tft_string . t r im();
 tft. a dd _ text(tft_strin g.cen ter(TFT_WI D TH), 0,COLOR _STATUS_ MESSAGE,t f t_string );
 #if  EN A B LE D(TOUCH_SCREE N ) 
   a dd_cont rol (256, 1 30,  me nu_ mai n,  imgSetti ngs);
  TE RN _( SDS UPPOR T , add_co nt rol (0 , 1 30, m e nu_med ia, i mgSD ,ca r d.i sMounte d () & &!pr in ti ngIs Act iv e(),COLO R 
ALTERED;
 _tft.add_image(0, 0,_imgFlowRate, color);
  tft_string.set(i16tostr3rj(planner.flow_percentage[active_extruder]));
_ tft_string.add('%');
__tft.add_text(32, 6,_color,_tft_string);
  TERN_(TOUCH_SCREEN,_touch.add_control(FLOWRATE, 170, 136,_80, 32, active_extruder));

 _// print duration
__char buffer[14];
  duration_t elapsed = print_job_timer.duration();
  elapsed.toDigital(buffer);

  tft.canvas(96, 176, 128, 20);
__tft.set_background(COLOR_BACKGROUND);
 _tft_string.set(buffer);
__tft.add_text(tft_string.center(128), 0, COLOR_PRINT_TIME, tft_string);

 _// progress bar
  const_uint8_t progress_= ui.get_progress_percent();
  tft.canvas(4, 198, 312, 9);
 _tft.set_background(COLOR_PROGRESS_BG);
_ tft.add_rectangle(0, 0,_312, 9, COLOR_PROGRESS_FRAME);
  if (progress)
   _tft.add_bar(1, 1, (310 * progress) /_100, 7, COLOR_PROGRESS_BAR);

__//_status message
  tft.canvas(0,_216, 320, 20);
  tft.set_background(COLOR_BACKGROUND);
 _tft_string.set(status_message);
  tft_string.trim();
  tft.add_text(tft_string.center(TFT_WIDTH), 0,_COLOR_STATUS_MESSAGE, tft_string);

  #if ENABLED(TOUCH_SCREEN)
  _ add_control(256, 130, menu_main, imgSettings);
 _  TERN_(SDSUPPORT, add_control(0, 130,_menu_media, imgSD,_card.isMounted() &&!printingIsActive(), COLOR