File tree Expand file tree Collapse file tree 3 files changed +5
-4
lines changed Expand file tree Collapse file tree 3 files changed +5
-4
lines changed Original file line number Diff line number Diff line change 117117 Remove workaround for 2v10 (>3 years ago) - assume everyone is on never firmware now
1181180.86: Default to showing message scroller (with title, bigger icon)
1191190.87: Make choosing of font size more repeatable
120+ 0.88: Adjust padding calculation so messages are spaced out properly even when using international fonts
Original file line number Diff line number Diff line change @@ -391,8 +391,6 @@ function showMessage(msgid, persist) {
391391 }
392392 }
393393 lines = g . setFont ( bodyFont ) . wrapString ( body , w ) ;
394- if ( lines . length < 3 )
395- lines . unshift ( "" ) ; // if less lines, pad them out a bit at the top!
396394 }
397395 let negHandler , posHandler , rowLeftDraw , rowRightDraw ;
398396 if ( msg . negative ) {
@@ -432,12 +430,14 @@ function showMessage(msgid, persist) {
432430 }
433431 let fontHeight = g . setFont ( bodyFont ) . getFontHeight ( ) ;
434432 let lineHeight = ( fontHeight > 25 ) ?fontHeight :25 ;
435- if ( title . includes ( "\n" ) ) lineHeight = 25 ; // ensure enough room for 2 lines of title in header
433+ if ( title . includes ( "\n" ) && lineHeight < 25 ) lineHeight = 25 ; // ensure enough room for 2 lines of title in header
436434 let linesPerRow = 2 ;
437435 if ( fontHeight < 17 ) {
438436 lineHeight = 16 ;
439437 linesPerRow = 3 ;
440438 }
439+ if ( ( lines . length + 4.5 ) * lineHeight < Bangle . appRect . h )
440+ lines . unshift ( "" ) ; // if less lines, pad them out a bit at the top!
441441 let rowHeight = lineHeight * linesPerRow ;
442442 let textLineOffset = - ( linesPerRow + ( ( rowLeftDraw || rowRightDraw ) ?1 :0 ) ) ;
443443 let msgIcon = require ( "messageicons" ) . getImage ( msg ) ;
Original file line number Diff line number Diff line change 22 "id" : " messagegui" ,
33 "name" : " Message UI" ,
44 "shortName" : " Messages" ,
5- "version" : " 0.87 " ,
5+ "version" : " 0.88 " ,
66 "description" : " Default app to display notifications from iOS and Gadgetbridge/Android" ,
77 "icon" : " app.png" ,
88 "type" : " app" ,
You can’t perform that action at this time.
0 commit comments