mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-11-02 20:52:20 -07:00
Round fractional widths and heights in system-themed qml
This commit is contained in:
parent
82ff9dfe1b
commit
b5d7ec5bd2
15 changed files with 92 additions and 92 deletions
|
|
@ -53,21 +53,21 @@ UM.ManagementPage
|
|||
|
||||
Row
|
||||
{
|
||||
spacing: UM.Theme.getSize("default_margin").width / 2;
|
||||
anchors.left: parent.left;
|
||||
anchors.leftMargin: UM.Theme.getSize("default_margin").width;
|
||||
anchors.right: parent.right;
|
||||
spacing: (UM.Theme.getSize("default_margin").width / 2) | 0
|
||||
anchors.left: parent.left
|
||||
anchors.leftMargin: UM.Theme.getSize("default_margin").width
|
||||
anchors.right: parent.right
|
||||
Rectangle
|
||||
{
|
||||
width: parent.height * 0.8
|
||||
height: parent.height * 0.8
|
||||
width: (parent.height * 0.8) | 0
|
||||
height: (parent.height * 0.8) | 0
|
||||
color: model.metadata.color_code
|
||||
border.color: isCurrentItem ? palette.highlightedText : palette.text;
|
||||
anchors.verticalCenter: parent.verticalCenter
|
||||
}
|
||||
Label
|
||||
{
|
||||
width: parent.width * 0.3
|
||||
width: (parent.width * 0.3) | 0
|
||||
text: model.metadata.material
|
||||
elide: Text.ElideRight
|
||||
font.italic: model.id == activeId
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue