Add luminous Dock icon halos for clearer glass contrast

This commit is contained in:
Codex
2026-10-14 12:29:31 +08:00
parent 4d86db3dd5
commit c5e736b39b
4 changed files with 37 additions and 6 deletions
+20 -4
View File
@@ -297,15 +297,31 @@ class _GlassDockState extends State<GlassDock> with TickerProviderStateMixin {
size: 25,
color: index == _position.round().clamp(0, 2)
? _blue
: _blue.withValues(alpha: 0.48),
: _blue.withValues(alpha: 0.72),
shadows: [
Shadow(
color: _blue.withValues(
alpha: index == _position.round().clamp(0, 2)
? 0.20
: 0.08,
? 0.60
: 0.38,
),
blurRadius: 6,
blurRadius: 8,
),
Shadow(
color: const Color(0xFFEAF4FF).withValues(
alpha: index == _position.round().clamp(0, 2)
? 0.95
: 0.85,
),
blurRadius: 2.8,
),
Shadow(
color: _blue.withValues(
alpha: index == _position.round().clamp(0, 2)
? 0.34
: 0.22,
),
blurRadius: 1.4,
),
],
),
+1 -1
View File
@@ -1,7 +1,7 @@
name: hepan_everyday
description: TPSchedule 学生课表
publish_to: none
version: 0.5.5+13
version: 0.5.6+14
environment:
sdk: ^3.13.5
dependencies: