Style in-window tooltips as glass instead of the stock Basic look
Dock items, the launcher mode button and the settings hints used the attached ToolTip, which only gets the Basic style. GlassToolTip wraps ToolTip with a GlassPanel background, theme text and a Theme.duration fade, matching the bar's tooltip popout. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
b3076a4cde
commit
d6a6cf69f4
6 files changed
+67
-19
No files matched your search
@@ -1,7 +1,6 @@
|
||||
pragma ComponentBehavior: Bound
|
||||
import QtQuick
|
||||
import QtQuick.Layouts
|
||||
import QtQuick.Controls
|
||||
import "../../components"
|
||||
import "../../core"
|
||||
import "../../services"
|
||||
@@ -209,9 +208,11 @@ Item {
|
||||
spacing:8
|
||||
Text {text:optionRow.modelData.label;color:Theme.textSecondary;font.pixelSize:11;Layout.fillWidth:true;elide:Text.ElideRight
|
||||
HoverHandler {id:labelHover}
|
||||
ToolTip.visible:labelHover.hovered && !!optionRow.modelData.description
|
||||
ToolTip.text:optionRow.modelData.description || ""
|
||||
ToolTip.delay:600}
|
||||
GlassToolTip {
|
||||
visible: labelHover.hovered && !!optionRow.modelData.description
|
||||
delay: 600
|
||||
text: optionRow.modelData.description || ""
|
||||
}}
|
||||
GlassComboBox {
|
||||
objectName:"bar-option-"+card.modelData.id+"-"+optionRow.modelData.key
|
||||
visible:optionRow.modelData.type==="choice"
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
import QtQuick
|
||||
import QtQuick.Controls
|
||||
import QtQuick.Layouts
|
||||
import "../../components"
|
||||
import "../../core"
|
||||
@@ -144,9 +143,11 @@ Item {
|
||||
}
|
||||
Rectangle {
|
||||
objectName: "reset-" + root.setting
|
||||
ToolTip.visible: resetArea.containsMouse
|
||||
ToolTip.delay: 500
|
||||
ToolTip.text: "Reset to default"
|
||||
GlassToolTip {
|
||||
visible: resetArea.containsMouse
|
||||
delay: 500
|
||||
text: "Reset to default"
|
||||
}
|
||||
visible: root.modified
|
||||
implicitWidth: 26
|
||||
implicitHeight: 26
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
pragma ComponentBehavior: Bound
|
||||
import QtQuick
|
||||
import QtQuick.Controls
|
||||
import QtQuick.Layouts
|
||||
import "../controls"
|
||||
import "../../components"
|
||||
@@ -185,9 +184,11 @@ ColumnLayout {
|
||||
color: modelData.value
|
||||
border.width: selected ? 2 : 1
|
||||
border.color: selected ? Theme.accent : Theme.border
|
||||
ToolTip.visible: swatchArea.containsMouse
|
||||
ToolTip.delay: 400
|
||||
ToolTip.text: modelData.name
|
||||
GlassToolTip {
|
||||
visible: swatchArea.containsMouse
|
||||
delay: 400
|
||||
text: swatch.modelData.name
|
||||
}
|
||||
MouseArea {
|
||||
id: swatchArea
|
||||
anchors.fill: parent
|
||||
|
||||
Reference in new issue
Block a user