diff --git a/apps/common/main/resources/less/winxp_fix.less b/apps/common/main/resources/less/winxp_fix.less new file mode 100644 index 000000000..25e061195 --- /dev/null +++ b/apps/common/main/resources/less/winxp_fix.less @@ -0,0 +1,6 @@ +.winxp { + .toolbar .tabs>ul, + .toolbar .extra .btn-slot,#box-document-title .btn-slot { + height:28px; + } +} \ No newline at end of file diff --git a/apps/documenteditor/main/index.html b/apps/documenteditor/main/index.html index eb828a57d..53d722209 100644 --- a/apps/documenteditor/main/index.html +++ b/apps/documenteditor/main/index.html @@ -194,6 +194,14 @@ ''); stopLoading = true; } + } else + if (check(/windows\snt/i)) { + var re = /chrome\/(\d+)/i.exec(userAgent); + if (!!re[1] && !(re[1] > 49)) { + setTimeout(function () { + document.getElementsByTagName('body')[0].className += "winxp"; + },0); + } } function getUrlParams() { diff --git a/apps/documenteditor/main/index.html.deploy b/apps/documenteditor/main/index.html.deploy index 58c504339..d80ea3fbd 100644 --- a/apps/documenteditor/main/index.html.deploy +++ b/apps/documenteditor/main/index.html.deploy @@ -193,6 +193,14 @@ ''); stopLoading = true; } + } else + if (check(/windows\snt/i)) { + var re = /chrome\/(\d+)/i.exec(userAgent); + if (!!re[1] && !(re[1] > 49)) { + setTimeout(function () { + document.getElementsByTagName('body')[0].className += "winxp"; + },0); + } } function getUrlParams() { diff --git a/apps/documenteditor/main/resources/less/app.less b/apps/documenteditor/main/resources/less/app.less index 8d6040fa7..a16802d19 100644 --- a/apps/documenteditor/main/resources/less/app.less +++ b/apps/documenteditor/main/resources/less/app.less @@ -117,6 +117,7 @@ @import "../../../../common/main/resources/less/plugins.less"; @import "../../../../common/main/resources/less/toolbar.less"; @import "../../../../common/main/resources/less/language-dialog.less"; +@import "../../../../common/main/resources/less/winxp_fix.less"; // App // -------------------------------------------------- diff --git a/apps/presentationeditor/main/index.html.deploy b/apps/presentationeditor/main/index.html.deploy index 1fd784bf9..dc72101ad 100644 --- a/apps/presentationeditor/main/index.html.deploy +++ b/apps/presentationeditor/main/index.html.deploy @@ -193,6 +193,14 @@ ''); stopLoading = true; } + } else + if (check(/windows\snt/i)) { + var re = /chrome\/(\d+)/i.exec(userAgent); + if (!!re[1] && !(re[1] > 49)) { + setTimeout(function () { + document.getElementsByTagName('body')[0].className += "winxp"; + },0); + } } function getUrlParams() { diff --git a/apps/presentationeditor/main/resources/less/app.less b/apps/presentationeditor/main/resources/less/app.less index 62dce12dd..995117453 100644 --- a/apps/presentationeditor/main/resources/less/app.less +++ b/apps/presentationeditor/main/resources/less/app.less @@ -113,6 +113,7 @@ @import "../../../../common/main/resources/less/plugins.less"; @import "../../../../common/main/resources/less/toolbar.less"; @import "../../../../common/main/resources/less/language-dialog.less"; +@import "../../../../common/main/resources/less/winxp_fix.less"; // App // -------------------------------------------------- diff --git a/apps/spreadsheeteditor/main/index.html.deploy b/apps/spreadsheeteditor/main/index.html.deploy index 350e9dfe6..f2eb95fa6 100644 --- a/apps/spreadsheeteditor/main/index.html.deploy +++ b/apps/spreadsheeteditor/main/index.html.deploy @@ -192,6 +192,14 @@ ''); stopLoading = true; } + } else + if (check(/windows\snt/i)) { + var re = /chrome\/(\d+)/i.exec(userAgent); + if (!!re[1] && !(re[1] > 49)) { + setTimeout(function () { + document.getElementsByTagName('body')[0].className += "winxp"; + },0); + } } function getUrlParams() { diff --git a/apps/spreadsheeteditor/main/resources/less/app.less b/apps/spreadsheeteditor/main/resources/less/app.less index ec146cba0..a5d13d177 100644 --- a/apps/spreadsheeteditor/main/resources/less/app.less +++ b/apps/spreadsheeteditor/main/resources/less/app.less @@ -114,6 +114,7 @@ @import "../../../../common/main/resources/less/plugins.less"; @import "../../../../common/main/resources/less/toolbar.less"; @import "../../../../common/main/resources/less/language-dialog.less"; +@import "../../../../common/main/resources/less/winxp_fix.less"; // App // --------------------------------------------------