-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
messages app: Feature request - variable font size #1294
Comments
I support this request. 👍 I thought in the morning about to use bangle2 touchscreen in showMessage function:
Any feedback which swipe/tap/drag would fit the best?
During such an extension it should be "easy" to implement small, medium, large font size related #1148 - which als suggest 3 font sizes |
prototype swiping (will allow a larger textarea and prepares to set font large for body) without buttons but a global variable and one swipe handler and one duble tap handler Testmessages - Mock var MESSAGES = [{t:"notify",id:"mail", new: true, title:"This is long title. Very Long. Ipse lorum actum ractum dactum benedictum benedactum showMessage should be scroll :-p", body:"This is long BODY. Very Long. Ipse lorum actum ractum dactum benedictum benedactum showMessage should be scrollalble - yes, scroll and use the touch screen and replace back button with swipe left, so we can read until here with font medium :-p", src:"Mail", subject: "SUBJECT", positive: true, negative: true},
{t:"notify",id:"phone", new: true, title:"short title.", body:"This is short BODY.", src:"Mail", subject: "SUBJECT"}]; var currentShowMsgId;
function showMessage(msgid) { .... // Normal text message display
currentShowMsgId=msgid; No Buttons: so commented out
register touch-handlers that will execute same code via msgid Bangle.on('tap', function(tapped) { //double tap for back
console.log("tapped", tapped);
if (currentShowMsgId && tapped.double) {
msg=MESSAGES.find(m=>m.id==msgid);
if (!msg) return;
msg.new = false;
saveMessages(); // read mail
cancelReloadTimeout(); // don't auto-reload to clock now
currentShowMsgId=undefined;
checkMessages({clockIfNoMsg:1,clockIfAllRead:0,showMsgIfUnread:0});
} // back
});
Bangle.on('swipe', function(swiped) {
console.log("swiped", swiped, "msgid", currentShowMsgId);
if (currentShowMsgId && (swiped===1 || swiped===-1)) { //swipe right for positive //swipe left for negative
msg=MESSAGES.find(m=>m.id==currentShowMsgId);
console.log(msg);
if (msg && (msg.positive||msg.negative)) {
msg.new = false;
saveMessages();
cancelReloadTimeout(); // don't auto-reload to clock now
if (Bangle.messageResponse) //usefull if app is missing or in IDE
//when swiped===-1 && msg.negative -> send false
Bangle.messageResponse(msg,swiped===1 && msg.positive);
currentShowMsgId=undefined; //reset global, dirty?
checkMessages({clockIfNoMsg:1,clockIfAllRead:1,showMsgIfUnread:1});
}
}
}); remove buttons from layout: {type:"txt", font:bodyCfg.font, label:body, fillx:1, filly:1, pad:2 },
//{type:"h",fillx:1, c: buttons}
]});
|
so just for checkup: Bangle.on('gesture', function(xyz)
console.log('gesture' ,xyz); //never triggered
});
Bangle.on('stroke', function(event) {
console.log('stroke' ,event); //never triggered
});
Bangle.on('touch', function(button, xy) {
console.log('touch', button, xy); //triggered but not usefull to scroll detect swipe/path up/down - can be used for touble tap with again a global *narf*
}); confused |
Hi, I think the message font sizes have already been mentioned in #1145 / #1148 / #1031 Right now the message title font does change dynamically depending on how much text there is, so doing the same for the body text is probably no big deal. For the swipe - sounds like a plan but if the message is just displayed with no buttons and there's no documentation onscreen nobody will know how to use it. Also how do you know whether you even can ack/nack a message as some can't (esp on iOS). It'll need icons right at the bottom I guess to indicate that swiping does a specific action. @DDDanny these kind of question are best asked in the forum, and I think the reference has info too. But: gesture: needs the gestures file installed and uses the accelerometer, stroke: works for me, but there is a minimum stroke length. I think what you're after is Also |
Agreed - the font size issue is pretty clearly getting looked at in other issues - sorry for not finding them first. The repo being big and for all the apps at once makes it a bit tricky, but I shoulda looked harder all the same. Gonna close this issue for now as I think the main ideas are well enough represented elsewhere. In future, I'll start in the forums. :) |
Font size of messages app is a bit small for my old eyes.
Please consider:
or
and/ or
It seems like an option to get rid of the buttons on the bottom in favor of a gesture, in order to retain more usable screen real estate for message text, could be another way to make messages more readable.
Thanks for making this great platform! It's really fantastic.
The text was updated successfully, but these errors were encountered: