Add extra increased font size to Windowed Console

Added extra large font to the windowed console.  Use the [-A]  [A+] buttons to change the size.

Preferably would introduce "lineSpacing"  to the GuiConsole object for improved readability; as well to store this into the prefs.
This commit is contained in:
Nils Eikelenboom 2024-09-24 21:43:01 +02:00
parent 02b86eafee
commit 8f2dbd5e2f
2 changed files with 13 additions and 0 deletions

View file

@ -1569,6 +1569,11 @@ new GuiControlProfile(ToolsGuiConsoleLargeProfile : ToolsGuiConsoleProfile)
{
fontSize = $GUI::fontSize[16];
};
if(!isObject(ToolsGuiConsoleXLProfile))
new GuiControlProfile(ToolsGuiConsoleXLProfile : ToolsGuiConsoleProfile)
{
fontSize = $GUI::fontSize[18];
};
if(!isObject(ToolsGuiConsoleTextProfile))
new GuiControlProfile(ToolsGuiConsoleTextProfile)
{

View file

@ -252,6 +252,10 @@ function windowConsoleDlg::incFont()
{
switch ($Con::font)
{
case 16:
windowConsoleMessageLogView.setProfile(ToolsGuiConsoleXLProfile);
$Con::font = 18;
windowConsoleMessageLogView.refresh();
case 14:
windowConsoleMessageLogView.setProfile(ToolsGuiConsoleLargeProfile);
$Con::font = 16;
@ -275,6 +279,10 @@ function windowConsoleDlg::decFont()
windowConsoleMessageLogView.setProfile(ToolsGuiConsoleMediumProfile);
$Con::font = 14;
windowConsoleMessageLogView.refresh();
case 18:
windowConsoleMessageLogView.setProfile(ToolsGuiConsoleLargeProfile);
$Con::font = 16;
windowConsoleMessageLogView.refresh();
}
}