refactor(qml): finalize tooltip standardization and settings module imports

This commit is contained in:
jack
2026-07-09 12:50:24 -07:00
parent ac4448ed44
commit 7b20ffa376
4 changed files with 13 additions and 37 deletions
@@ -481,8 +481,11 @@ ColumnLayout {
to: 1
value: 0
Layout.fillWidth: true
ToolTip.visible: hovered
ToolTip.text: Math.round(value * 100) + "%"
AppToolTip {
visible: heatmapSlider.hovered
text: Math.round(heatmapSlider.value * 100) + "%"
}
handle: Rectangle {
x: heatmapSlider.leftPadding + heatmapSlider.visualPosition * (heatmapSlider.availableWidth - width)
+2 -32
View File
@@ -46,24 +46,9 @@ ColumnLayout {
csvEditorDialog.open();
}
ToolTip {
id: editTooltip
AppToolTip {
visible: editBtn.hovered
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()
ToolTip {
id: refreshTooltip
AppToolTip {
visible: refreshBtn.hovered
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
}
}
}
}