ScreenCorners: use the same Math.round() for bar height so corners dont overlap semitransp bar
This commit is contained in:
parent
b1daf2e8bc
commit
fdf67ab512
1 changed files with 2 additions and 2 deletions
|
|
@ -45,10 +45,10 @@ Loader {
|
||||||
margins {
|
margins {
|
||||||
top: ((modelData && Settings.data.bar.monitors.includes(modelData.name))
|
top: ((modelData && Settings.data.bar.monitors.includes(modelData.name))
|
||||||
|| (Settings.data.bar.monitors.length === 0)) && Settings.data.bar.position === "top"
|
|| (Settings.data.bar.monitors.length === 0)) && Settings.data.bar.position === "top"
|
||||||
&& Settings.data.bar.backgroundOpacity > 0 ? Math.floor(Style.barHeight * scaling) : 0
|
&& Settings.data.bar.backgroundOpacity > 0 ? Math.round(Style.barHeight * scaling) : 0
|
||||||
bottom: ((modelData && Settings.data.bar.monitors.includes(modelData.name))
|
bottom: ((modelData && Settings.data.bar.monitors.includes(modelData.name))
|
||||||
|| (Settings.data.bar.monitors.length === 0)) && Settings.data.bar.position === "bottom"
|
|| (Settings.data.bar.monitors.length === 0)) && Settings.data.bar.position === "bottom"
|
||||||
&& Settings.data.bar.backgroundOpacity > 0 ? Math.floor(Style.barHeight * scaling) : 0
|
&& Settings.data.bar.backgroundOpacity > 0 ? Math.round(Style.barHeight * scaling) : 0
|
||||||
}
|
}
|
||||||
|
|
||||||
// Source we want to show only as a ring
|
// Source we want to show only as a ring
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue