mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-07 23:17:32 -06:00
Create MonitorContextMenuButton.qml
Contributes to CL-1165
This commit is contained in:
parent
5a78eb0541
commit
5a15ffc090
1 changed files with 31 additions and 0 deletions
|
@ -0,0 +1,31 @@
|
|||
// Copyright (c) 2018 Ultimaker B.V.
|
||||
// Cura is released under the terms of the LGPLv3 or higher.
|
||||
|
||||
import QtQuick 2.3
|
||||
import QtQuick.Controls 2.0
|
||||
import UM 1.3 as UM
|
||||
import Cura 1.0 as Cura
|
||||
|
||||
Button
|
||||
{
|
||||
id: base
|
||||
background: Rectangle
|
||||
{
|
||||
color: UM.Theme.getColor("viewport_background") // TODO: Theme!
|
||||
height: base.height
|
||||
opacity: base.down || base.hovered ? 1 : 0
|
||||
radius: Math.round(0.5 * width)
|
||||
width: base.width
|
||||
}
|
||||
contentItem: Label {
|
||||
color: UM.Theme.getColor("monitor_context_menu_dots")
|
||||
font.pixelSize: 32 * screenScaleFactor
|
||||
horizontalAlignment: Text.AlignHCenter
|
||||
text: base.text
|
||||
verticalAlignment: Text.AlignVCenter
|
||||
}
|
||||
height: width
|
||||
hoverEnabled: enabled
|
||||
text: "\u22EE" //Unicode Three stacked points.
|
||||
width: 36 * screenScaleFactor // TODO: Theme!
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue