1
0
mirror of https://github.com/Ylianst/MeshAgent synced 2025-12-15 15:53:55 +00:00

Set maximum width of privacy bar to 45% of display width

This commit is contained in:
Bryan Roe
2022-04-17 21:55:00 -07:00
parent e57acc526d
commit c0cff1225f
2 changed files with 5 additions and 4 deletions

File diff suppressed because one or more lines are too long

View File

@@ -263,6 +263,7 @@ function windows_notifybar_local(title, bar_options)
barHeight = Math.floor(m[i].dpi / 3);
barWidth = Math.floor(m[i].dpi * 9);
if (barWidth > monWidth) { barWidth = monWidth; }
if (barWidth > (monWidth * 0.45)) { barWidth = monWidth * 0.45; }
}
console.info1('Monitor: ' + i + ' = Width[' + (m[i].right - m[i].left) + '] BarHeight[' + barHeight + '] BarWidth[' + barWidth + ']');