Pick a better shadow and clean up emoji popup backgrounds
These shadows are now closer to how other popups look.
(cherry picked from commit fe3bf3a638)
This commit is contained in:
@@ -30,11 +30,16 @@ QQC2.Popup {
|
|||||||
onOpened: x = Math.min(parent.mapFromGlobal(QQC2.Overlay.overlay.width - tones.width, 0).x, -(width - parent.width) / 2)
|
onOpened: x = Math.min(parent.mapFromGlobal(QQC2.Overlay.overlay.width - tones.width, 0).x, -(width - parent.width) / 2)
|
||||||
background: Kirigami.ShadowedRectangle {
|
background: Kirigami.ShadowedRectangle {
|
||||||
color: Kirigami.Theme.backgroundColor
|
color: Kirigami.Theme.backgroundColor
|
||||||
radius: Kirigami.Units.smallSpacing
|
radius: Kirigami.Units.mediumSpacing
|
||||||
shadow.size: Kirigami.Units.smallSpacing
|
shadow {
|
||||||
shadow.color: Qt.rgba(0.0, 0.0, 0.0, 0.10)
|
size: Kirigami.Units.largeSpacing
|
||||||
border.color: Kirigami.ColorUtils.tintWithAlpha(color, Kirigami.Theme.textColor, 0.15)
|
color: Qt.rgba(0.0, 0.0, 0.0, 0.3)
|
||||||
border.width: 1
|
yOffset: 2
|
||||||
|
}
|
||||||
|
border {
|
||||||
|
color: Kirigami.ColorUtils.tintWithAlpha(color, Kirigami.Theme.textColor, 0.15)
|
||||||
|
width: 1
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
ListView {
|
ListView {
|
||||||
|
|||||||
@@ -34,11 +34,16 @@ QQC2.Popup {
|
|||||||
background: Kirigami.ShadowedRectangle {
|
background: Kirigami.ShadowedRectangle {
|
||||||
Kirigami.Theme.colorSet: Kirigami.Theme.View
|
Kirigami.Theme.colorSet: Kirigami.Theme.View
|
||||||
color: Kirigami.Theme.backgroundColor
|
color: Kirigami.Theme.backgroundColor
|
||||||
radius: Kirigami.Units.smallSpacing
|
radius: Kirigami.Units.mediumSpacing
|
||||||
shadow.size: Kirigami.Units.smallSpacing
|
shadow {
|
||||||
shadow.color: Qt.rgba(0.0, 0.0, 0.0, 0.10)
|
size: Kirigami.Units.largeSpacing
|
||||||
border.color: Kirigami.ColorUtils.tintWithAlpha(color, Kirigami.Theme.textColor, 0.15)
|
color: Qt.rgba(0.0, 0.0, 0.0, 0.3)
|
||||||
border.width: 2
|
yOffset: 2
|
||||||
|
}
|
||||||
|
border {
|
||||||
|
color: Kirigami.ColorUtils.tintWithAlpha(color, Kirigami.Theme.textColor, 0.15)
|
||||||
|
width: 2
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
modal: true
|
modal: true
|
||||||
|
|||||||
Reference in New Issue
Block a user