@@ -510,7 +510,7 @@ function checkMessages(options) {
510510 active = "list" ;
511511 // Otherwise show a list of messages
512512 E . showScroller ( {
513- h : 48 ,
513+ h : 50 ,
514514 c : Math . max ( MESSAGES . length , 3 ) , // workaround for 2v10.219 firmware (min 3 not needed for 2v11)
515515 draw : function ( idx , r ) { "ram"
516516 var msg = MESSAGES [ idx ] ;
@@ -527,25 +527,25 @@ function checkMessages(options) {
527527 if ( img ) {
528528 var fg = g . getColor ( ) ,
529529 col = require ( "messageicons" ) . getColor ( msg , { settings, default :fg } ) ;
530- g . setColor ( col ) . drawImage ( img , x + 24 , r . y + 24 , { rotate :0 } ) // force centering
530+ g . setColor ( col ) . drawImage ( img , x + 20 , r . y + 24 , { rotate :0 } ) // force centering
531531 . setColor ( fg ) ; // only color the icon
532- x += 50 ;
532+ x += 40 ;
533533 }
534- if ( title ) g . setFontAlign ( - 1 , - 1 ) . setFont ( fontBig ) . drawString ( title , x , r . y + 2 ) ;
534+ if ( title ) g . setFontAlign ( - 1 , - 1 ) . setFont ( fontBig ) . drawString ( title , x , r . y + 1 ) ;
535535 var longBody = false ;
536536 if ( body ) {
537- g . setFontAlign ( - 1 , - 1 ) . setFont ( fontSmall ) ;
537+ g . setFontAlign ( - 1 , 0 ) . setFont ( fontSmall ) ;
538538 // if the body includes an image, it probably won't be small enough to allow>1 line
539- let maxLines = Math . floor ( 34 / g . getFontHeight ( ) ) , pady = 0 ;
540- if ( body . includes ( "\0" ) ) { maxLines = 1 ; pady = 4 ; }
541- var l = g . wrapString ( body , r . w - ( x + 14 ) ) ;
539+ let maxLines = Math . floor ( 34 / g . getFontHeight ( ) ) ;
540+ if ( body . includes ( "\0" ) ) { maxLines = 1 ; }
541+ var l = g . wrapString ( body , r . w - ( x + 8 ) ) ;
542542 if ( l . length > maxLines ) {
543543 l = l . slice ( 0 , maxLines ) ;
544544 l [ l . length - 1 ] += "..." ;
545545 }
546546 longBody = l . length > 2 ;
547547 // draw the body
548- g . drawString ( l . join ( "\n" ) , x + 10 , r . y + 20 + pady ) ;
548+ g . drawString ( l . join ( "\n" ) , x + 6 , r . y + 36 ) ;
549549 }
550550 if ( ! longBody && msg . src ) g . setFontAlign ( 1 , 1 ) . setFont ( "6x8" ) . drawString ( msg . src , r . x + r . w - 2 , r . y + r . h - 2 ) ;
551551 g . setColor ( "#888" ) . fillRect ( r . x , r . y + r . h - 1 , r . x + r . w - 1 , r . y + r . h - 1 ) ; // dividing line between items
0 commit comments