From 953616dd62d01117f2f37609eb8802007a4a805a Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Tue, 26 May 2026 00:11:03 +0200 Subject: [PATCH] Remove borders from menu highlights --- shell/plugins/clipboard/Clipboard.qml | 4 +--- shell/plugins/emojis/Emojis.qml | 4 +--- shell/plugins/launcher/Launcher.qml | 4 +--- shell/plugins/menu/Menu.qml | 4 +--- 4 files changed, 4 insertions(+), 12 deletions(-) diff --git a/shell/plugins/clipboard/Clipboard.qml b/shell/plugins/clipboard/Clipboard.qml index 91d766b5..e6aafe61 100644 --- a/shell/plugins/clipboard/Clipboard.qml +++ b/shell/plugins/clipboard/Clipboard.qml @@ -27,7 +27,6 @@ Item { property color scrim: Color.menu.scrim property color selectedBackground: Color.menu.selectedBackground property color selectedText: Color.menu.selectedText - property color selectedBorder: Color.menu.selectedBorder readonly property int cornerRadius: Style.cornerRadius property string fontFamily: Style.font.menuFamily property int contentMargin: Style.spacing.panelPadding @@ -310,8 +309,7 @@ Item { height: root.rowHeight radius: root.cornerRadius color: hasCursor ? root.selectedBackground : "transparent" - border.color: hasCursor ? root.selectedBorder : "transparent" - border.width: (hasCursor && root.selectedBorder.a > 0) ? Style.hoverBorderWidth : 0 + border.width: 0 Row { anchors.fill: parent diff --git a/shell/plugins/emojis/Emojis.qml b/shell/plugins/emojis/Emojis.qml index 5040b96a..c8016c81 100644 --- a/shell/plugins/emojis/Emojis.qml +++ b/shell/plugins/emojis/Emojis.qml @@ -28,7 +28,6 @@ Item { property color scrim: Color.menu.scrim property color selectedBackground: Color.menu.selectedBackground property color selectedText: Color.menu.selectedText - property color selectedBorder: Color.menu.selectedBorder readonly property int cornerRadius: Style.cornerRadius property string fontFamily: Style.font.menuFamily property int contentMargin: Style.spacing.panelPadding @@ -277,8 +276,7 @@ Item { height: root.cellHeight radius: root.cornerRadius color: hasCursor ? root.selectedBackground : "transparent" - border.color: hasCursor ? root.selectedBorder : "transparent" - border.width: (hasCursor && root.selectedBorder.a > 0) ? Style.hoverBorderWidth : 0 + border.width: 0 Text { text: parent.emoji diff --git a/shell/plugins/launcher/Launcher.qml b/shell/plugins/launcher/Launcher.qml index d3e95692..56aac851 100644 --- a/shell/plugins/launcher/Launcher.qml +++ b/shell/plugins/launcher/Launcher.qml @@ -40,7 +40,6 @@ Item { property color scrim: Color.launcher.scrim property color selectedBackground: Color.launcher.selectedBackground property color selectedText: Color.launcher.selectedText - property color selectedBorder: Color.launcher.selectedBorder property string fontFamily: Style.font.menuFamily property int cardWidth: 644 @@ -562,8 +561,7 @@ Item { height: root.rowHeight radius: 0 color: row.hasCursor ? root.selectedBackground : "transparent" - border.color: row.hasCursor ? root.selectedBorder : "transparent" - border.width: (row.hasCursor && root.selectedBorder.a > 0) ? Math.max(1, Style.normalBorderWidth) : 0 + border.width: 0 Item { id: iconSlot diff --git a/shell/plugins/menu/Menu.qml b/shell/plugins/menu/Menu.qml index b8958699..ebe29f51 100644 --- a/shell/plugins/menu/Menu.qml +++ b/shell/plugins/menu/Menu.qml @@ -80,7 +80,6 @@ Item { property color scrim: Color.menu.scrim property color selectedBackground: Color.menu.selectedBackground property color selectedText: Color.menu.selectedText - property color selectedBorder: Color.menu.selectedBorder readonly property int cornerRadius: Style.cornerRadius property int contentMargin: Style.spacing.panelPadding property int headerHeight: Math.max(Style.space(34), Style.font.title + Style.spacing.controlPaddingY * 2) @@ -919,8 +918,7 @@ Item { height: root.rowHeightForDetail(row.detail) radius: root.cornerRadius color: row.hasCursor ? root.selectedBackground : "transparent" - border.color: row.hasCursor ? root.selectedBorder : "transparent" - border.width: (row.hasCursor && root.selectedBorder.a > 0) ? Style.hoverBorderWidth : 0 + border.width: 0 Rectangle { visible: false