mirror of
https://github.com/icecoder/ICEcoder.git
synced 2026-03-03 07:13:59 +01:00
Set font size on updating settings
New font size passed thru to this function to apply to the class property on demand
This commit is contained in:
@@ -1452,7 +1452,7 @@ var ICEcoder = {
|
||||
},
|
||||
|
||||
// Update the settings used when we make a change to them
|
||||
useNewSettings: function(themeURL,codeAssist,lockedNav,visibleTabs,lineWrapping,indentWithTabs,indentSize,refreshFM) {
|
||||
useNewSettings: function(themeURL,codeAssist,lockedNav,visibleTabs,fontSize,lineWrapping,indentWithTabs,indentSize,refreshFM) {
|
||||
var styleNode, strCSS, cMCSS, activeLineBG;
|
||||
|
||||
// Add new stylesheet for selected theme
|
||||
@@ -1478,6 +1478,7 @@ var ICEcoder = {
|
||||
|
||||
cMCSS = ICEcoder.content.contentWindow.document.styleSheets[3];
|
||||
strCSS = cMCSS.rules ? 'rules' : 'cssRules';
|
||||
cMCSS[strCSS][0].style['fontSize'] = fontSize;
|
||||
cMCSS[strCSS][5].style['content'] = visibleTabs ? '"\\21e5"' : '" "';
|
||||
cMCSS[strCSS][2].style.cssText = "background: " + activeLineBG + " !important";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user