mirror of
https://github.com/redstrate/Astra.git
synced 2025-04-22 12:47:44 +00:00
Only round the news banner image when width isn't restricted
This commit is contained in:
parent
262936f06d
commit
3182c0db0b
1 changed files with 1 additions and 1 deletions
|
@ -100,7 +100,7 @@ QQC2.Control {
|
||||||
onClicked: applicationWindow().openUrl(LauncherCore.headline.banners[page.currentBannerIndex].link)
|
onClicked: applicationWindow().openUrl(LauncherCore.headline.banners[page.currentBannerIndex].link)
|
||||||
}
|
}
|
||||||
|
|
||||||
layer.enabled: true
|
layer.enabled: !(bannerImage.width < layout.maximumWidth)
|
||||||
layer.effect: OpacityMask {
|
layer.effect: OpacityMask {
|
||||||
maskSource: Item {
|
maskSource: Item {
|
||||||
width: bannerImage.width
|
width: bannerImage.width
|
||||||
|
|
Loading…
Add table
Reference in a new issue