mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-06-04 11:14:21 +08:00
30 lines
589 B
QML
30 lines
589 B
QML
// Copyright (c) 2018 Ultimaker B.V.
|
|
import QtQuick 2.7
|
|
import QtQuick.Controls 2.1
|
|
import QtQuick.Layouts 1.3
|
|
|
|
import UM 1.1 as UM
|
|
|
|
ToolTip
|
|
{
|
|
id: tooltip
|
|
visible: parent.hovered
|
|
opacity: 0.9
|
|
delay: 500
|
|
|
|
background: Rectangle
|
|
{
|
|
color: UM.Theme.getColor("sidebar")
|
|
border.color: UM.Theme.getColor("primary")
|
|
border.width: 1 * screenScaleFactor
|
|
}
|
|
|
|
contentItem: Label
|
|
{
|
|
text: tooltip.text
|
|
color: UM.Theme.getColor("text")
|
|
font: UM.Theme.getFont("very_small")
|
|
renderType: Text.NativeRendering
|
|
}
|
|
}
|