From 6a84144d66ca6e2dd52f8bbbc3b0f451d7c12f02 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Simon=20St=C3=BCrz?= Date: Sun, 21 Dec 2025 22:25:40 +0100 Subject: [PATCH] Update tile look and feel --- nymea-app/ui/components/BigTile.qml | 14 ++++++++++++++ nymea-app/ui/components/MainPageTile.qml | 16 +++++++++++++--- version.txt | 2 +- 3 files changed, 28 insertions(+), 4 deletions(-) diff --git a/nymea-app/ui/components/BigTile.qml b/nymea-app/ui/components/BigTile.qml index 6ddf8994..a279fdda 100644 --- a/nymea-app/ui/components/BigTile.qml +++ b/nymea-app/ui/components/BigTile.qml @@ -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 diff --git a/nymea-app/ui/components/MainPageTile.qml b/nymea-app/ui/components/MainPageTile.qml index 6bbedb79..87fca87a 100644 --- a/nymea-app/ui/components/MainPageTile.qml +++ b/nymea-app/ui/components/MainPageTile.qml @@ -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 { - - } } diff --git a/version.txt b/version.txt index 09e41efd..95ca83b2 100644 --- a/version.txt +++ b/version.txt @@ -1,2 +1,2 @@ 1.11.1 -693 +694