changed panorama icon

This commit is contained in:
Thibault Deckers 2022-09-06 09:52:33 +02:00
parent e56875e9ad
commit 7469a04795
4 changed files with 12 additions and 8 deletions

View file

@ -46,7 +46,7 @@ class TypeFilter extends CollectionFilter {
break;
case _panorama:
_test = (entry) => entry.isImage && entry.is360;
_icon = AIcons.threeSixty;
_icon = AIcons.panorama;
break;
case _raw:
_test = (entry) => entry.isRaw;
@ -54,7 +54,7 @@ class TypeFilter extends CollectionFilter {
break;
case _sphericalVideo:
_test = (entry) => entry.isVideo && entry.is360;
_icon = AIcons.threeSixty;
_icon = AIcons.sphericalVideo;
break;
}
}

View file

@ -134,7 +134,8 @@ class AIcons {
static const IconData geo = Icons.language_outlined;
static const IconData motionPhoto = Icons.motion_photos_on_outlined;
static const IconData multiPage = Icons.burst_mode_outlined;
static const IconData threeSixty = Icons.threesixty_outlined;
static const IconData panorama = Icons.vrpano_outlined;
static const IconData sphericalVideo = Icons.threesixty_outlined;
static const IconData videoThumb = Icons.play_circle_outline;
static const IconData selected = Icons.check_circle_outline;
static const IconData unselected = Icons.radio_button_unchecked;

View file

@ -21,7 +21,7 @@ class VideoIcon extends StatelessWidget {
final gridTheme = context.watch<GridThemeData>();
final showDuration = gridTheme.showVideoDuration;
Widget child = OverlayIcon(
icon: entry.is360 ? AIcons.threeSixty : AIcons.videoThumb,
icon: entry.is360 ? AIcons.sphericalVideo : AIcons.videoThumb,
text: showDuration ? entry.durationText : null,
iconScale: entry.is360 && showDuration ? .9 : 1,
);
@ -62,13 +62,16 @@ class GeoTiffIcon extends StatelessWidget {
}
}
class SphericalImageIcon extends StatelessWidget {
const SphericalImageIcon({super.key});
class PanoramaIcon extends StatelessWidget {
const PanoramaIcon({super.key});
static const scale = .85;
@override
Widget build(BuildContext context) {
return const OverlayIcon(
icon: AIcons.threeSixty,
icon: AIcons.panorama,
iconScale: scale,
);
}
}

View file

@ -29,7 +29,7 @@ class ThumbnailEntryOverlay extends StatelessWidget {
const AnimatedImageIcon()
else ...[
if (entry.isRaw && context.select<GridThemeData, bool>((t) => t.showRaw)) const RawIcon(),
if (entry.is360) const SphericalImageIcon(),
if (entry.is360) const PanoramaIcon(),
],
if (entry.isMultiPage) ...[
if (entry.isMotionPhoto && context.select<GridThemeData, bool>((t) => t.showMotionPhoto)) const MotionPhotoIcon(),