disabled scaling for now
This commit is contained in:
parent
99420fae93
commit
5488ac8bcc
1 changed files with 16 additions and 14 deletions
|
|
@ -13,21 +13,23 @@ Singleton {
|
||||||
|
|
||||||
// Automatic scaling based on screen width
|
// Automatic scaling based on screen width
|
||||||
function scale(currentScreen) {
|
function scale(currentScreen) {
|
||||||
// Per-monitor override from settings
|
|
||||||
try {
|
|
||||||
const overrides = Settings.settings.monitorScaleOverrides || {};
|
|
||||||
if (currentScreen && currentScreen.name && overrides[currentScreen.name] !== undefined) {
|
|
||||||
return overrides[currentScreen.name];
|
|
||||||
}
|
|
||||||
} catch (e) {
|
|
||||||
// ignore
|
|
||||||
}
|
|
||||||
if (currentScreen && currentScreen.width != 0) {
|
|
||||||
var ratio = currentScreen.width / designScreenWidth;
|
|
||||||
// Limit the final scale range between [0.8...2]
|
|
||||||
return Math.max(0.8, Math.min(2.0, ratio));
|
|
||||||
}
|
|
||||||
return 1.0;
|
return 1.0;
|
||||||
|
// // // Per-monitor override from settings
|
||||||
|
// // try {
|
||||||
|
// // const overrides = Settings.settings.monitorScaleOverrides || {};
|
||||||
|
// // if (currentScreen && currentScreen.name && overrides[currentScreen.name] !== undefined) {
|
||||||
|
// // console.log(overrides[currentScreen.name]);
|
||||||
|
// // return overrides[currentScreen.name];
|
||||||
|
// // }
|
||||||
|
// // } catch (e) {
|
||||||
|
// // // ignore
|
||||||
|
// // }
|
||||||
|
// if (currentScreen && currentScreen.width != 0) {
|
||||||
|
// var ratio = currentScreen.width / designScreenWidth;
|
||||||
|
// // Limit the final scale range between [0.8...2]
|
||||||
|
// return Math.max(0.8, Math.min(2.0, ratio));
|
||||||
|
// }
|
||||||
|
// return 1.0;
|
||||||
}
|
}
|
||||||
|
|
||||||
function applyOpacity(color, opacity) {
|
function applyOpacity(color, opacity) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue