Settings rework...

This commit is contained in:
Ly-sec 2025-08-05 17:41:08 +02:00
parent 74b233798d
commit fb68300746
63 changed files with 7139 additions and 1026 deletions

View file

@ -15,6 +15,7 @@ Item {
// Attach custom tooltip
StyledTooltip {
id: styledTooltip
positionAbove: false
}
function getAppIcon(toplevel: Toplevel): string {
@ -74,7 +75,6 @@ Item {
height: Math.max(12, Settings.settings.taskbarIconSize * 0.625)
anchors.centerIn: parent
source: getAppIcon(modelData)
smooth: true
visible: source.toString() !== ""
}
@ -95,7 +95,8 @@ Item {
cursorShape: Qt.PointingHandCursor
onEntered: {
styledTooltip.text = appTitle || appId;
var text = appTitle || appId;
styledTooltip.text = text.length > 60 ? text.substring(0, 60) + "..." : text;
styledTooltip.targetItem = appButton;
styledTooltip.tooltipVisible = true;
}