зеркало из https://github.com/nextcloud/desktop.git
remove most usages of transparent background: fix visual regressions
with transparent backgrounds, most of teh time the result is hard to read that is mostly unintended and unless there is some blur added, the UI becomes unusable Close https://github.com/nextcloud/desktop/issues/6992 Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
This commit is contained in:
Родитель
f0e1ebbd1b
Коммит
16c1cd1b19
|
@ -35,7 +35,7 @@ AbstractButton {
|
|||
property string clearAtText: ""
|
||||
|
||||
background: Rectangle {
|
||||
color: root.hovered || root.checked ? palette.highlight : "transparent"
|
||||
color: root.hovered || root.checked ? palette.highlight : palette.base
|
||||
radius: Style.slightlyRoundedButtonRadius
|
||||
}
|
||||
|
||||
|
|
|
@ -24,7 +24,7 @@ EnforcedPlainTextLabel {
|
|||
border.color: palette.dark
|
||||
border.width: Style.normalBorderWidth
|
||||
radius: Style.veryRoundedButtonRadius
|
||||
color: "transparent"
|
||||
color: palette.base
|
||||
}
|
||||
|
||||
color: palette.midlight
|
||||
|
|
|
@ -83,7 +83,7 @@ TabButton {
|
|||
implicitWidth: textWidth + Style.standardSpacing * 2
|
||||
implicitHeight: 2
|
||||
|
||||
color: tabButton.checked ? tabButton.accentColor : tabButton.hovered ? palette.highlight : "transparent"
|
||||
color: tabButton.checked ? tabButton.accentColor : tabButton.hovered ? palette.highlight : palette.base
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -13,7 +13,7 @@ Repeater {
|
|||
property variant linksContextMenu: []
|
||||
property bool displayActions: false
|
||||
|
||||
property color moreActionsButtonColor: "transparent"
|
||||
property color moreActionsButtonColor: palette.base
|
||||
|
||||
property int maxActionButtons: 0
|
||||
|
||||
|
|
|
@ -24,7 +24,7 @@ import Qt5Compat.GraphicalEffects
|
|||
|
||||
ApplicationWindow {
|
||||
id: root
|
||||
color: "transparent"
|
||||
color: palette.base
|
||||
flags: Qt.Dialog | Qt.FramelessWindowHint | Qt.WindowStaysOnTopHint
|
||||
|
||||
readonly property int windowSpacing: 10
|
||||
|
|
|
@ -9,7 +9,7 @@ ApplicationWindow {
|
|||
id: root
|
||||
flags: Qt.Dialog | Qt.FramelessWindowHint | Qt.WindowStaysOnTopHint
|
||||
|
||||
color: "transparent"
|
||||
color: palette.base
|
||||
|
||||
width: 320
|
||||
height: contentLayout.implicitHeight
|
||||
|
|
|
@ -38,7 +38,7 @@ Button {
|
|||
Layout.preferredHeight: Style.trayWindowHeaderHeight
|
||||
|
||||
background: Rectangle {
|
||||
color: root.hovered || root.visualFocus ? Style.currentUserHeaderTextColor : "transparent"
|
||||
color: root.hovered || root.visualFocus ? Style.currentUserHeaderTextColor : palette.base
|
||||
opacity: 0.2
|
||||
}
|
||||
|
||||
|
|
|
@ -36,7 +36,7 @@ MenuItem {
|
|||
Rectangle {
|
||||
anchors.fill: parent
|
||||
anchors.margins: Style.normalBorderWidth
|
||||
color: parent.parent.hovered || parent.parent.visualFocus ? palette.highlight : "transparent"
|
||||
color: parent.parent.hovered || parent.parent.visualFocus ? palette.highlight : palette.base
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -100,7 +100,7 @@ HeaderButton {
|
|||
width: Style.folderStateIndicatorSize + Style.trayFolderStatusIndicatorSizeOffset
|
||||
height: width
|
||||
anchors.centerIn: parent
|
||||
color: root.hovered ? Style.currentUserHeaderTextColor : "transparent"
|
||||
color: root.hovered ? Style.currentUserHeaderTextColor : palette.base
|
||||
opacity: Style.trayFolderStatusIndicatorMouseHoverOpacityFactor
|
||||
radius: width * Style.trayFolderStatusIndicatorRadiusFactor
|
||||
z: -1
|
||||
|
|
|
@ -46,7 +46,7 @@ MouseArea {
|
|||
Rectangle {
|
||||
id: unifiedSearchResultHoverBackground
|
||||
anchors.fill: parent
|
||||
color: (parent.containsMouse ? palette.highlight : "transparent")
|
||||
color: parent.containsMouse ? palette.highlight : palette.base
|
||||
}
|
||||
|
||||
Loader {
|
||||
|
|
|
@ -149,7 +149,7 @@ AbstractButton {
|
|||
background: Rectangle {
|
||||
anchors.fill: parent
|
||||
anchors.margins: 1
|
||||
color: userMoreButton.hovered || userMoreButton.visualFocus ? palette.highlight : "transparent"
|
||||
color: userMoreButton.hovered || userMoreButton.visualFocus ? palette.highlight : palette.base
|
||||
}
|
||||
|
||||
contentItem: Image {
|
||||
|
@ -188,7 +188,7 @@ AbstractButton {
|
|||
Rectangle {
|
||||
anchors.fill: parent
|
||||
anchors.margins: 1
|
||||
color: parent.parent.hovered ? palette.highlight : "transparent"
|
||||
color: parent.parent.hovered ? palette.highlight : palette.base
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -222,7 +222,7 @@ AbstractButton {
|
|||
Rectangle {
|
||||
anchors.fill: parent
|
||||
anchors.margins: 1
|
||||
color: parent.parent.hovered ? palette.highlight : "transparent"
|
||||
color: parent.parent.hovered ? palette.highlight : palette.base
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -345,7 +345,7 @@ ApplicationWindow {
|
|||
Rectangle {
|
||||
anchors.fill: parent
|
||||
anchors.margins: 1
|
||||
color: parent.parent.hovered || parent.parent.visualFocus ? palette.highlight : "transparent"
|
||||
color: parent.parent.hovered || parent.parent.visualFocus ? palette.highlight : palette.base
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -397,7 +397,7 @@ ApplicationWindow {
|
|||
Rectangle {
|
||||
anchors.fill: parent
|
||||
anchors.margins: 1
|
||||
color: parent.parent.hovered || parent.parent.visualFocus ? palette.highlight : "transparent"
|
||||
color: parent.parent.hovered || parent.parent.visualFocus ? palette.highlight : palette.base
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -419,7 +419,7 @@ ApplicationWindow {
|
|||
Rectangle {
|
||||
anchors.fill: parent
|
||||
anchors.margins: 1
|
||||
color: parent.parent.hovered || parent.parent.visualFocus ? palette.highlight : "transparent"
|
||||
color: parent.parent.hovered || parent.parent.visualFocus ? palette.highlight : palette.base
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -441,7 +441,7 @@ ApplicationWindow {
|
|||
Rectangle {
|
||||
anchors.fill: parent
|
||||
anchors.margins: 1
|
||||
color: parent.parent.hovered || parent.parent.visualFocus ? palette.highlight : "transparent"
|
||||
color: parent.parent.hovered || parent.parent.visualFocus ? palette.highlight : palette.base
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -452,7 +452,7 @@ ApplicationWindow {
|
|||
}
|
||||
|
||||
background: Rectangle {
|
||||
color: parent.hovered || parent.visualFocus ? Style.currentUserHeaderTextColor : "transparent"
|
||||
color: parent.hovered || parent.visualFocus ? Style.currentUserHeaderTextColor : palette.base
|
||||
opacity: 0.2
|
||||
}
|
||||
|
||||
|
@ -496,7 +496,7 @@ ApplicationWindow {
|
|||
height: width
|
||||
anchors.bottom: currentAccountAvatar.bottom
|
||||
anchors.right: currentAccountAvatar.right
|
||||
color: currentAccountButton.hovered ? Style.currentUserHeaderTextColor : "transparent"
|
||||
color: currentAccountButton.hovered ? Style.currentUserHeaderTextColor : palette.base
|
||||
opacity: Style.trayFolderStatusIndicatorMouseHoverOpacityFactor
|
||||
radius: width * Style.trayFolderStatusIndicatorRadiusFactor
|
||||
}
|
||||
|
@ -699,7 +699,7 @@ ApplicationWindow {
|
|||
Rectangle {
|
||||
anchors.fill: parent
|
||||
anchors.margins: 1
|
||||
color: parent.parent.hovered || parent.parent.visualFocus ? palette.highlight : "transparent"
|
||||
color: parent.parent.hovered || parent.parent.visualFocus ? palette.highlight : palette.base
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче