Remove borders from menu highlights
This commit is contained in:
@@ -27,7 +27,6 @@ Item {
|
|||||||
property color scrim: Color.menu.scrim
|
property color scrim: Color.menu.scrim
|
||||||
property color selectedBackground: Color.menu.selectedBackground
|
property color selectedBackground: Color.menu.selectedBackground
|
||||||
property color selectedText: Color.menu.selectedText
|
property color selectedText: Color.menu.selectedText
|
||||||
property color selectedBorder: Color.menu.selectedBorder
|
|
||||||
readonly property int cornerRadius: Style.cornerRadius
|
readonly property int cornerRadius: Style.cornerRadius
|
||||||
property string fontFamily: Style.font.menuFamily
|
property string fontFamily: Style.font.menuFamily
|
||||||
property int contentMargin: Style.spacing.panelPadding
|
property int contentMargin: Style.spacing.panelPadding
|
||||||
@@ -310,8 +309,7 @@ Item {
|
|||||||
height: root.rowHeight
|
height: root.rowHeight
|
||||||
radius: root.cornerRadius
|
radius: root.cornerRadius
|
||||||
color: hasCursor ? root.selectedBackground : "transparent"
|
color: hasCursor ? root.selectedBackground : "transparent"
|
||||||
border.color: hasCursor ? root.selectedBorder : "transparent"
|
border.width: 0
|
||||||
border.width: (hasCursor && root.selectedBorder.a > 0) ? Style.hoverBorderWidth : 0
|
|
||||||
|
|
||||||
Row {
|
Row {
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
|
|||||||
@@ -28,7 +28,6 @@ Item {
|
|||||||
property color scrim: Color.menu.scrim
|
property color scrim: Color.menu.scrim
|
||||||
property color selectedBackground: Color.menu.selectedBackground
|
property color selectedBackground: Color.menu.selectedBackground
|
||||||
property color selectedText: Color.menu.selectedText
|
property color selectedText: Color.menu.selectedText
|
||||||
property color selectedBorder: Color.menu.selectedBorder
|
|
||||||
readonly property int cornerRadius: Style.cornerRadius
|
readonly property int cornerRadius: Style.cornerRadius
|
||||||
property string fontFamily: Style.font.menuFamily
|
property string fontFamily: Style.font.menuFamily
|
||||||
property int contentMargin: Style.spacing.panelPadding
|
property int contentMargin: Style.spacing.panelPadding
|
||||||
@@ -277,8 +276,7 @@ Item {
|
|||||||
height: root.cellHeight
|
height: root.cellHeight
|
||||||
radius: root.cornerRadius
|
radius: root.cornerRadius
|
||||||
color: hasCursor ? root.selectedBackground : "transparent"
|
color: hasCursor ? root.selectedBackground : "transparent"
|
||||||
border.color: hasCursor ? root.selectedBorder : "transparent"
|
border.width: 0
|
||||||
border.width: (hasCursor && root.selectedBorder.a > 0) ? Style.hoverBorderWidth : 0
|
|
||||||
|
|
||||||
Text {
|
Text {
|
||||||
text: parent.emoji
|
text: parent.emoji
|
||||||
|
|||||||
@@ -40,7 +40,6 @@ Item {
|
|||||||
property color scrim: Color.launcher.scrim
|
property color scrim: Color.launcher.scrim
|
||||||
property color selectedBackground: Color.launcher.selectedBackground
|
property color selectedBackground: Color.launcher.selectedBackground
|
||||||
property color selectedText: Color.launcher.selectedText
|
property color selectedText: Color.launcher.selectedText
|
||||||
property color selectedBorder: Color.launcher.selectedBorder
|
|
||||||
property string fontFamily: Style.font.menuFamily
|
property string fontFamily: Style.font.menuFamily
|
||||||
|
|
||||||
property int cardWidth: 644
|
property int cardWidth: 644
|
||||||
@@ -562,8 +561,7 @@ Item {
|
|||||||
height: root.rowHeight
|
height: root.rowHeight
|
||||||
radius: 0
|
radius: 0
|
||||||
color: row.hasCursor ? root.selectedBackground : "transparent"
|
color: row.hasCursor ? root.selectedBackground : "transparent"
|
||||||
border.color: row.hasCursor ? root.selectedBorder : "transparent"
|
border.width: 0
|
||||||
border.width: (row.hasCursor && root.selectedBorder.a > 0) ? Math.max(1, Style.normalBorderWidth) : 0
|
|
||||||
|
|
||||||
Item {
|
Item {
|
||||||
id: iconSlot
|
id: iconSlot
|
||||||
|
|||||||
@@ -80,7 +80,6 @@ Item {
|
|||||||
property color scrim: Color.menu.scrim
|
property color scrim: Color.menu.scrim
|
||||||
property color selectedBackground: Color.menu.selectedBackground
|
property color selectedBackground: Color.menu.selectedBackground
|
||||||
property color selectedText: Color.menu.selectedText
|
property color selectedText: Color.menu.selectedText
|
||||||
property color selectedBorder: Color.menu.selectedBorder
|
|
||||||
readonly property int cornerRadius: Style.cornerRadius
|
readonly property int cornerRadius: Style.cornerRadius
|
||||||
property int contentMargin: Style.spacing.panelPadding
|
property int contentMargin: Style.spacing.panelPadding
|
||||||
property int headerHeight: Math.max(Style.space(34), Style.font.title + Style.spacing.controlPaddingY * 2)
|
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)
|
height: root.rowHeightForDetail(row.detail)
|
||||||
radius: root.cornerRadius
|
radius: root.cornerRadius
|
||||||
color: row.hasCursor ? root.selectedBackground : "transparent"
|
color: row.hasCursor ? root.selectedBackground : "transparent"
|
||||||
border.color: row.hasCursor ? root.selectedBorder : "transparent"
|
border.width: 0
|
||||||
border.width: (row.hasCursor && root.selectedBorder.a > 0) ? Style.hoverBorderWidth : 0
|
|
||||||
|
|
||||||
Rectangle {
|
Rectangle {
|
||||||
visible: false
|
visible: false
|
||||||
|
|||||||
Reference in New Issue
Block a user