mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-05-01 00:04:27 +08:00
Cleanup unnecessary hard-coded numbers in styling
This commit is contained in:
parent
9e7c687853
commit
67428aee53
@ -21,14 +21,14 @@ Item
|
|||||||
|
|
||||||
id: base
|
id: base
|
||||||
|
|
||||||
implicitWidth: 200
|
implicitWidth: 200 * screenScaleFactor
|
||||||
height: header.contentShown ? (header.height + contentRectangle.height + 30) : header.height
|
height: header.contentShown ? (header.height + contentRectangle.height) : header.height
|
||||||
|
|
||||||
property var contentComponent: null
|
property var contentComponent: null
|
||||||
property alias contentItem: contentLoader.item
|
property alias contentItem: contentLoader.item
|
||||||
|
|
||||||
property alias title: header.title
|
property alias title: header.title
|
||||||
property bool contentShown: false
|
property bool contentShown: false // indicates if this dropdown widget is expanded to show its content
|
||||||
|
|
||||||
signal clicked()
|
signal clicked()
|
||||||
|
|
||||||
@ -59,7 +59,7 @@ Item
|
|||||||
anchors.top: header.bottom
|
anchors.top: header.bottom
|
||||||
anchors.left: header.left
|
anchors.left: header.left
|
||||||
anchors.right: header.right
|
anchors.right: header.right
|
||||||
height: contentLoader.height + 2
|
height: contentLoader.height
|
||||||
|
|
||||||
border.width: UM.Theme.getSize("default_lining").width
|
border.width: UM.Theme.getSize("default_lining").width
|
||||||
border.color: UM.Theme.getColor("lining")
|
border.color: UM.Theme.getColor("lining")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user