Allow all colors when generating icon color

This commit is contained in:
2024-02-02 15:00:16 +08:00
parent 23abc091ea
commit cd31d117af
2 changed files with 9 additions and 2 deletions

View File

@@ -195,7 +195,8 @@ class _Thumbnail extends State<Thumbnail> {
region: Rect.fromCenter(
center: Offset(i.width / 2, i.height / 2),
width: iconSize,
height: iconSize));
height: iconSize),
filters: [(_) => true]);
if (!_disposed) {
setState(() {
_iconColor = pattle.colors.first.computeLuminance() > 0.5