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