Increase/Decrease Font
Created by: thequbit
It would be great to be able to increase/decrease font size in the chat window for use on smaller screens, as well as display boards. After talking with support this seems possible, however not yet implemented.
Ctrl +, or a +/- button would be great.
Thank you for the continued development of gitter!
Workarounds
Open the dev tools via the Gitter menu at the top -> Developer tools -> Main window and run the following to zoom the whole window:
win.zoomLevel = 2;
For a more permanent solution, run your own build of the desktop app and use some JS to inject some CSS into the iframes.
Append to ./desktop/nwapp/loggedin.js
:
// Wait for the iframes to load in
setTimeout(function() {
var gitterRootDoc = win.window.document.querySelector('#mainframe').contentWindow.document;
var gitterChatAreaDoc = gitterRootDoc.querySelector('#content-frame').contentWindow.document;
var newStyleElement1 = gitterRootDoc.createElement('style');
newStyleElement1.innerHTML = `
* {
background-color: #f00;
}
`;
gitterRootDoc.body.appendChild(newStyleElement1);
var newStyleElement2 = gitterChatAreaDoc.createElement('style');
newStyleElement2.innerHTML = `
* {
background-color: #0f0;
}
`;
gitterChatAreaDoc.body.appendChild(newStyleElement2);
}, 5000);
Edited by 🤖 GitLab Bot 🤖