Commit c183eb0b authored by Devin Lin's avatar Devin Lin 🎨
Browse files

Remove button gradient

parent 5a20abd8
Pipeline #184742 passed with stage
in 43 seconds
/* SPDX-FileCopyrightText: 2020 Noah Davis <noahadvs@gmail.com>
* SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
*/
import QtQuick 2.15
import org.kde.kirigami 2.19 as Kirigami
import "." as Impl
Loader {
id: root
property real radius: Impl.Units.smallRadius
active: visible
anchors.fill: parent
sourceComponent: Component {
Rectangle {
id: raisedGradient
anchors.fill: parent
gradient: Gradient {
GradientStop {
position: 0
color: Qt.rgba(1,1,1,0.03125)
}
GradientStop {
position: 1
color: Qt.rgba(0,0,0,0.0625)
}
}
radius: root.radius
opacity: parent.opacity
Behavior on opacity {
OpacityAnimator {
duration: Kirigami.Units.shortDuration
easing.type: Easing.OutCubic
}
}
}
}
}
......@@ -95,11 +95,4 @@ Kirigami.ShadowedRectangle {
baseRadius: mainBackground.radius
visible: control.visualFocus
}
BackgroundGradient {
id: bgGradient
radius: mainBackground.radius
opacity: control.down || control.hovered ? 0 : 1
visible: !control.editable && !control.flat && control.enabled
}
}
......@@ -81,11 +81,4 @@ Rectangle {
baseRadius: mainBackground.radius
visible: control.visualFocus
}
BackgroundGradient {
id: bgGradient
radius: mainBackground.radius
opacity: !control.popup.visible && (control.down || control.hovered) ? 0 : 1
visible: !control.editable && !control.flat && control.enabled
}
}
......@@ -8,7 +8,6 @@ depends org.kde.kirigami 2.14
# Make sure the style works with Qt Quick Designer
designersupported
BackgroundGradient 1.0 BackgroundGradient.qml
ButtonBackground 1.0 ButtonBackground.qml
CheckIndicator 1.0 CheckIndicator.qml
ComboBoxBackground 1.0 ComboBoxBackground.qml
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment