Commit 90f5c8ed authored by Danila Kryukov's avatar Danila Kryukov Committed by Albert Astals Cid
Browse files

Fix visual artifacts in new versions of QT



BUG 427923
Signed-off-by: Danila Kryukov's avatarDanila Kryukov <danila.kryukov.dev@yandex.ru>
(cherry picked from commit 7a5ab3a9)
parent 2cd2ed88
......@@ -43,7 +43,7 @@ Button {
color: buttonColorScheme.normalText
id: content
text: button.text
elide: "ElideNone"
elide: Text.ElideNone
Behavior on color {
ColorAnimation { duration: Units.shortDuration }
......@@ -56,21 +56,22 @@ Button {
anchors.fill: parent;
id: bg
color: buttonColorScheme.alternateBackground
visible: false
}
HueSaturation {
anchors.fill: bg
source: bg
saturation: hovered? 0.3: 0
lightness: hovered? -0.04: 0
Behavior on saturation {
NumberAnimation {
duration: Units.shortDuration
}
HueSaturation {
anchors.fill: bg
source: bg
saturation: hovered? 0.3: 0
lightness: hovered? -0.04: 0
Behavior on saturation {
NumberAnimation {
duration: Units.shortDuration
}
Behavior on lightness {
NumberAnimation {
duration: Units.shortDuration
}
}
Behavior on lightness {
NumberAnimation {
duration: Units.shortDuration
}
}
}
......
......@@ -40,7 +40,7 @@ ToolButton {
id: content
text: button.text
color: button.colorScheme.normalText
elide: "ElideNone"
elide: Text.ElideNone
}
background: Item {
......
......@@ -15,14 +15,24 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
import QtQuick 2.9
import QtGraphicalEffects 1.0
Icon {
property color color: "#000000"
id: icon
Item {
property alias icon: icon.icon
property color color : "#000000"
width: icon.width
height: icon.height
Icon {
id: icon
visible: false
}
ColorOverlay {
anchors.fill: parent
anchors.fill: icon
source: icon
color: parent.color
}
}
Markdown is supported
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