Skip to content

Commit

Permalink
Close #98
Browse files Browse the repository at this point in the history
  • Loading branch information
rafajaques committed Jun 8, 2016
1 parent 8e0acd7 commit 8325b3e
Show file tree
Hide file tree
Showing 7 changed files with 26 additions and 9 deletions.
7 changes: 7 additions & 0 deletions app/js/main.functions.js
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,13 @@ function decreaseFontSize() {
$('#console,#console-html').css('font-size', consSize);
}

/* Editor font size back to default */
function defaultFontSize() {
const size = parseInt(conf.get('editor.font-size'), 10);
$('#editor').css('font-size', size);
$('#console,#console-html').css('font-size', 16); // Hardcoded for a while...
}

/**
* Configure app UI
* @param {refresh} boolean - render only stuff modified by settings
Expand Down
5 changes: 3 additions & 2 deletions app/locales/da.json
Original file line number Diff line number Diff line change
Expand Up @@ -89,5 +89,6 @@
"When a working path is set, your code will be executed in that directory context.": "When a working path is set, your code will be executed in that directory context.",
"Update available": "Update available",
"Check for updates automatically": "Check for updates automatically",
"Check for updates now": "Check for updates now"
}
"Check for updates now": "Check for updates now",
"Default font size": "Default font size"
}
5 changes: 3 additions & 2 deletions app/locales/de.json
Original file line number Diff line number Diff line change
Expand Up @@ -89,5 +89,6 @@
"When a working path is set, your code will be executed in that directory context.": "When a working path is set, your code will be executed in that directory context.",
"Update available": "Update available",
"Check for updates automatically": "Check for updates automatically",
"Check for updates now": "Check for updates now"
}
"Check for updates now": "Check for updates now",
"Default font size": "Default font size"
}
5 changes: 3 additions & 2 deletions app/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -89,5 +89,6 @@
"When a working path is set, your code will be executed in that directory context.": "When a working path is set, your code will be executed in that directory context.",
"Update available": "Update available",
"Check for updates automatically": "Check for updates automatically",
"Check for updates now": "Check for updates now"
}
"Check for updates now": "Check for updates now",
"Default font size": "Default font size"
}
5 changes: 3 additions & 2 deletions app/locales/fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -89,5 +89,6 @@
"When a working path is set, your code will be executed in that directory context.": "When a working path is set, your code will be executed in that directory context.",
"Update available": "Update available",
"Check for updates automatically": "Check for updates automatically",
"Check for updates now": "Check for updates now"
}
"Check for updates now": "Check for updates now",
"Default font size": "Default font size"
}
3 changes: 2 additions & 1 deletion app/locales/pt-BR.json
Original file line number Diff line number Diff line change
Expand Up @@ -89,5 +89,6 @@
"When a working path is set, your code will be executed in that directory context.": "Quendo estiver utilizando um diretório de trabalho, seu código será executado no contexto desse diretório.",
"Update available": "Atualização disponível",
"Check for updates automatically": "Procurar atualizações automaticamente",
"Check for updates now": "Procurar atualizações agora"
"Check for updates now": "Procurar atualizações agora",
"Default font size": "Tamanho de fonte padrão"
}
5 changes: 5 additions & 0 deletions app/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -335,6 +335,11 @@ function createMenu() {
accelerator: 'CmdOrCtrl+-',
click: () => runOnApp('decreaseFontSize();'),
},
{
label: i18n.__('Default font size'),
accelerator: 'CmdOrCtrl+0',
click: () => runOnApp('defaultFontSize();'),
},
{
type: 'separator'
},
Expand Down

0 comments on commit 8325b3e

Please sign in to comment.