mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-04-30 15:54:32 +08:00

It's so close to the text one that it really doesn't make sense to keep it. Boyscouting the code a bit here CURA-7745
33 lines
957 B
QML
33 lines
957 B
QML
// Copyright (c) 2019 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: enabled ? UM.Theme.getColor("viewport_background") : "transparent"
|
|
height: base.height
|
|
opacity: base.down || base.hovered ? 1 : 0
|
|
radius: Math.round(0.5 * width)
|
|
width: base.width
|
|
}
|
|
contentItem: Label {
|
|
color: enabled ? UM.Theme.getColor("text") : UM.Theme.getColor("monitor_text_disabled")
|
|
font.pixelSize: 32 * screenScaleFactor
|
|
horizontalAlignment: Text.AlignHCenter
|
|
text: base.text
|
|
verticalAlignment: Text.AlignVCenter
|
|
renderType: Text.NativeRendering;
|
|
}
|
|
height: width
|
|
hoverEnabled: enabled
|
|
text: "\u22EE" //Unicode Three stacked points.
|
|
width: 36 * screenScaleFactor // TODO: Theme!
|
|
}
|