Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Plasma
Breeze Style for QQC2
Commits
b0b1e809
Commit
b0b1e809
authored
Jun 02, 2022
by
Devin Lin
🎨
Committed by
Devin Lin
Jun 03, 2022
Browse files
Remove button gradient
parent
5a20abd8
Changes
4
Hide whitespace changes
Inline
Side-by-side
style/impl/BackgroundGradient.qml
deleted
100644 → 0
View file @
5a20abd8
/* 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
}
}
}
}
}
style/impl/ButtonBackground.qml
View file @
b0b1e809
...
...
@@ -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
}
}
style/impl/ComboBoxBackground.qml
View file @
b0b1e809
...
...
@@ -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
}
}
style/impl/qmldir
View file @
b0b1e809
...
...
@@ -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
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment