added raw filter to Search and Info pages
This commit is contained in:
parent
68af1b0156
commit
148b8b1822
6 changed files with 18 additions and 1 deletions
|
@ -161,6 +161,8 @@
|
||||||
"@filterTypeMotionPhotoLabel": {},
|
"@filterTypeMotionPhotoLabel": {},
|
||||||
"filterTypePanoramaLabel": "Panorama",
|
"filterTypePanoramaLabel": "Panorama",
|
||||||
"@filterTypePanoramaLabel": {},
|
"@filterTypePanoramaLabel": {},
|
||||||
|
"filterTypeRawLabel": "Raw",
|
||||||
|
"@filterTypeRawLabel": {},
|
||||||
"filterTypeSphericalVideoLabel": "360° Video",
|
"filterTypeSphericalVideoLabel": "360° Video",
|
||||||
"@filterTypeSphericalVideoLabel": {},
|
"@filterTypeSphericalVideoLabel": {},
|
||||||
"filterTypeGeotiffLabel": "GeoTIFF",
|
"filterTypeGeotiffLabel": "GeoTIFF",
|
||||||
|
@ -577,6 +579,8 @@
|
||||||
"@drawerCollectionMotionPhotos": {},
|
"@drawerCollectionMotionPhotos": {},
|
||||||
"drawerCollectionPanoramas": "Panoramas",
|
"drawerCollectionPanoramas": "Panoramas",
|
||||||
"@drawerCollectionPanoramas": {},
|
"@drawerCollectionPanoramas": {},
|
||||||
|
"drawerCollectionRaws": "Raw photos",
|
||||||
|
"@drawerCollectionRaws": {},
|
||||||
"drawerCollectionSphericalVideos": "360° Videos",
|
"drawerCollectionSphericalVideos": "360° Videos",
|
||||||
"@drawerCollectionSphericalVideos": {},
|
"@drawerCollectionSphericalVideos": {},
|
||||||
|
|
||||||
|
|
|
@ -79,6 +79,7 @@
|
||||||
"filterTypeAnimatedLabel": "애니메이션",
|
"filterTypeAnimatedLabel": "애니메이션",
|
||||||
"filterTypeMotionPhotoLabel": "모션 포토",
|
"filterTypeMotionPhotoLabel": "모션 포토",
|
||||||
"filterTypePanoramaLabel": "파노라마",
|
"filterTypePanoramaLabel": "파노라마",
|
||||||
|
"filterTypeRawLabel": "Raw",
|
||||||
"filterTypeSphericalVideoLabel": "360° 동영상",
|
"filterTypeSphericalVideoLabel": "360° 동영상",
|
||||||
"filterTypeGeotiffLabel": "GeoTIFF",
|
"filterTypeGeotiffLabel": "GeoTIFF",
|
||||||
"filterMimeImageLabel": "사진",
|
"filterMimeImageLabel": "사진",
|
||||||
|
@ -269,6 +270,7 @@
|
||||||
"drawerCollectionVideos": "동영상",
|
"drawerCollectionVideos": "동영상",
|
||||||
"drawerCollectionMotionPhotos": "모션 포토",
|
"drawerCollectionMotionPhotos": "모션 포토",
|
||||||
"drawerCollectionPanoramas": "파노라마",
|
"drawerCollectionPanoramas": "파노라마",
|
||||||
|
"drawerCollectionRaws": "Raw 이미지",
|
||||||
"drawerCollectionSphericalVideos": "360° 동영상",
|
"drawerCollectionSphericalVideos": "360° 동영상",
|
||||||
|
|
||||||
"chipSortTitle": "정렬",
|
"chipSortTitle": "정렬",
|
||||||
|
@ -350,7 +352,7 @@
|
||||||
"settingsViewerShowShootingDetails": "촬영 정보 표시",
|
"settingsViewerShowShootingDetails": "촬영 정보 표시",
|
||||||
"settingsViewerEnableOverlayBlurEffect": "오버레이 흐림 효과",
|
"settingsViewerEnableOverlayBlurEffect": "오버레이 흐림 효과",
|
||||||
"settingsViewerUseCutout": "컷아웃 영역 사용",
|
"settingsViewerUseCutout": "컷아웃 영역 사용",
|
||||||
"settingsImageBackground": "사진 배경",
|
"settingsImageBackground": "이미지 배경",
|
||||||
|
|
||||||
"settingsViewerQuickActionsTile": "빠른 작업",
|
"settingsViewerQuickActionsTile": "빠른 작업",
|
||||||
"settingsViewerQuickActionEditorTitle": "빠른 작업",
|
"settingsViewerQuickActionEditorTitle": "빠른 작업",
|
||||||
|
|
|
@ -10,6 +10,7 @@ class TypeFilter extends CollectionFilter {
|
||||||
static const _geotiff = 'geotiff'; // subset of `image/tiff`
|
static const _geotiff = 'geotiff'; // subset of `image/tiff`
|
||||||
static const _motionPhoto = 'motion_photo'; // subset of `image/jpeg`
|
static const _motionPhoto = 'motion_photo'; // subset of `image/jpeg`
|
||||||
static const _panorama = 'panorama'; // subset of images
|
static const _panorama = 'panorama'; // subset of images
|
||||||
|
static const _raw = 'raw'; // specific image formats
|
||||||
static const _sphericalVideo = 'spherical_video'; // subset of videos
|
static const _sphericalVideo = 'spherical_video'; // subset of videos
|
||||||
|
|
||||||
final String itemType;
|
final String itemType;
|
||||||
|
@ -20,6 +21,7 @@ class TypeFilter extends CollectionFilter {
|
||||||
static final geotiff = TypeFilter._private(_geotiff);
|
static final geotiff = TypeFilter._private(_geotiff);
|
||||||
static final motionPhoto = TypeFilter._private(_motionPhoto);
|
static final motionPhoto = TypeFilter._private(_motionPhoto);
|
||||||
static final panorama = TypeFilter._private(_panorama);
|
static final panorama = TypeFilter._private(_panorama);
|
||||||
|
static final raw = TypeFilter._private(_raw);
|
||||||
static final sphericalVideo = TypeFilter._private(_sphericalVideo);
|
static final sphericalVideo = TypeFilter._private(_sphericalVideo);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
|
@ -43,6 +45,10 @@ class TypeFilter extends CollectionFilter {
|
||||||
_test = (entry) => entry.isImage && entry.is360;
|
_test = (entry) => entry.isImage && entry.is360;
|
||||||
_icon = AIcons.threeSixty;
|
_icon = AIcons.threeSixty;
|
||||||
break;
|
break;
|
||||||
|
case _raw:
|
||||||
|
_test = (entry) => entry.isRaw;
|
||||||
|
_icon = AIcons.raw;
|
||||||
|
break;
|
||||||
case _sphericalVideo:
|
case _sphericalVideo:
|
||||||
_test = (entry) => entry.isVideo && entry.is360;
|
_test = (entry) => entry.isVideo && entry.is360;
|
||||||
_icon = AIcons.threeSixty;
|
_icon = AIcons.threeSixty;
|
||||||
|
@ -76,6 +82,8 @@ class TypeFilter extends CollectionFilter {
|
||||||
return context.l10n.filterTypeMotionPhotoLabel;
|
return context.l10n.filterTypeMotionPhotoLabel;
|
||||||
case _panorama:
|
case _panorama:
|
||||||
return context.l10n.filterTypePanoramaLabel;
|
return context.l10n.filterTypePanoramaLabel;
|
||||||
|
case _raw:
|
||||||
|
return context.l10n.filterTypeRawLabel;
|
||||||
case _sphericalVideo:
|
case _sphericalVideo:
|
||||||
return context.l10n.filterTypeSphericalVideoLabel;
|
return context.l10n.filterTypeSphericalVideoLabel;
|
||||||
case _geotiff:
|
case _geotiff:
|
||||||
|
|
|
@ -48,6 +48,7 @@ class DrawerFilterTitle extends StatelessWidget {
|
||||||
if (filter == MimeFilter.video) return l10n.drawerCollectionVideos;
|
if (filter == MimeFilter.video) return l10n.drawerCollectionVideos;
|
||||||
if (filter == TypeFilter.motionPhoto) return l10n.drawerCollectionMotionPhotos;
|
if (filter == TypeFilter.motionPhoto) return l10n.drawerCollectionMotionPhotos;
|
||||||
if (filter == TypeFilter.panorama) return l10n.drawerCollectionPanoramas;
|
if (filter == TypeFilter.panorama) return l10n.drawerCollectionPanoramas;
|
||||||
|
if (filter == TypeFilter.raw) return l10n.drawerCollectionRaws;
|
||||||
if (filter == TypeFilter.sphericalVideo) return l10n.drawerCollectionSphericalVideos;
|
if (filter == TypeFilter.sphericalVideo) return l10n.drawerCollectionSphericalVideos;
|
||||||
return filter.getLabel(context);
|
return filter.getLabel(context);
|
||||||
}
|
}
|
||||||
|
|
|
@ -40,6 +40,7 @@ class CollectionSearchDelegate {
|
||||||
TypeFilter.panorama,
|
TypeFilter.panorama,
|
||||||
TypeFilter.sphericalVideo,
|
TypeFilter.sphericalVideo,
|
||||||
TypeFilter.geotiff,
|
TypeFilter.geotiff,
|
||||||
|
TypeFilter.raw,
|
||||||
MimeFilter(MimeTypes.svg),
|
MimeFilter(MimeTypes.svg),
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
|
@ -85,6 +85,7 @@ class BasicSection extends StatelessWidget {
|
||||||
if (entry.isAnimated) TypeFilter.animated,
|
if (entry.isAnimated) TypeFilter.animated,
|
||||||
if (entry.isGeotiff) TypeFilter.geotiff,
|
if (entry.isGeotiff) TypeFilter.geotiff,
|
||||||
if (entry.isMotionPhoto) TypeFilter.motionPhoto,
|
if (entry.isMotionPhoto) TypeFilter.motionPhoto,
|
||||||
|
if (entry.isRaw) TypeFilter.raw,
|
||||||
if (entry.isImage && entry.is360) TypeFilter.panorama,
|
if (entry.isImage && entry.is360) TypeFilter.panorama,
|
||||||
if (entry.isVideo && entry.is360) TypeFilter.sphericalVideo,
|
if (entry.isVideo && entry.is360) TypeFilter.sphericalVideo,
|
||||||
if (entry.isVideo && !entry.is360) MimeFilter.video,
|
if (entry.isVideo && !entry.is360) MimeFilter.video,
|
||||||
|
|
Loading…
Reference in a new issue