mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-08-03 12:03:57 -06:00
29 lines
589 B
QML
29 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
|
|
}
|
|
}
|