Remove unnecessary background components

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
This commit is contained in:
Claudio Cambra 2023-05-25 12:12:34 +08:00 committed by Matthieu Gallien
parent d195922d17
commit 24e6435289
6 changed files with 0 additions and 35 deletions

View file

@ -94,8 +94,5 @@ ComboBox {
verticalAlignment: Text.AlignVCenter
}
highlighted: clearComboBox.highlightedIndex === index
background: Rectangle {
color: clearStatusDelegate.highlighted || clearStatusDelegate.hovered ? palette.highlight : palette.base
}
}
}

View file

@ -218,9 +218,6 @@ Page {
Layout.rightMargin: root.intendedPadding
padding: 0
background: Rectangle {
color: palette.window
}
NCTabButton {
svgCustomColorSource: "image://svgimage-custom-color/activity.svg"

View file

@ -40,10 +40,6 @@ AbstractButton {
delay: Qt.styleHints.mousePressAndHoldInterval
visible: root.toolTipText !== "" && root.hovered
contentItem: EnforcedPlainTextLabel { text: customTextButtonTooltip.text }
background: Rectangle {
border.color: palette.dark
color: palette.toolTipBase
}
}
Component {

View file

@ -3,11 +3,6 @@ import QtQuick.Controls 2.3
import Style 1.0
Menu {
background: Rectangle {
border.color: palette.dark
color: palette.base
}
width: {
var result = 0;
var padding = 0;

View file

@ -27,8 +27,4 @@ ToolTip {
wrapMode: Text.Wrap
color: palette.toolTipText
}
background: Rectangle {
border.color: palette.dark
color: palette.toolTipBase
}
}

View file

@ -159,12 +159,6 @@ AbstractButton {
id: userMoreButtonMenu
closePolicy: Menu.CloseOnPressOutsideParent | Menu.CloseOnEscape
background: Rectangle {
border.color: palette.dark
color: palette.base
radius: 2
}
MenuItem {
visible: model.isConnected && model.serverHasUserStatus
height: visible ? implicitHeight : 0
@ -173,16 +167,6 @@ AbstractButton {
palette.windowText: Style.ncTextColor
hoverEnabled: true
onClicked: showUserStatusSelector(index)
background: Item {
height: parent.height
width: parent.menu.width
Rectangle {
anchors.fill: parent
anchors.margins: 1
color: parent.parent.hovered ? palette.highlight : "transparent"
}
}
}
MenuItem {