mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-04-21 21:29:41 +08:00
24 lines
683 B
QML
24 lines
683 B
QML
// Copyright (c) 2018 Ultimaker B.V.
|
|
// Cura is released under the terms of the LGPLv3 or higher.
|
|
|
|
import QtQuick 2.2
|
|
import QtQuick.Controls 2.0
|
|
import QtQuick.Controls.Styles 1.4
|
|
import UM 1.3 as UM
|
|
|
|
Button {
|
|
background: Rectangle {
|
|
opacity: parent.down || parent.hovered ? 1 : 0;
|
|
color: UM.Theme.getColor("monitor_context_menu_highlight");
|
|
}
|
|
contentItem: Label {
|
|
color: UM.Theme.getColor("text");
|
|
text: parent.text
|
|
horizontalAlignment: Text.AlignLeft;
|
|
verticalAlignment: Text.AlignVCenter;
|
|
}
|
|
height: 39 * screenScaleFactor; // TODO: Theme!
|
|
hoverEnabled: true;
|
|
visible: enabled;
|
|
width: parent.width;
|
|
} |