mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-08-06 05:23:58 -06:00
Add Cura-styled Menu, MenuItem and MenuSeparator controls
This commit is contained in:
parent
cfb32bfd50
commit
6e803c41f4
5 changed files with 119 additions and 6 deletions
20
resources/qml/Widgets/MenuSeparator.qml
Normal file
20
resources/qml/Widgets/MenuSeparator.qml
Normal file
|
@ -0,0 +1,20 @@
|
|||
// Copyright (c) 2021 Ultimaker B.V.
|
||||
// Cura is released under the terms of the LGPLv3 or higher.
|
||||
|
||||
import QtQuick 2.7
|
||||
import QtQuick.Controls 2.3
|
||||
|
||||
import UM 1.1 as UM
|
||||
|
||||
//
|
||||
// MenuSeparator with Cura styling.
|
||||
//
|
||||
MenuSeparator
|
||||
{
|
||||
padding: 0
|
||||
|
||||
contentItem: Rectangle {
|
||||
implicitHeight: UM.Theme.getSize("default_lining").height
|
||||
color: UM.Theme.getColor("setting_control_border")
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue