Update tile look and feel

pull/1133/head
Simon Stürz 2025-12-21 22:25:40 +01:00
parent 7da0b58b50
commit 6a84144d66
3 changed files with 28 additions and 4 deletions

View File

@ -27,6 +27,7 @@ import QtQuick.Layouts
import QtQuick.Controls
import QtQuick.Controls.Material
import QtQuick.Controls.Material.impl
import Qt5Compat.GraphicalEffects
import Nymea
@ -101,6 +102,19 @@ Item {
}
}
Glow {
anchors.fill: background
source: background
radius: 8
samples: 17
spread: 0.4
color: Style.accentColor
opacity: (content.pressed || content.visualFocus || content.hovered) ? 1 : 0
Behavior on opacity {
SmoothedAnimation { duration: Style.slowAnimationDuration }
}
}
ColumnLayout {
id: layout

View File

@ -60,6 +60,19 @@ Item {
radius: Style.cornerRadius
}
Glow {
anchors.fill: background
source: background
radius: 8
samples: 17
spread: 0.4
color: Style.accentColor
opacity: (delegate.pressed || delegate.visualFocus || delegate.hovered) ? 1 : 0
Behavior on opacity {
SmoothedAnimation { duration: Style.slowAnimationDuration }
}
}
Image {
id: backgroundImg
anchors.fill: parent
@ -232,7 +245,4 @@ Item {
}
}
DropShadow {
}
}

View File

@ -1,2 +1,2 @@
1.11.1
693
694