changed panorama icon
This commit is contained in:
parent
e56875e9ad
commit
7469a04795
4 changed files with 12 additions and 8 deletions
|
@ -46,7 +46,7 @@ class TypeFilter extends CollectionFilter {
|
||||||
break;
|
break;
|
||||||
case _panorama:
|
case _panorama:
|
||||||
_test = (entry) => entry.isImage && entry.is360;
|
_test = (entry) => entry.isImage && entry.is360;
|
||||||
_icon = AIcons.threeSixty;
|
_icon = AIcons.panorama;
|
||||||
break;
|
break;
|
||||||
case _raw:
|
case _raw:
|
||||||
_test = (entry) => entry.isRaw;
|
_test = (entry) => entry.isRaw;
|
||||||
|
@ -54,7 +54,7 @@ class TypeFilter extends CollectionFilter {
|
||||||
break;
|
break;
|
||||||
case _sphericalVideo:
|
case _sphericalVideo:
|
||||||
_test = (entry) => entry.isVideo && entry.is360;
|
_test = (entry) => entry.isVideo && entry.is360;
|
||||||
_icon = AIcons.threeSixty;
|
_icon = AIcons.sphericalVideo;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -134,7 +134,8 @@ class AIcons {
|
||||||
static const IconData geo = Icons.language_outlined;
|
static const IconData geo = Icons.language_outlined;
|
||||||
static const IconData motionPhoto = Icons.motion_photos_on_outlined;
|
static const IconData motionPhoto = Icons.motion_photos_on_outlined;
|
||||||
static const IconData multiPage = Icons.burst_mode_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 videoThumb = Icons.play_circle_outline;
|
||||||
static const IconData selected = Icons.check_circle_outline;
|
static const IconData selected = Icons.check_circle_outline;
|
||||||
static const IconData unselected = Icons.radio_button_unchecked;
|
static const IconData unselected = Icons.radio_button_unchecked;
|
||||||
|
|
|
@ -21,7 +21,7 @@ class VideoIcon extends StatelessWidget {
|
||||||
final gridTheme = context.watch<GridThemeData>();
|
final gridTheme = context.watch<GridThemeData>();
|
||||||
final showDuration = gridTheme.showVideoDuration;
|
final showDuration = gridTheme.showVideoDuration;
|
||||||
Widget child = OverlayIcon(
|
Widget child = OverlayIcon(
|
||||||
icon: entry.is360 ? AIcons.threeSixty : AIcons.videoThumb,
|
icon: entry.is360 ? AIcons.sphericalVideo : AIcons.videoThumb,
|
||||||
text: showDuration ? entry.durationText : null,
|
text: showDuration ? entry.durationText : null,
|
||||||
iconScale: entry.is360 && showDuration ? .9 : 1,
|
iconScale: entry.is360 && showDuration ? .9 : 1,
|
||||||
);
|
);
|
||||||
|
@ -62,13 +62,16 @@ class GeoTiffIcon extends StatelessWidget {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
class SphericalImageIcon extends StatelessWidget {
|
class PanoramaIcon extends StatelessWidget {
|
||||||
const SphericalImageIcon({super.key});
|
const PanoramaIcon({super.key});
|
||||||
|
|
||||||
|
static const scale = .85;
|
||||||
|
|
||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
return const OverlayIcon(
|
return const OverlayIcon(
|
||||||
icon: AIcons.threeSixty,
|
icon: AIcons.panorama,
|
||||||
|
iconScale: scale,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -29,7 +29,7 @@ class ThumbnailEntryOverlay extends StatelessWidget {
|
||||||
const AnimatedImageIcon()
|
const AnimatedImageIcon()
|
||||||
else ...[
|
else ...[
|
||||||
if (entry.isRaw && context.select<GridThemeData, bool>((t) => t.showRaw)) const RawIcon(),
|
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.isMultiPage) ...[
|
||||||
if (entry.isMotionPhoto && context.select<GridThemeData, bool>((t) => t.showMotionPhoto)) const MotionPhotoIcon(),
|
if (entry.isMotionPhoto && context.select<GridThemeData, bool>((t) => t.showMotionPhoto)) const MotionPhotoIcon(),
|
||||||
|
|
Loading…
Reference in a new issue