refactor(qml): finalize tooltip standardization and settings module imports
This commit is contained in:
@@ -4,6 +4,7 @@ import QtQuick.Controls.impl
|
|||||||
import QtQuick.Layouts
|
import QtQuick.Layouts
|
||||||
import QtQuick.Dialogs
|
import QtQuick.Dialogs
|
||||||
import ISC
|
import ISC
|
||||||
|
import ISC.Tabs.components
|
||||||
|
|
||||||
Item {
|
Item {
|
||||||
id: root
|
id: root
|
||||||
|
|||||||
@@ -98,9 +98,11 @@ Item {
|
|||||||
implicitHeight: 34
|
implicitHeight: 34
|
||||||
// Disabled controls swallow no events at all, so hover for the
|
// Disabled controls swallow no events at all, so hover for the
|
||||||
// "why is this greyed out" tooltip needs its own MouseArea.
|
// "why is this greyed out" tooltip needs its own MouseArea.
|
||||||
ToolTip.visible: disabledHover.containsMouse && !enabled
|
AppToolTip {
|
||||||
ToolTip.text: "Connect a wafer to enable Live mode"
|
visible: disabledHover.containsMouse && !liveTab.enabled
|
||||||
ToolTip.delay: 300
|
text: "Connect a wafer to enable Live mode"
|
||||||
|
delay: 300
|
||||||
|
}
|
||||||
MouseArea {
|
MouseArea {
|
||||||
id: disabledHover
|
id: disabledHover
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
|
|||||||
@@ -481,8 +481,11 @@ ColumnLayout {
|
|||||||
to: 1
|
to: 1
|
||||||
value: 0
|
value: 0
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
ToolTip.visible: hovered
|
|
||||||
ToolTip.text: Math.round(value * 100) + "%"
|
AppToolTip {
|
||||||
|
visible: heatmapSlider.hovered
|
||||||
|
text: Math.round(heatmapSlider.value * 100) + "%"
|
||||||
|
}
|
||||||
|
|
||||||
handle: Rectangle {
|
handle: Rectangle {
|
||||||
x: heatmapSlider.leftPadding + heatmapSlider.visualPosition * (heatmapSlider.availableWidth - width)
|
x: heatmapSlider.leftPadding + heatmapSlider.visualPosition * (heatmapSlider.availableWidth - width)
|
||||||
|
|||||||
@@ -46,24 +46,9 @@ ColumnLayout {
|
|||||||
csvEditorDialog.open();
|
csvEditorDialog.open();
|
||||||
}
|
}
|
||||||
|
|
||||||
ToolTip {
|
AppToolTip {
|
||||||
id: editTooltip
|
|
||||||
visible: editBtn.hovered
|
visible: editBtn.hovered
|
||||||
text: "Edit"
|
text: "Edit"
|
||||||
delay: 400
|
|
||||||
font.pixelSize: Theme.fontXs
|
|
||||||
font.family: Theme.uiFontFamily
|
|
||||||
contentItem: Text {
|
|
||||||
text: editTooltip.text
|
|
||||||
color: Theme.headingColor
|
|
||||||
font: editTooltip.font
|
|
||||||
}
|
|
||||||
background: Rectangle {
|
|
||||||
color: Theme.cardBackground
|
|
||||||
border.color: Theme.sideBorder
|
|
||||||
border.width: 1
|
|
||||||
radius: Theme.radiusXs
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -84,24 +69,9 @@ ColumnLayout {
|
|||||||
}
|
}
|
||||||
onClicked: file_browser.refreshFiles()
|
onClicked: file_browser.refreshFiles()
|
||||||
|
|
||||||
ToolTip {
|
AppToolTip {
|
||||||
id: refreshTooltip
|
|
||||||
visible: refreshBtn.hovered
|
visible: refreshBtn.hovered
|
||||||
text: "Refresh"
|
text: "Refresh"
|
||||||
delay: 400
|
|
||||||
font.pixelSize: Theme.fontXs
|
|
||||||
font.family: Theme.uiFontFamily
|
|
||||||
contentItem: Text {
|
|
||||||
text: refreshTooltip.text
|
|
||||||
color: Theme.headingColor
|
|
||||||
font: refreshTooltip.font
|
|
||||||
}
|
|
||||||
background: Rectangle {
|
|
||||||
color: Theme.cardBackground
|
|
||||||
border.color: Theme.sideBorder
|
|
||||||
border.width: 1
|
|
||||||
radius: Theme.radiusXs
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user