mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-14 18:05:55 +08:00
Round width of buttons
They were getting rendered a bit weird if your pixel scale was not an integer (for me it's 1.25).
This commit is contained in:
parent
a181ffe79d
commit
279812e4ff
@ -1,4 +1,4 @@
|
|||||||
// Copyright (c) 2016 Ultimaker B.V.
|
// Copyright (c) 2018 Ultimaker B.V.
|
||||||
// Cura is released under the terms of the LGPLv3 or higher.
|
// Cura is released under the terms of the LGPLv3 or higher.
|
||||||
|
|
||||||
import QtQuick 2.7
|
import QtQuick 2.7
|
||||||
@ -91,7 +91,7 @@ UM.ManagementPage
|
|||||||
|
|
||||||
Item
|
Item
|
||||||
{
|
{
|
||||||
width: childrenRect.width + 2 * screenScaleFactor
|
width: Math.round(childrenRect.width + 2 * screenScaleFactor)
|
||||||
height: childrenRect.height
|
height: childrenRect.height
|
||||||
Button
|
Button
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user