Move editor UI into the app and release verified Core dependencies #14
No files matched your search
@@ -0,0 +1,87 @@
|
|||||||
|
import 'package:cutdex/l10n/l10n.dart';
|
||||||
|
import 'package:cutdex_ui/icons.dart';
|
||||||
|
import 'package:cutdex_ui/theme.dart';
|
||||||
|
import 'package:cutdex_ui/widgets.dart';
|
||||||
|
import 'package:flutter/material.dart';
|
||||||
|
|
||||||
|
class ColorInterpretationControls extends StatelessWidget {
|
||||||
|
const ColorInterpretationControls({
|
||||||
|
super.key,
|
||||||
|
required this.value,
|
||||||
|
this.notice,
|
||||||
|
required this.options,
|
||||||
|
this.onChanged,
|
||||||
|
});
|
||||||
|
|
||||||
|
final String value;
|
||||||
|
final String? notice;
|
||||||
|
final List<AppSelectOption<String>> options;
|
||||||
|
final ValueChanged<String>? onChanged;
|
||||||
|
|
||||||
|
@override
|
||||||
|
Widget build(BuildContext context) {
|
||||||
|
final secondary = Theme.of(context).colorScheme.onSurfaceVariant;
|
||||||
|
final desktop = AppTheme.isDesktop(context);
|
||||||
|
return AppPropertySection(
|
||||||
|
bottomSpacing: desktop ? AppSpacing.small : null,
|
||||||
|
child: Column(
|
||||||
|
crossAxisAlignment: CrossAxisAlignment.stretch,
|
||||||
|
children: [
|
||||||
|
Row(
|
||||||
|
children: [
|
||||||
|
Expanded(
|
||||||
|
flex: 4,
|
||||||
|
child: Tooltip(
|
||||||
|
message: context.l10n.mediaColorInterpretationScope,
|
||||||
|
child: Text(
|
||||||
|
context.l10n.mediaInputColorSpace,
|
||||||
|
style: AppTheme.propertySectionTitleStyle(context),
|
||||||
|
),
|
||||||
|
),
|
||||||
|
),
|
||||||
|
Expanded(
|
||||||
|
flex: 6,
|
||||||
|
child: AppSelect<String>(
|
||||||
|
key: const Key('media-color-menu'),
|
||||||
|
emptyLabel: context.l10n.noMatchingOptions,
|
||||||
|
outlined: false,
|
||||||
|
controlHeight: desktop ? AppInspectorMetrics.input : 32,
|
||||||
|
label: context.l10n.mediaInputColorSpace,
|
||||||
|
value: value,
|
||||||
|
onChanged: onChanged,
|
||||||
|
options: options,
|
||||||
|
),
|
||||||
|
),
|
||||||
|
IconButton(
|
||||||
|
key: const Key('media-color-reset'),
|
||||||
|
tooltip: context.l10n.resetMediaColorInterpretation,
|
||||||
|
icon: const Icon(AppIcons.reset, size: 16),
|
||||||
|
style: IconButton.styleFrom(
|
||||||
|
minimumSize: Size.square(
|
||||||
|
desktop ? AppInspectorMetrics.action : 40,
|
||||||
|
),
|
||||||
|
padding: EdgeInsets.zero,
|
||||||
|
tapTargetSize: desktop
|
||||||
|
? MaterialTapTargetSize.shrinkWrap
|
||||||
|
: MaterialTapTargetSize.padded,
|
||||||
|
),
|
||||||
|
onPressed: value == 'auto' || onChanged == null
|
||||||
|
? null
|
||||||
|
: () => onChanged!('auto'),
|
||||||
|
),
|
||||||
|
],
|
||||||
|
),
|
||||||
|
if (notice != null) ...[
|
||||||
|
const SizedBox(height: 2),
|
||||||
|
Text(
|
||||||
|
notice!,
|
||||||
|
key: const Key('media-color-status'),
|
||||||
|
style: Theme.of(context).textTheme.bodySmall
|
||||||
|
?.copyWith(color: secondary),
|
||||||
|
),
|
||||||
|
],
|
||||||
|
],
|
||||||
|
),
|
||||||
|
);
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,79 @@
|
|||||||
|
import 'package:cutdex/l10n/app_localizations.dart';
|
||||||
|
import 'package:cutdex_ui/theme.dart';
|
||||||
|
import 'package:cutdex_ui/widgets.dart';
|
||||||
|
import 'package:flutter/material.dart';
|
||||||
|
import 'package:flutter/widget_previews.dart';
|
||||||
|
|
||||||
|
import 'color_interpretation_controls.dart';
|
||||||
|
|
||||||
|
@Preview(
|
||||||
|
name: 'Color — narrow automatic',
|
||||||
|
group: 'Properties',
|
||||||
|
size: Size(220, 220),
|
||||||
|
)
|
||||||
|
Widget narrowColorControlsPreview() => _host(desktop: true);
|
||||||
|
|
||||||
|
@Preview(
|
||||||
|
name: 'Color — manual light',
|
||||||
|
group: 'Properties',
|
||||||
|
size: Size(280, 220),
|
||||||
|
)
|
||||||
|
Widget manualColorControlsPreview() =>
|
||||||
|
_host(desktop: true, brightness: Brightness.light, value: 'rec2020HLG');
|
||||||
|
|
||||||
|
@Preview(name: 'Color — loading', group: 'Properties', size: Size(260, 220))
|
||||||
|
Widget loadingColorControlsPreview() => _host(desktop: true, loading: true);
|
||||||
|
|
||||||
|
@Preview(name: 'Color — mobile', group: 'Properties', size: Size(400, 260))
|
||||||
|
Widget mobileColorControlsPreview() => _host(desktop: false);
|
||||||
|
|
||||||
|
Widget _host({
|
||||||
|
required bool desktop,
|
||||||
|
Brightness brightness = Brightness.dark,
|
||||||
|
String value = 'auto',
|
||||||
|
bool loading = false,
|
||||||
|
}) {
|
||||||
|
final theme = AppTheme.forPalette(AppPalette.graphite, brightness);
|
||||||
|
return MaterialApp(
|
||||||
|
debugShowCheckedModeBanner: false,
|
||||||
|
locale: const Locale('zh'),
|
||||||
|
localizationsDelegates: AppLocalizations.localizationsDelegates,
|
||||||
|
supportedLocales: AppLocalizations.supportedLocales,
|
||||||
|
theme: AppTheme.propertiesPanelTheme(
|
||||||
|
desktop ? AppTheme.desktopWorkspaceTheme(theme) : theme,
|
||||||
|
),
|
||||||
|
home: Scaffold(
|
||||||
|
body: _ColorControlsPreview(initialValue: value, loading: loading),
|
||||||
|
),
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
class _ColorControlsPreview extends StatefulWidget {
|
||||||
|
const _ColorControlsPreview({
|
||||||
|
required this.initialValue,
|
||||||
|
required this.loading,
|
||||||
|
});
|
||||||
|
final String initialValue;
|
||||||
|
final bool loading;
|
||||||
|
|
||||||
|
@override
|
||||||
|
State<_ColorControlsPreview> createState() => _ColorControlsPreviewState();
|
||||||
|
}
|
||||||
|
|
||||||
|
class _ColorControlsPreviewState extends State<_ColorControlsPreview> {
|
||||||
|
late String _value = widget.initialValue;
|
||||||
|
|
||||||
|
@override
|
||||||
|
Widget build(BuildContext context) => ColorInterpretationControls(
|
||||||
|
value: _value,
|
||||||
|
notice: widget.loading ? '色彩信息未读取' : null,
|
||||||
|
onChanged: widget.loading
|
||||||
|
? null
|
||||||
|
: (value) => setState(() => _value = value),
|
||||||
|
options: [
|
||||||
|
AppSelectOption('auto', widget.loading ? '自动' : '自动 · Rec.709'),
|
||||||
|
const AppSelectOption('rec709', 'Rec.709'),
|
||||||
|
const AppSelectOption('rec2020HLG', 'Rec.2020 HLG'),
|
||||||
|
],
|
||||||
|
);
|
||||||
|
}
|
||||||
@@ -4,10 +4,10 @@ import 'package:cutdex_sdk/runtime.dart';
|
|||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:flutter_riverpod/flutter_riverpod.dart';
|
import 'package:flutter_riverpod/flutter_riverpod.dart';
|
||||||
|
|
||||||
import 'package:cutdex_ui/theme.dart';
|
|
||||||
import 'package:cutdex_ui/widgets.dart';
|
import 'package:cutdex_ui/widgets.dart';
|
||||||
|
|
||||||
import '../../workspace/media_color_interpretation.dart';
|
import '../../workspace/media_color_interpretation.dart';
|
||||||
|
import 'color_interpretation_controls.dart';
|
||||||
import '../../shared/widgets/listenable_selector.dart';
|
import '../../shared/widgets/listenable_selector.dart';
|
||||||
import '../../workspace/timeline_session.dart';
|
import '../../workspace/timeline_session.dart';
|
||||||
import '../preview/preview_panel.dart';
|
import '../preview/preview_panel.dart';
|
||||||
@@ -40,20 +40,15 @@ class ColorInterpretationProperties extends ConsumerWidget {
|
|||||||
final detected = colors?.elementAtOrNull(trackIndex);
|
final detected = colors?.elementAtOrNull(trackIndex);
|
||||||
final reported =
|
final reported =
|
||||||
colors != null && trackIndex >= 0 && trackIndex < colors.length;
|
colors != null && trackIndex >= 0 && trackIndex < colors.length;
|
||||||
final status = selected != null
|
final notice = !reported
|
||||||
? context.l10n.manualColorSpace(selected.label(context.l10n))
|
? context.l10n.colorInfoNotLoaded
|
||||||
: detected != null
|
: selected == null && detected == null
|
||||||
? context.l10n.detectedColorSpace(detected.label(context.l10n))
|
|
||||||
: reported
|
|
||||||
? context.l10n.unknownColorSpace
|
? context.l10n.unknownColorSpace
|
||||||
: context.l10n.colorInfoNotLoaded;
|
: null;
|
||||||
final selector = AppSelect<String>(
|
return ColorInterpretationControls(
|
||||||
emptyLabel: context.l10n.noMatchingOptions,
|
|
||||||
key: const Key('media-color-menu'),
|
|
||||||
outlined: false,
|
|
||||||
label: context.l10n.mediaColorInterpretation,
|
|
||||||
value: selected?.name ?? 'auto',
|
value: selected?.name ?? 'auto',
|
||||||
onChanged: !reported
|
notice: notice,
|
||||||
|
onChanged: !reported || !session.acceptsEdits
|
||||||
? null
|
? null
|
||||||
: (value) => session.commands.setMediaColor(
|
: (value) => session.commands.setMediaColor(
|
||||||
assetId,
|
assetId,
|
||||||
@@ -61,66 +56,16 @@ class ColorInterpretationProperties extends ConsumerWidget {
|
|||||||
value == 'auto' ? null : MediaColorSpace.values.byName(value),
|
value == 'auto' ? null : MediaColorSpace.values.byName(value),
|
||||||
),
|
),
|
||||||
options: [
|
options: [
|
||||||
AppSelectOption('auto', context.l10n.auto),
|
AppSelectOption(
|
||||||
|
'auto',
|
||||||
|
detected == null
|
||||||
|
? context.l10n.auto
|
||||||
|
: '${context.l10n.auto} · ${detected.label(context.l10n)}',
|
||||||
|
),
|
||||||
for (final color in RenderColorSpace.values)
|
for (final color in RenderColorSpace.values)
|
||||||
AppSelectOption(color.name, color.label(context.l10n)),
|
AppSelectOption(color.name, color.label(context.l10n)),
|
||||||
],
|
],
|
||||||
);
|
);
|
||||||
final controls = Column(
|
|
||||||
crossAxisAlignment: CrossAxisAlignment.stretch,
|
|
||||||
spacing: AppSpacing.gap,
|
|
||||||
children: [
|
|
||||||
if (AppTheme.isDesktop(context)) ...[
|
|
||||||
AppPropertyGroup(
|
|
||||||
label: context.l10n.mediaColorSpace,
|
|
||||||
child: selector,
|
|
||||||
),
|
|
||||||
] else
|
|
||||||
Row(
|
|
||||||
children: [
|
|
||||||
Expanded(
|
|
||||||
child: Text(
|
|
||||||
context.l10n.mediaColorSpace,
|
|
||||||
style: AppTheme.propertySectionTitleStyle(context),
|
|
||||||
),
|
|
||||||
),
|
|
||||||
Flexible(child: selector),
|
|
||||||
],
|
|
||||||
),
|
|
||||||
Text(
|
|
||||||
status,
|
|
||||||
key: const Key('media-color-status'),
|
|
||||||
style: Theme.of(context).textTheme.bodySmall,
|
|
||||||
),
|
|
||||||
],
|
|
||||||
);
|
|
||||||
return AppPropertySection(
|
|
||||||
bottomSpacing: AppTheme.isDesktop(context) ? 0 : null,
|
|
||||||
child: AppTheme.isDesktop(context)
|
|
||||||
? ExpansionTile(
|
|
||||||
key: PageStorageKey((
|
|
||||||
'media-color-section',
|
|
||||||
assetId,
|
|
||||||
trackIndex,
|
|
||||||
)),
|
|
||||||
title: Text(
|
|
||||||
context.l10n.mediaColorInterpretation,
|
|
||||||
style: AppTheme.propertySectionTitleStyle(context),
|
|
||||||
),
|
|
||||||
tilePadding: EdgeInsets.zero,
|
|
||||||
childrenPadding: const EdgeInsets.only(
|
|
||||||
bottom: AppInspectorMetrics.groupGap,
|
|
||||||
),
|
|
||||||
minTileHeight: AppInspectorMetrics.sectionHeader,
|
|
||||||
dense: true,
|
|
||||||
maintainState: true,
|
|
||||||
initiallyExpanded: selected != null,
|
|
||||||
shape: const Border(),
|
|
||||||
collapsedShape: const Border(),
|
|
||||||
children: [controls],
|
|
||||||
)
|
|
||||||
: controls,
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return ListenableSelector(
|
return ListenableSelector(
|
||||||
|
|||||||
@@ -80,8 +80,8 @@ class ProjectProperties extends StatelessWidget {
|
|||||||
() => session.canvas.label(context),
|
() => session.canvas.label(context),
|
||||||
),
|
),
|
||||||
info(
|
info(
|
||||||
context.l10n.projectColorSpace,
|
context.l10n.projectOutputColorSpace,
|
||||||
() => switch (session.projectColorSpace) {
|
() => switch (session.projectOutputColorSpace) {
|
||||||
RenderColorSpace.rec2020HLG => 'HDR · Rec.2020 HLG',
|
RenderColorSpace.rec2020HLG => 'HDR · Rec.2020 HLG',
|
||||||
RenderColorSpace.rec2020PQ => 'HDR · Rec.2020 PQ',
|
RenderColorSpace.rec2020PQ => 'HDR · Rec.2020 PQ',
|
||||||
_ => 'SDR · Rec.709',
|
_ => 'SDR · Rec.709',
|
||||||
|
|||||||
@@ -56,7 +56,7 @@ class _ProjectSettingsDialogState extends State<ProjectSettingsDialog> {
|
|||||||
.timeline(widget.session.activeSequenceId!)
|
.timeline(widget.session.activeSequenceId!)
|
||||||
.format
|
.format
|
||||||
.frameDuration;
|
.frameDuration;
|
||||||
_color = widget.session.projectColorSpace;
|
_color = widget.session.projectOutputColorSpace;
|
||||||
_preset = _sizes.entries
|
_preset = _sizes.entries
|
||||||
.where((e) => e.value.$1 == canvas.width && e.value.$2 == canvas.height)
|
.where((e) => e.value.$1 == canvas.width && e.value.$2 == canvas.height)
|
||||||
.firstOrNull
|
.firstOrNull
|
||||||
@@ -198,12 +198,12 @@ class _ProjectSettingsDialogState extends State<ProjectSettingsDialog> {
|
|||||||
),
|
),
|
||||||
),
|
),
|
||||||
AppField(
|
AppField(
|
||||||
label: l10n.projectColorSpace,
|
label: l10n.projectOutputColorSpace,
|
||||||
child: AppSelect<RenderColorSpace>(
|
child: AppSelect<RenderColorSpace>(
|
||||||
emptyLabel: context.l10n.noMatchingOptions,
|
emptyLabel: context.l10n.noMatchingOptions,
|
||||||
key: const ValueKey('project-color-space'),
|
key: const ValueKey('project-color-space'),
|
||||||
value: _color,
|
value: _color,
|
||||||
label: l10n.projectColorSpace,
|
label: l10n.projectOutputColorSpace,
|
||||||
options: const [
|
options: const [
|
||||||
AppSelectOption(RenderColorSpace.rec709, 'SDR · Rec.709'),
|
AppSelectOption(RenderColorSpace.rec709, 'SDR · Rec.709'),
|
||||||
AppSelectOption(
|
AppSelectOption(
|
||||||
|
|||||||
@@ -146,26 +146,22 @@ class PropertiesContent extends ConsumerWidget {
|
|||||||
clip: clip,
|
clip: clip,
|
||||||
hasAudio: hasAudio,
|
hasAudio: hasAudio,
|
||||||
),
|
),
|
||||||
picture: Column(
|
color: payload?.type == 'video' && binding?.videoTrackIndex != null
|
||||||
crossAxisAlignment: CrossAxisAlignment.stretch,
|
? ColorInterpretationProperties(
|
||||||
children: [
|
|
||||||
if (payload?.type == 'video' && binding?.videoTrackIndex != null)
|
|
||||||
ColorInterpretationProperties(
|
|
||||||
projectId: projectId,
|
projectId: projectId,
|
||||||
timelineId: timelineId,
|
timelineId: timelineId,
|
||||||
session: session,
|
session: session,
|
||||||
assetId: payload!.assetIds.single,
|
assetId: payload!.assetIds.single,
|
||||||
trackIndex: binding!.videoTrackIndex!,
|
trackIndex: binding!.videoTrackIndex!,
|
||||||
),
|
)
|
||||||
PictureProperties(
|
: const SizedBox.shrink(),
|
||||||
key: ValueKey((sequence, clip.id)),
|
picture: PictureProperties(
|
||||||
projectId: projectId,
|
key: ValueKey((sequence, clip.id)),
|
||||||
timelineId: timelineId,
|
projectId: projectId,
|
||||||
session: session,
|
timelineId: timelineId,
|
||||||
sequence: sequence,
|
session: session,
|
||||||
clip: clip,
|
sequence: sequence,
|
||||||
),
|
clip: clip,
|
||||||
],
|
|
||||||
),
|
),
|
||||||
animation: PictureProperties(
|
animation: PictureProperties(
|
||||||
key: ValueKey((sequence, clip.id, 'animation')),
|
key: ValueKey((sequence, clip.id, 'animation')),
|
||||||
@@ -189,6 +185,7 @@ class _ClipProperties extends StatefulWidget {
|
|||||||
required this.sequence,
|
required this.sequence,
|
||||||
required this.clip,
|
required this.clip,
|
||||||
required this.picture,
|
required this.picture,
|
||||||
|
required this.color,
|
||||||
required this.mask,
|
required this.mask,
|
||||||
required this.audio,
|
required this.audio,
|
||||||
required this.speed,
|
required this.speed,
|
||||||
@@ -203,6 +200,7 @@ class _ClipProperties extends StatefulWidget {
|
|||||||
final SequenceId sequence;
|
final SequenceId sequence;
|
||||||
final ElementRecord clip;
|
final ElementRecord clip;
|
||||||
final Widget picture;
|
final Widget picture;
|
||||||
|
final Widget color;
|
||||||
final Widget mask;
|
final Widget mask;
|
||||||
final Widget audio;
|
final Widget audio;
|
||||||
final Widget speed;
|
final Widget speed;
|
||||||
@@ -266,6 +264,7 @@ class _ClipPropertiesState extends State<_ClipProperties> {
|
|||||||
children: [
|
children: [
|
||||||
...switch (_selected) {
|
...switch (_selected) {
|
||||||
PropertyCategory.picture => [widget.picture],
|
PropertyCategory.picture => [widget.picture],
|
||||||
|
PropertyCategory.color => [widget.color],
|
||||||
PropertyCategory.mask => [widget.mask],
|
PropertyCategory.mask => [widget.mask],
|
||||||
PropertyCategory.audio => [widget.audio],
|
PropertyCategory.audio => [widget.audio],
|
||||||
PropertyCategory.speed => [widget.speed],
|
PropertyCategory.speed => [widget.speed],
|
||||||
|
|||||||
@@ -125,6 +125,7 @@ List<PropertyCategory> categoriesForClip(ElementRecord clip, String? type) {
|
|||||||
return switch (type) {
|
return switch (type) {
|
||||||
'video' => [
|
'video' => [
|
||||||
PropertyCategory.picture,
|
PropertyCategory.picture,
|
||||||
|
PropertyCategory.color,
|
||||||
PropertyCategory.mask,
|
PropertyCategory.mask,
|
||||||
PropertyCategory.audio,
|
PropertyCategory.audio,
|
||||||
PropertyCategory.speed,
|
PropertyCategory.speed,
|
||||||
|
|||||||
@@ -14,6 +14,7 @@ final propertyCategoryProvider =
|
|||||||
|
|
||||||
enum PropertyCategory {
|
enum PropertyCategory {
|
||||||
picture,
|
picture,
|
||||||
|
color,
|
||||||
mask,
|
mask,
|
||||||
audio,
|
audio,
|
||||||
speed,
|
speed,
|
||||||
@@ -22,6 +23,7 @@ enum PropertyCategory {
|
|||||||
|
|
||||||
String label(BuildContext context) => switch (this) {
|
String label(BuildContext context) => switch (this) {
|
||||||
picture => context.l10n.pictureProperties,
|
picture => context.l10n.pictureProperties,
|
||||||
|
color => context.l10n.color,
|
||||||
mask => context.l10n.mask,
|
mask => context.l10n.mask,
|
||||||
audio => context.l10n.audio,
|
audio => context.l10n.audio,
|
||||||
speed => context.l10n.speedChange,
|
speed => context.l10n.speedChange,
|
||||||
|
|||||||
+4
-2
@@ -196,7 +196,9 @@
|
|||||||
"invalidNumber": "Ungültiger Wert",
|
"invalidNumber": "Ungültiger Wert",
|
||||||
"mediaUnavailable": "Medien nicht verfügbar",
|
"mediaUnavailable": "Medien nicht verfügbar",
|
||||||
"mediaMissing": "Fehlende Medien",
|
"mediaMissing": "Fehlende Medien",
|
||||||
"mediaColorSpace": "Medienfarbraum",
|
"mediaInputColorSpace": "Eingabefarbraum",
|
||||||
|
"resetMediaColorInterpretation": "Automatische Erkennung wiederherstellen",
|
||||||
|
"mediaColorInterpretationScope": "Gilt für alle Clips, die diesen Quellvideostream verwenden.",
|
||||||
"mediaColorInterpretation": "Interpretation der Medienfarbe",
|
"mediaColorInterpretation": "Interpretation der Medienfarbe",
|
||||||
"colorInfoNotLoaded": "Farbinformationen nicht geladen",
|
"colorInfoNotLoaded": "Farbinformationen nicht geladen",
|
||||||
"unknownColorSpace": "Unbekannter Farbraum. Anzeige als Rec.709.",
|
"unknownColorSpace": "Unbekannter Farbraum. Anzeige als Rec.709.",
|
||||||
@@ -613,7 +615,7 @@
|
|||||||
"modify": "Modify",
|
"modify": "Modify",
|
||||||
"projectSettings": "Project settings",
|
"projectSettings": "Project settings",
|
||||||
"projectSettingsDescription": "Change project output settings while keeping clip timing and speed.",
|
"projectSettingsDescription": "Change project output settings while keeping clip timing and speed.",
|
||||||
"projectColorSpace": "Color space",
|
"projectOutputColorSpace": "Ausgabefarbraum",
|
||||||
"projectWidth": "Width (px)",
|
"projectWidth": "Width (px)",
|
||||||
"projectHeight": "Height (px)",
|
"projectHeight": "Height (px)",
|
||||||
"projectResolutionInvalid": "Enter a whole number from 1 to 16384",
|
"projectResolutionInvalid": "Enter a whole number from 1 to 16384",
|
||||||
|
|||||||
+4
-2
@@ -261,7 +261,9 @@
|
|||||||
"invalidNumber": "Invalid value",
|
"invalidNumber": "Invalid value",
|
||||||
"mediaUnavailable": "Media unavailable",
|
"mediaUnavailable": "Media unavailable",
|
||||||
"mediaMissing": "Missing media",
|
"mediaMissing": "Missing media",
|
||||||
"mediaColorSpace": "Media color space",
|
"mediaInputColorSpace": "Input color space",
|
||||||
|
"resetMediaColorInterpretation": "Restore automatic detection",
|
||||||
|
"mediaColorInterpretationScope": "Applies to all clips using this source video stream.",
|
||||||
"mediaColorInterpretation": "Media color interpretation",
|
"mediaColorInterpretation": "Media color interpretation",
|
||||||
"colorInfoNotLoaded": "Color information not loaded",
|
"colorInfoNotLoaded": "Color information not loaded",
|
||||||
"unknownColorSpace": "Unknown color space. Displaying as Rec.709.",
|
"unknownColorSpace": "Unknown color space. Displaying as Rec.709.",
|
||||||
@@ -678,7 +680,7 @@
|
|||||||
"modify": "Modify",
|
"modify": "Modify",
|
||||||
"projectSettings": "Project settings",
|
"projectSettings": "Project settings",
|
||||||
"projectSettingsDescription": "Change project output settings while keeping clip timing and speed.",
|
"projectSettingsDescription": "Change project output settings while keeping clip timing and speed.",
|
||||||
"projectColorSpace": "Color space",
|
"projectOutputColorSpace": "Output color space",
|
||||||
"projectWidth": "Width (px)",
|
"projectWidth": "Width (px)",
|
||||||
"projectHeight": "Height (px)",
|
"projectHeight": "Height (px)",
|
||||||
"projectResolutionInvalid": "Enter a whole number from 1 to 16384",
|
"projectResolutionInvalid": "Enter a whole number from 1 to 16384",
|
||||||
|
|||||||
+4
-2
@@ -196,7 +196,9 @@
|
|||||||
"invalidNumber": "Valor no válido",
|
"invalidNumber": "Valor no válido",
|
||||||
"mediaUnavailable": "Medios no disponibles",
|
"mediaUnavailable": "Medios no disponibles",
|
||||||
"mediaMissing": "Medios faltantes",
|
"mediaMissing": "Medios faltantes",
|
||||||
"mediaColorSpace": "Espacio de color de medios",
|
"mediaInputColorSpace": "Espacio de color de entrada",
|
||||||
|
"resetMediaColorInterpretation": "Restaurar detección automática",
|
||||||
|
"mediaColorInterpretationScope": "Se aplica a todos los clips que usan este flujo de video de origen.",
|
||||||
"mediaColorInterpretation": "Interpretación del color de los medios.",
|
"mediaColorInterpretation": "Interpretación del color de los medios.",
|
||||||
"colorInfoNotLoaded": "Información de color no cargada",
|
"colorInfoNotLoaded": "Información de color no cargada",
|
||||||
"unknownColorSpace": "Espacio de color desconocido. Mostrando como Rec.709.",
|
"unknownColorSpace": "Espacio de color desconocido. Mostrando como Rec.709.",
|
||||||
@@ -613,7 +615,7 @@
|
|||||||
"modify": "Modify",
|
"modify": "Modify",
|
||||||
"projectSettings": "Project settings",
|
"projectSettings": "Project settings",
|
||||||
"projectSettingsDescription": "Change project output settings while keeping clip timing and speed.",
|
"projectSettingsDescription": "Change project output settings while keeping clip timing and speed.",
|
||||||
"projectColorSpace": "Color space",
|
"projectOutputColorSpace": "Espacio de color de salida",
|
||||||
"projectWidth": "Width (px)",
|
"projectWidth": "Width (px)",
|
||||||
"projectHeight": "Height (px)",
|
"projectHeight": "Height (px)",
|
||||||
"projectResolutionInvalid": "Enter a whole number from 1 to 16384",
|
"projectResolutionInvalid": "Enter a whole number from 1 to 16384",
|
||||||
|
|||||||
+4
-2
@@ -196,7 +196,9 @@
|
|||||||
"invalidNumber": "Valeur invalide",
|
"invalidNumber": "Valeur invalide",
|
||||||
"mediaUnavailable": "Médias indisponibles",
|
"mediaUnavailable": "Médias indisponibles",
|
||||||
"mediaMissing": "Média manquant",
|
"mediaMissing": "Média manquant",
|
||||||
"mediaColorSpace": "Espace colorimétrique des médias",
|
"mediaInputColorSpace": "Espace colorimétrique d’entrée",
|
||||||
|
"resetMediaColorInterpretation": "Rétablir la détection automatique",
|
||||||
|
"mediaColorInterpretationScope": "S’applique à tous les plans utilisant ce flux vidéo source.",
|
||||||
"mediaColorInterpretation": "Interprétation des couleurs des médias",
|
"mediaColorInterpretation": "Interprétation des couleurs des médias",
|
||||||
"colorInfoNotLoaded": "Les informations de couleur ne sont pas chargées",
|
"colorInfoNotLoaded": "Les informations de couleur ne sont pas chargées",
|
||||||
"unknownColorSpace": "Espace colorimétrique inconnu. Affichage sous forme de Rec.709.",
|
"unknownColorSpace": "Espace colorimétrique inconnu. Affichage sous forme de Rec.709.",
|
||||||
@@ -613,7 +615,7 @@
|
|||||||
"modify": "Modify",
|
"modify": "Modify",
|
||||||
"projectSettings": "Project settings",
|
"projectSettings": "Project settings",
|
||||||
"projectSettingsDescription": "Change project output settings while keeping clip timing and speed.",
|
"projectSettingsDescription": "Change project output settings while keeping clip timing and speed.",
|
||||||
"projectColorSpace": "Color space",
|
"projectOutputColorSpace": "Espace colorimétrique de sortie",
|
||||||
"projectWidth": "Width (px)",
|
"projectWidth": "Width (px)",
|
||||||
"projectHeight": "Height (px)",
|
"projectHeight": "Height (px)",
|
||||||
"projectResolutionInvalid": "Enter a whole number from 1 to 16384",
|
"projectResolutionInvalid": "Enter a whole number from 1 to 16384",
|
||||||
|
|||||||
+4
-2
@@ -196,7 +196,9 @@
|
|||||||
"invalidNumber": "Valore non valido",
|
"invalidNumber": "Valore non valido",
|
||||||
"mediaUnavailable": "Supporto non disponibile",
|
"mediaUnavailable": "Supporto non disponibile",
|
||||||
"mediaMissing": "Media mancanti",
|
"mediaMissing": "Media mancanti",
|
||||||
"mediaColorSpace": "Spazio colore multimediale",
|
"mediaInputColorSpace": "Spazio colore di ingresso",
|
||||||
|
"resetMediaColorInterpretation": "Ripristina rilevamento automatico",
|
||||||
|
"mediaColorInterpretationScope": "Si applica a tutte le clip che usano questo flusso video sorgente.",
|
||||||
"mediaColorInterpretation": "Interpretazione del colore dei media",
|
"mediaColorInterpretation": "Interpretazione del colore dei media",
|
||||||
"colorInfoNotLoaded": "Informazioni sul colore non caricate",
|
"colorInfoNotLoaded": "Informazioni sul colore non caricate",
|
||||||
"unknownColorSpace": "Spazio colore sconosciuto. Visualizzato come Rec.709.",
|
"unknownColorSpace": "Spazio colore sconosciuto. Visualizzato come Rec.709.",
|
||||||
@@ -613,7 +615,7 @@
|
|||||||
"modify": "Modify",
|
"modify": "Modify",
|
||||||
"projectSettings": "Project settings",
|
"projectSettings": "Project settings",
|
||||||
"projectSettingsDescription": "Change project output settings while keeping clip timing and speed.",
|
"projectSettingsDescription": "Change project output settings while keeping clip timing and speed.",
|
||||||
"projectColorSpace": "Color space",
|
"projectOutputColorSpace": "Spazio colore di uscita",
|
||||||
"projectWidth": "Width (px)",
|
"projectWidth": "Width (px)",
|
||||||
"projectHeight": "Height (px)",
|
"projectHeight": "Height (px)",
|
||||||
"projectResolutionInvalid": "Enter a whole number from 1 to 16384",
|
"projectResolutionInvalid": "Enter a whole number from 1 to 16384",
|
||||||
|
|||||||
+4
-2
@@ -196,7 +196,9 @@
|
|||||||
"invalidNumber": "無効な値",
|
"invalidNumber": "無効な値",
|
||||||
"mediaUnavailable": "メディアが利用できません",
|
"mediaUnavailable": "メディアが利用できません",
|
||||||
"mediaMissing": "メディアが見つかりません",
|
"mediaMissing": "メディアが見つかりません",
|
||||||
"mediaColorSpace": "メディアの色空間",
|
"mediaInputColorSpace": "入力色空間",
|
||||||
|
"resetMediaColorInterpretation": "自動検出に戻す",
|
||||||
|
"mediaColorInterpretationScope": "この素材の映像ストリームを使用するすべてのクリップに適用されます。",
|
||||||
"mediaColorInterpretation": "メディアの色の解釈",
|
"mediaColorInterpretation": "メディアの色の解釈",
|
||||||
"colorInfoNotLoaded": "カラー情報が読み込まれていません",
|
"colorInfoNotLoaded": "カラー情報が読み込まれていません",
|
||||||
"unknownColorSpace": "不明な色空間。 Rec.709として表示されます。",
|
"unknownColorSpace": "不明な色空間。 Rec.709として表示されます。",
|
||||||
@@ -613,7 +615,7 @@
|
|||||||
"modify": "Modify",
|
"modify": "Modify",
|
||||||
"projectSettings": "Project settings",
|
"projectSettings": "Project settings",
|
||||||
"projectSettingsDescription": "Change project output settings while keeping clip timing and speed.",
|
"projectSettingsDescription": "Change project output settings while keeping clip timing and speed.",
|
||||||
"projectColorSpace": "Color space",
|
"projectOutputColorSpace": "出力色空間",
|
||||||
"projectWidth": "Width (px)",
|
"projectWidth": "Width (px)",
|
||||||
"projectHeight": "Height (px)",
|
"projectHeight": "Height (px)",
|
||||||
"projectResolutionInvalid": "Enter a whole number from 1 to 16384",
|
"projectResolutionInvalid": "Enter a whole number from 1 to 16384",
|
||||||
|
|||||||
+4
-2
@@ -196,7 +196,9 @@
|
|||||||
"invalidNumber": "잘못된 값",
|
"invalidNumber": "잘못된 값",
|
||||||
"mediaUnavailable": "미디어를 사용할 수 없음",
|
"mediaUnavailable": "미디어를 사용할 수 없음",
|
||||||
"mediaMissing": "미디어 누락",
|
"mediaMissing": "미디어 누락",
|
||||||
"mediaColorSpace": "미디어 색 공간",
|
"mediaInputColorSpace": "입력 색 공간",
|
||||||
|
"resetMediaColorInterpretation": "자동 감지 복원",
|
||||||
|
"mediaColorInterpretationScope": "이 소스 비디오 스트림을 사용하는 모든 클립에 적용됩니다.",
|
||||||
"mediaColorInterpretation": "미디어 색상 해석",
|
"mediaColorInterpretation": "미디어 색상 해석",
|
||||||
"colorInfoNotLoaded": "색상 정보가 로드되지 않았습니다.",
|
"colorInfoNotLoaded": "색상 정보가 로드되지 않았습니다.",
|
||||||
"unknownColorSpace": "알 수 없는 색상 공간입니다. Rec.709로 표시됩니다.",
|
"unknownColorSpace": "알 수 없는 색상 공간입니다. Rec.709로 표시됩니다.",
|
||||||
@@ -613,7 +615,7 @@
|
|||||||
"modify": "Modify",
|
"modify": "Modify",
|
||||||
"projectSettings": "Project settings",
|
"projectSettings": "Project settings",
|
||||||
"projectSettingsDescription": "Change project output settings while keeping clip timing and speed.",
|
"projectSettingsDescription": "Change project output settings while keeping clip timing and speed.",
|
||||||
"projectColorSpace": "Color space",
|
"projectOutputColorSpace": "출력 색 공간",
|
||||||
"projectWidth": "Width (px)",
|
"projectWidth": "Width (px)",
|
||||||
"projectHeight": "Height (px)",
|
"projectHeight": "Height (px)",
|
||||||
"projectResolutionInvalid": "Enter a whole number from 1 to 16384",
|
"projectResolutionInvalid": "Enter a whole number from 1 to 16384",
|
||||||
|
|||||||
@@ -1466,11 +1466,23 @@ abstract class AppLocalizations {
|
|||||||
/// **'Missing media'**
|
/// **'Missing media'**
|
||||||
String get mediaMissing;
|
String get mediaMissing;
|
||||||
|
|
||||||
/// No description provided for @mediaColorSpace.
|
/// No description provided for @mediaInputColorSpace.
|
||||||
///
|
///
|
||||||
/// In en, this message translates to:
|
/// In en, this message translates to:
|
||||||
/// **'Media color space'**
|
/// **'Input color space'**
|
||||||
String get mediaColorSpace;
|
String get mediaInputColorSpace;
|
||||||
|
|
||||||
|
/// No description provided for @resetMediaColorInterpretation.
|
||||||
|
///
|
||||||
|
/// In en, this message translates to:
|
||||||
|
/// **'Restore automatic detection'**
|
||||||
|
String get resetMediaColorInterpretation;
|
||||||
|
|
||||||
|
/// No description provided for @mediaColorInterpretationScope.
|
||||||
|
///
|
||||||
|
/// In en, this message translates to:
|
||||||
|
/// **'Applies to all clips using this source video stream.'**
|
||||||
|
String get mediaColorInterpretationScope;
|
||||||
|
|
||||||
/// No description provided for @mediaColorInterpretation.
|
/// No description provided for @mediaColorInterpretation.
|
||||||
///
|
///
|
||||||
@@ -2630,11 +2642,11 @@ abstract class AppLocalizations {
|
|||||||
/// **'Change project output settings while keeping clip timing and speed.'**
|
/// **'Change project output settings while keeping clip timing and speed.'**
|
||||||
String get projectSettingsDescription;
|
String get projectSettingsDescription;
|
||||||
|
|
||||||
/// No description provided for @projectColorSpace.
|
/// No description provided for @projectOutputColorSpace.
|
||||||
///
|
///
|
||||||
/// In en, this message translates to:
|
/// In en, this message translates to:
|
||||||
/// **'Color space'**
|
/// **'Output color space'**
|
||||||
String get projectColorSpace;
|
String get projectOutputColorSpace;
|
||||||
|
|
||||||
/// No description provided for @projectWidth.
|
/// No description provided for @projectWidth.
|
||||||
///
|
///
|
||||||
|
|||||||
@@ -727,7 +727,15 @@ class AppLocalizationsDe extends AppLocalizations {
|
|||||||
String get mediaMissing => 'Fehlende Medien';
|
String get mediaMissing => 'Fehlende Medien';
|
||||||
|
|
||||||
@override
|
@override
|
||||||
String get mediaColorSpace => 'Medienfarbraum';
|
String get mediaInputColorSpace => 'Eingabefarbraum';
|
||||||
|
|
||||||
|
@override
|
||||||
|
String get resetMediaColorInterpretation =>
|
||||||
|
'Automatische Erkennung wiederherstellen';
|
||||||
|
|
||||||
|
@override
|
||||||
|
String get mediaColorInterpretationScope =>
|
||||||
|
'Gilt für alle Clips, die diesen Quellvideostream verwenden.';
|
||||||
|
|
||||||
@override
|
@override
|
||||||
String get mediaColorInterpretation => 'Interpretation der Medienfarbe';
|
String get mediaColorInterpretation => 'Interpretation der Medienfarbe';
|
||||||
@@ -1437,7 +1445,7 @@ class AppLocalizationsDe extends AppLocalizations {
|
|||||||
'Change project output settings while keeping clip timing and speed.';
|
'Change project output settings while keeping clip timing and speed.';
|
||||||
|
|
||||||
@override
|
@override
|
||||||
String get projectColorSpace => 'Color space';
|
String get projectOutputColorSpace => 'Ausgabefarbraum';
|
||||||
|
|
||||||
@override
|
@override
|
||||||
String get projectWidth => 'Width (px)';
|
String get projectWidth => 'Width (px)';
|
||||||
|
|||||||
@@ -720,7 +720,14 @@ class AppLocalizationsEn extends AppLocalizations {
|
|||||||
String get mediaMissing => 'Missing media';
|
String get mediaMissing => 'Missing media';
|
||||||
|
|
||||||
@override
|
@override
|
||||||
String get mediaColorSpace => 'Media color space';
|
String get mediaInputColorSpace => 'Input color space';
|
||||||
|
|
||||||
|
@override
|
||||||
|
String get resetMediaColorInterpretation => 'Restore automatic detection';
|
||||||
|
|
||||||
|
@override
|
||||||
|
String get mediaColorInterpretationScope =>
|
||||||
|
'Applies to all clips using this source video stream.';
|
||||||
|
|
||||||
@override
|
@override
|
||||||
String get mediaColorInterpretation => 'Media color interpretation';
|
String get mediaColorInterpretation => 'Media color interpretation';
|
||||||
@@ -1410,7 +1417,7 @@ class AppLocalizationsEn extends AppLocalizations {
|
|||||||
'Change project output settings while keeping clip timing and speed.';
|
'Change project output settings while keeping clip timing and speed.';
|
||||||
|
|
||||||
@override
|
@override
|
||||||
String get projectColorSpace => 'Color space';
|
String get projectOutputColorSpace => 'Output color space';
|
||||||
|
|
||||||
@override
|
@override
|
||||||
String get projectWidth => 'Width (px)';
|
String get projectWidth => 'Width (px)';
|
||||||
|
|||||||
@@ -727,7 +727,14 @@ class AppLocalizationsEs extends AppLocalizations {
|
|||||||
String get mediaMissing => 'Medios faltantes';
|
String get mediaMissing => 'Medios faltantes';
|
||||||
|
|
||||||
@override
|
@override
|
||||||
String get mediaColorSpace => 'Espacio de color de medios';
|
String get mediaInputColorSpace => 'Espacio de color de entrada';
|
||||||
|
|
||||||
|
@override
|
||||||
|
String get resetMediaColorInterpretation => 'Restaurar detección automática';
|
||||||
|
|
||||||
|
@override
|
||||||
|
String get mediaColorInterpretationScope =>
|
||||||
|
'Se aplica a todos los clips que usan este flujo de video de origen.';
|
||||||
|
|
||||||
@override
|
@override
|
||||||
String get mediaColorInterpretation =>
|
String get mediaColorInterpretation =>
|
||||||
@@ -1436,7 +1443,7 @@ class AppLocalizationsEs extends AppLocalizations {
|
|||||||
'Change project output settings while keeping clip timing and speed.';
|
'Change project output settings while keeping clip timing and speed.';
|
||||||
|
|
||||||
@override
|
@override
|
||||||
String get projectColorSpace => 'Color space';
|
String get projectOutputColorSpace => 'Espacio de color de salida';
|
||||||
|
|
||||||
@override
|
@override
|
||||||
String get projectWidth => 'Width (px)';
|
String get projectWidth => 'Width (px)';
|
||||||
|
|||||||
@@ -724,7 +724,15 @@ class AppLocalizationsFr extends AppLocalizations {
|
|||||||
String get mediaMissing => 'Média manquant';
|
String get mediaMissing => 'Média manquant';
|
||||||
|
|
||||||
@override
|
@override
|
||||||
String get mediaColorSpace => 'Espace colorimétrique des médias';
|
String get mediaInputColorSpace => 'Espace colorimétrique d’entrée';
|
||||||
|
|
||||||
|
@override
|
||||||
|
String get resetMediaColorInterpretation =>
|
||||||
|
'Rétablir la détection automatique';
|
||||||
|
|
||||||
|
@override
|
||||||
|
String get mediaColorInterpretationScope =>
|
||||||
|
'S’applique à tous les plans utilisant ce flux vidéo source.';
|
||||||
|
|
||||||
@override
|
@override
|
||||||
String get mediaColorInterpretation =>
|
String get mediaColorInterpretation =>
|
||||||
@@ -1434,7 +1442,7 @@ class AppLocalizationsFr extends AppLocalizations {
|
|||||||
'Change project output settings while keeping clip timing and speed.';
|
'Change project output settings while keeping clip timing and speed.';
|
||||||
|
|
||||||
@override
|
@override
|
||||||
String get projectColorSpace => 'Color space';
|
String get projectOutputColorSpace => 'Espace colorimétrique de sortie';
|
||||||
|
|
||||||
@override
|
@override
|
||||||
String get projectWidth => 'Width (px)';
|
String get projectWidth => 'Width (px)';
|
||||||
|
|||||||
@@ -724,7 +724,15 @@ class AppLocalizationsIt extends AppLocalizations {
|
|||||||
String get mediaMissing => 'Media mancanti';
|
String get mediaMissing => 'Media mancanti';
|
||||||
|
|
||||||
@override
|
@override
|
||||||
String get mediaColorSpace => 'Spazio colore multimediale';
|
String get mediaInputColorSpace => 'Spazio colore di ingresso';
|
||||||
|
|
||||||
|
@override
|
||||||
|
String get resetMediaColorInterpretation =>
|
||||||
|
'Ripristina rilevamento automatico';
|
||||||
|
|
||||||
|
@override
|
||||||
|
String get mediaColorInterpretationScope =>
|
||||||
|
'Si applica a tutte le clip che usano questo flusso video sorgente.';
|
||||||
|
|
||||||
@override
|
@override
|
||||||
String get mediaColorInterpretation => 'Interpretazione del colore dei media';
|
String get mediaColorInterpretation => 'Interpretazione del colore dei media';
|
||||||
@@ -1430,7 +1438,7 @@ class AppLocalizationsIt extends AppLocalizations {
|
|||||||
'Change project output settings while keeping clip timing and speed.';
|
'Change project output settings while keeping clip timing and speed.';
|
||||||
|
|
||||||
@override
|
@override
|
||||||
String get projectColorSpace => 'Color space';
|
String get projectOutputColorSpace => 'Spazio colore di uscita';
|
||||||
|
|
||||||
@override
|
@override
|
||||||
String get projectWidth => 'Width (px)';
|
String get projectWidth => 'Width (px)';
|
||||||
|
|||||||
@@ -701,7 +701,14 @@ class AppLocalizationsJa extends AppLocalizations {
|
|||||||
String get mediaMissing => 'メディアが見つかりません';
|
String get mediaMissing => 'メディアが見つかりません';
|
||||||
|
|
||||||
@override
|
@override
|
||||||
String get mediaColorSpace => 'メディアの色空間';
|
String get mediaInputColorSpace => '入力色空間';
|
||||||
|
|
||||||
|
@override
|
||||||
|
String get resetMediaColorInterpretation => '自動検出に戻す';
|
||||||
|
|
||||||
|
@override
|
||||||
|
String get mediaColorInterpretationScope =>
|
||||||
|
'この素材の映像ストリームを使用するすべてのクリップに適用されます。';
|
||||||
|
|
||||||
@override
|
@override
|
||||||
String get mediaColorInterpretation => 'メディアの色の解釈';
|
String get mediaColorInterpretation => 'メディアの色の解釈';
|
||||||
@@ -1368,7 +1375,7 @@ class AppLocalizationsJa extends AppLocalizations {
|
|||||||
'Change project output settings while keeping clip timing and speed.';
|
'Change project output settings while keeping clip timing and speed.';
|
||||||
|
|
||||||
@override
|
@override
|
||||||
String get projectColorSpace => 'Color space';
|
String get projectOutputColorSpace => '出力色空間';
|
||||||
|
|
||||||
@override
|
@override
|
||||||
String get projectWidth => 'Width (px)';
|
String get projectWidth => 'Width (px)';
|
||||||
|
|||||||
@@ -702,7 +702,14 @@ class AppLocalizationsKo extends AppLocalizations {
|
|||||||
String get mediaMissing => '미디어 누락';
|
String get mediaMissing => '미디어 누락';
|
||||||
|
|
||||||
@override
|
@override
|
||||||
String get mediaColorSpace => '미디어 색 공간';
|
String get mediaInputColorSpace => '입력 색 공간';
|
||||||
|
|
||||||
|
@override
|
||||||
|
String get resetMediaColorInterpretation => '자동 감지 복원';
|
||||||
|
|
||||||
|
@override
|
||||||
|
String get mediaColorInterpretationScope =>
|
||||||
|
'이 소스 비디오 스트림을 사용하는 모든 클립에 적용됩니다.';
|
||||||
|
|
||||||
@override
|
@override
|
||||||
String get mediaColorInterpretation => '미디어 색상 해석';
|
String get mediaColorInterpretation => '미디어 색상 해석';
|
||||||
@@ -1367,7 +1374,7 @@ class AppLocalizationsKo extends AppLocalizations {
|
|||||||
'Change project output settings while keeping clip timing and speed.';
|
'Change project output settings while keeping clip timing and speed.';
|
||||||
|
|
||||||
@override
|
@override
|
||||||
String get projectColorSpace => 'Color space';
|
String get projectOutputColorSpace => '출력 색 공간';
|
||||||
|
|
||||||
@override
|
@override
|
||||||
String get projectWidth => 'Width (px)';
|
String get projectWidth => 'Width (px)';
|
||||||
|
|||||||
@@ -725,7 +725,14 @@ class AppLocalizationsPt extends AppLocalizations {
|
|||||||
String get mediaMissing => 'Mídia ausente';
|
String get mediaMissing => 'Mídia ausente';
|
||||||
|
|
||||||
@override
|
@override
|
||||||
String get mediaColorSpace => 'Espaço de cores da mídia';
|
String get mediaInputColorSpace => 'Espaço de cor de entrada';
|
||||||
|
|
||||||
|
@override
|
||||||
|
String get resetMediaColorInterpretation => 'Restaurar detecção automática';
|
||||||
|
|
||||||
|
@override
|
||||||
|
String get mediaColorInterpretationScope =>
|
||||||
|
'Aplica-se a todos os clipes que usam este fluxo de vídeo de origem.';
|
||||||
|
|
||||||
@override
|
@override
|
||||||
String get mediaColorInterpretation => 'Interpretação de cores da mídia';
|
String get mediaColorInterpretation => 'Interpretação de cores da mídia';
|
||||||
@@ -1431,7 +1438,7 @@ class AppLocalizationsPt extends AppLocalizations {
|
|||||||
'Change project output settings while keeping clip timing and speed.';
|
'Change project output settings while keeping clip timing and speed.';
|
||||||
|
|
||||||
@override
|
@override
|
||||||
String get projectColorSpace => 'Color space';
|
String get projectOutputColorSpace => 'Espaço de cor de saída';
|
||||||
|
|
||||||
@override
|
@override
|
||||||
String get projectWidth => 'Width (px)';
|
String get projectWidth => 'Width (px)';
|
||||||
|
|||||||
@@ -721,7 +721,15 @@ class AppLocalizationsRu extends AppLocalizations {
|
|||||||
String get mediaMissing => 'Медиа отсутствует';
|
String get mediaMissing => 'Медиа отсутствует';
|
||||||
|
|
||||||
@override
|
@override
|
||||||
String get mediaColorSpace => 'Цветовое пространство мультимедиа';
|
String get mediaInputColorSpace => 'Входное цветовое пространство';
|
||||||
|
|
||||||
|
@override
|
||||||
|
String get resetMediaColorInterpretation =>
|
||||||
|
'Восстановить автоматическое определение';
|
||||||
|
|
||||||
|
@override
|
||||||
|
String get mediaColorInterpretationScope =>
|
||||||
|
'Применяется ко всем клипам, использующим этот исходный видеопоток.';
|
||||||
|
|
||||||
@override
|
@override
|
||||||
String get mediaColorInterpretation => 'Интерпретация цвета медиа';
|
String get mediaColorInterpretation => 'Интерпретация цвета медиа';
|
||||||
@@ -1426,7 +1434,7 @@ class AppLocalizationsRu extends AppLocalizations {
|
|||||||
'Change project output settings while keeping clip timing and speed.';
|
'Change project output settings while keeping clip timing and speed.';
|
||||||
|
|
||||||
@override
|
@override
|
||||||
String get projectColorSpace => 'Color space';
|
String get projectOutputColorSpace => 'Выходное цветовое пространство';
|
||||||
|
|
||||||
@override
|
@override
|
||||||
String get projectWidth => 'Width (px)';
|
String get projectWidth => 'Width (px)';
|
||||||
|
|||||||
@@ -695,7 +695,13 @@ class AppLocalizationsZh extends AppLocalizations {
|
|||||||
String get mediaMissing => '素材缺失';
|
String get mediaMissing => '素材缺失';
|
||||||
|
|
||||||
@override
|
@override
|
||||||
String get mediaColorSpace => '素材色彩空间';
|
String get mediaInputColorSpace => '输入色彩空间';
|
||||||
|
|
||||||
|
@override
|
||||||
|
String get resetMediaColorInterpretation => '恢复自动识别';
|
||||||
|
|
||||||
|
@override
|
||||||
|
String get mediaColorInterpretationScope => '影响使用该素材视频流的所有片段。';
|
||||||
|
|
||||||
@override
|
@override
|
||||||
String get mediaColorInterpretation => '素材色彩解释';
|
String get mediaColorInterpretation => '素材色彩解释';
|
||||||
@@ -1339,7 +1345,7 @@ class AppLocalizationsZh extends AppLocalizations {
|
|||||||
String get projectSettingsDescription => '修改项目输出规格,保留片段的实际时长和速度。';
|
String get projectSettingsDescription => '修改项目输出规格,保留片段的实际时长和速度。';
|
||||||
|
|
||||||
@override
|
@override
|
||||||
String get projectColorSpace => '色彩空间';
|
String get projectOutputColorSpace => '输出色彩空间';
|
||||||
|
|
||||||
@override
|
@override
|
||||||
String get projectWidth => '宽度(px)';
|
String get projectWidth => '宽度(px)';
|
||||||
@@ -3128,7 +3134,13 @@ class AppLocalizationsZhHans extends AppLocalizationsZh {
|
|||||||
String get mediaMissing => '素材缺失';
|
String get mediaMissing => '素材缺失';
|
||||||
|
|
||||||
@override
|
@override
|
||||||
String get mediaColorSpace => '素材色彩空间';
|
String get mediaInputColorSpace => '输入色彩空间';
|
||||||
|
|
||||||
|
@override
|
||||||
|
String get resetMediaColorInterpretation => '恢复自动识别';
|
||||||
|
|
||||||
|
@override
|
||||||
|
String get mediaColorInterpretationScope => '影响使用该素材视频流的所有片段。';
|
||||||
|
|
||||||
@override
|
@override
|
||||||
String get mediaColorInterpretation => '素材色彩解释';
|
String get mediaColorInterpretation => '素材色彩解释';
|
||||||
@@ -3772,7 +3784,7 @@ class AppLocalizationsZhHans extends AppLocalizationsZh {
|
|||||||
String get projectSettingsDescription => '修改项目输出规格,保留片段的实际时长和速度。';
|
String get projectSettingsDescription => '修改项目输出规格,保留片段的实际时长和速度。';
|
||||||
|
|
||||||
@override
|
@override
|
||||||
String get projectColorSpace => '色彩空间';
|
String get projectOutputColorSpace => '输出色彩空间';
|
||||||
|
|
||||||
@override
|
@override
|
||||||
String get projectWidth => '宽度(px)';
|
String get projectWidth => '宽度(px)';
|
||||||
@@ -5561,7 +5573,13 @@ class AppLocalizationsZhHant extends AppLocalizationsZh {
|
|||||||
String get mediaMissing => '素材缺失';
|
String get mediaMissing => '素材缺失';
|
||||||
|
|
||||||
@override
|
@override
|
||||||
String get mediaColorSpace => '素材色彩空間';
|
String get mediaInputColorSpace => '輸入色彩空間';
|
||||||
|
|
||||||
|
@override
|
||||||
|
String get resetMediaColorInterpretation => '恢復自動辨識';
|
||||||
|
|
||||||
|
@override
|
||||||
|
String get mediaColorInterpretationScope => '影響使用此素材視訊串流的所有片段。';
|
||||||
|
|
||||||
@override
|
@override
|
||||||
String get mediaColorInterpretation => '素材色彩解釋';
|
String get mediaColorInterpretation => '素材色彩解釋';
|
||||||
@@ -6205,7 +6223,7 @@ class AppLocalizationsZhHant extends AppLocalizationsZh {
|
|||||||
String get projectSettingsDescription => '修改项目输出规格,保留片段的实际时长和速度。';
|
String get projectSettingsDescription => '修改项目输出规格,保留片段的实际时长和速度。';
|
||||||
|
|
||||||
@override
|
@override
|
||||||
String get projectColorSpace => '色彩空间';
|
String get projectOutputColorSpace => '輸出色彩空間';
|
||||||
|
|
||||||
@override
|
@override
|
||||||
String get projectWidth => '宽度(px)';
|
String get projectWidth => '宽度(px)';
|
||||||
|
|||||||
+4
-2
@@ -196,7 +196,9 @@
|
|||||||
"invalidNumber": "Valor inválido",
|
"invalidNumber": "Valor inválido",
|
||||||
"mediaUnavailable": "Mídia indisponível",
|
"mediaUnavailable": "Mídia indisponível",
|
||||||
"mediaMissing": "Mídia ausente",
|
"mediaMissing": "Mídia ausente",
|
||||||
"mediaColorSpace": "Espaço de cores da mídia",
|
"mediaInputColorSpace": "Espaço de cor de entrada",
|
||||||
|
"resetMediaColorInterpretation": "Restaurar detecção automática",
|
||||||
|
"mediaColorInterpretationScope": "Aplica-se a todos os clipes que usam este fluxo de vídeo de origem.",
|
||||||
"mediaColorInterpretation": "Interpretação de cores da mídia",
|
"mediaColorInterpretation": "Interpretação de cores da mídia",
|
||||||
"colorInfoNotLoaded": "Informações de cor não carregadas",
|
"colorInfoNotLoaded": "Informações de cor não carregadas",
|
||||||
"unknownColorSpace": "Espaço de cores desconhecido. Exibindo como Rec.709.",
|
"unknownColorSpace": "Espaço de cores desconhecido. Exibindo como Rec.709.",
|
||||||
@@ -613,7 +615,7 @@
|
|||||||
"modify": "Modify",
|
"modify": "Modify",
|
||||||
"projectSettings": "Project settings",
|
"projectSettings": "Project settings",
|
||||||
"projectSettingsDescription": "Change project output settings while keeping clip timing and speed.",
|
"projectSettingsDescription": "Change project output settings while keeping clip timing and speed.",
|
||||||
"projectColorSpace": "Color space",
|
"projectOutputColorSpace": "Espaço de cor de saída",
|
||||||
"projectWidth": "Width (px)",
|
"projectWidth": "Width (px)",
|
||||||
"projectHeight": "Height (px)",
|
"projectHeight": "Height (px)",
|
||||||
"projectResolutionInvalid": "Enter a whole number from 1 to 16384",
|
"projectResolutionInvalid": "Enter a whole number from 1 to 16384",
|
||||||
|
|||||||
+4
-2
@@ -196,7 +196,9 @@
|
|||||||
"invalidNumber": "Недопустимое значение",
|
"invalidNumber": "Недопустимое значение",
|
||||||
"mediaUnavailable": "Медиа недоступно",
|
"mediaUnavailable": "Медиа недоступно",
|
||||||
"mediaMissing": "Медиа отсутствует",
|
"mediaMissing": "Медиа отсутствует",
|
||||||
"mediaColorSpace": "Цветовое пространство мультимедиа",
|
"mediaInputColorSpace": "Входное цветовое пространство",
|
||||||
|
"resetMediaColorInterpretation": "Восстановить автоматическое определение",
|
||||||
|
"mediaColorInterpretationScope": "Применяется ко всем клипам, использующим этот исходный видеопоток.",
|
||||||
"mediaColorInterpretation": "Интерпретация цвета медиа",
|
"mediaColorInterpretation": "Интерпретация цвета медиа",
|
||||||
"colorInfoNotLoaded": "Информация о цвете не загружена",
|
"colorInfoNotLoaded": "Информация о цвете не загружена",
|
||||||
"unknownColorSpace": "Неизвестное цветовое пространство. Отображается как Rec.709.",
|
"unknownColorSpace": "Неизвестное цветовое пространство. Отображается как Rec.709.",
|
||||||
@@ -613,7 +615,7 @@
|
|||||||
"modify": "Modify",
|
"modify": "Modify",
|
||||||
"projectSettings": "Project settings",
|
"projectSettings": "Project settings",
|
||||||
"projectSettingsDescription": "Change project output settings while keeping clip timing and speed.",
|
"projectSettingsDescription": "Change project output settings while keeping clip timing and speed.",
|
||||||
"projectColorSpace": "Color space",
|
"projectOutputColorSpace": "Выходное цветовое пространство",
|
||||||
"projectWidth": "Width (px)",
|
"projectWidth": "Width (px)",
|
||||||
"projectHeight": "Height (px)",
|
"projectHeight": "Height (px)",
|
||||||
"projectResolutionInvalid": "Enter a whole number from 1 to 16384",
|
"projectResolutionInvalid": "Enter a whole number from 1 to 16384",
|
||||||
|
|||||||
+4
-2
@@ -225,7 +225,9 @@
|
|||||||
"invalidNumber": "无效数值",
|
"invalidNumber": "无效数值",
|
||||||
"mediaUnavailable": "素材不可用",
|
"mediaUnavailable": "素材不可用",
|
||||||
"mediaMissing": "素材缺失",
|
"mediaMissing": "素材缺失",
|
||||||
"mediaColorSpace": "素材色彩空间",
|
"mediaInputColorSpace": "输入色彩空间",
|
||||||
|
"resetMediaColorInterpretation": "恢复自动识别",
|
||||||
|
"mediaColorInterpretationScope": "影响使用该素材视频流的所有片段。",
|
||||||
"mediaColorInterpretation": "素材色彩解释",
|
"mediaColorInterpretation": "素材色彩解释",
|
||||||
"colorInfoNotLoaded": "色彩信息未读取",
|
"colorInfoNotLoaded": "色彩信息未读取",
|
||||||
"unknownColorSpace": "色彩空间未知,暂按 Rec.709 显示",
|
"unknownColorSpace": "色彩空间未知,暂按 Rec.709 显示",
|
||||||
@@ -642,7 +644,7 @@
|
|||||||
"modify": "修改",
|
"modify": "修改",
|
||||||
"projectSettings": "项目设置",
|
"projectSettings": "项目设置",
|
||||||
"projectSettingsDescription": "修改项目输出规格,保留片段的实际时长和速度。",
|
"projectSettingsDescription": "修改项目输出规格,保留片段的实际时长和速度。",
|
||||||
"projectColorSpace": "色彩空间",
|
"projectOutputColorSpace": "输出色彩空间",
|
||||||
"projectWidth": "宽度(px)",
|
"projectWidth": "宽度(px)",
|
||||||
"projectHeight": "高度(px)",
|
"projectHeight": "高度(px)",
|
||||||
"projectResolutionInvalid": "请输入 1–16384 的整数",
|
"projectResolutionInvalid": "请输入 1–16384 的整数",
|
||||||
|
|||||||
@@ -225,7 +225,9 @@
|
|||||||
"invalidNumber": "无效数值",
|
"invalidNumber": "无效数值",
|
||||||
"mediaUnavailable": "素材不可用",
|
"mediaUnavailable": "素材不可用",
|
||||||
"mediaMissing": "素材缺失",
|
"mediaMissing": "素材缺失",
|
||||||
"mediaColorSpace": "素材色彩空间",
|
"mediaInputColorSpace": "输入色彩空间",
|
||||||
|
"resetMediaColorInterpretation": "恢复自动识别",
|
||||||
|
"mediaColorInterpretationScope": "影响使用该素材视频流的所有片段。",
|
||||||
"mediaColorInterpretation": "素材色彩解释",
|
"mediaColorInterpretation": "素材色彩解释",
|
||||||
"colorInfoNotLoaded": "色彩信息未读取",
|
"colorInfoNotLoaded": "色彩信息未读取",
|
||||||
"unknownColorSpace": "色彩空间未知,暂按 Rec.709 显示",
|
"unknownColorSpace": "色彩空间未知,暂按 Rec.709 显示",
|
||||||
@@ -642,7 +644,7 @@
|
|||||||
"modify": "修改",
|
"modify": "修改",
|
||||||
"projectSettings": "项目设置",
|
"projectSettings": "项目设置",
|
||||||
"projectSettingsDescription": "修改项目输出规格,保留片段的实际时长和速度。",
|
"projectSettingsDescription": "修改项目输出规格,保留片段的实际时长和速度。",
|
||||||
"projectColorSpace": "色彩空间",
|
"projectOutputColorSpace": "输出色彩空间",
|
||||||
"projectWidth": "宽度(px)",
|
"projectWidth": "宽度(px)",
|
||||||
"projectHeight": "高度(px)",
|
"projectHeight": "高度(px)",
|
||||||
"projectResolutionInvalid": "请输入 1–16384 的整数",
|
"projectResolutionInvalid": "请输入 1–16384 的整数",
|
||||||
|
|||||||
@@ -225,7 +225,9 @@
|
|||||||
"invalidNumber": "無效數值",
|
"invalidNumber": "無效數值",
|
||||||
"mediaUnavailable": "素材不可用",
|
"mediaUnavailable": "素材不可用",
|
||||||
"mediaMissing": "素材缺失",
|
"mediaMissing": "素材缺失",
|
||||||
"mediaColorSpace": "素材色彩空間",
|
"mediaInputColorSpace": "輸入色彩空間",
|
||||||
|
"resetMediaColorInterpretation": "恢復自動辨識",
|
||||||
|
"mediaColorInterpretationScope": "影響使用此素材視訊串流的所有片段。",
|
||||||
"mediaColorInterpretation": "素材色彩解釋",
|
"mediaColorInterpretation": "素材色彩解釋",
|
||||||
"colorInfoNotLoaded": "色彩資訊未讀取",
|
"colorInfoNotLoaded": "色彩資訊未讀取",
|
||||||
"unknownColorSpace": "色彩空間未知,暫按 Rec.709 顯示",
|
"unknownColorSpace": "色彩空間未知,暫按 Rec.709 顯示",
|
||||||
@@ -642,7 +644,7 @@
|
|||||||
"modify": "修改",
|
"modify": "修改",
|
||||||
"projectSettings": "项目设置",
|
"projectSettings": "项目设置",
|
||||||
"projectSettingsDescription": "修改项目输出规格,保留片段的实际时长和速度。",
|
"projectSettingsDescription": "修改项目输出规格,保留片段的实际时长和速度。",
|
||||||
"projectColorSpace": "色彩空间",
|
"projectOutputColorSpace": "輸出色彩空間",
|
||||||
"projectWidth": "宽度(px)",
|
"projectWidth": "宽度(px)",
|
||||||
"projectHeight": "高度(px)",
|
"projectHeight": "高度(px)",
|
||||||
"projectResolutionInvalid": "请输入 1–16384 的整数",
|
"projectResolutionInvalid": "请输入 1–16384 的整数",
|
||||||
|
|||||||
@@ -20,4 +20,6 @@ RenderColorSpace? resolveMediaColor({
|
|||||||
required bool metadataReported,
|
required bool metadataReported,
|
||||||
}) =>
|
}) =>
|
||||||
override ??
|
override ??
|
||||||
(metadataReported && detected == null ? RenderColorSpace.rec709 : null);
|
(metadataReported && detected == null
|
||||||
|
? RenderColorPolicy.defaultUnknownVideoColorSpace
|
||||||
|
: null);
|
||||||
@@ -8,6 +8,7 @@ import 'package:cutdex/workspace/timeline_session.dart';
|
|||||||
import 'package:cutdex_sdk/runtime.dart';
|
import 'package:cutdex_sdk/runtime.dart';
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:cutdex_ui/theme.dart';
|
import 'package:cutdex_ui/theme.dart';
|
||||||
|
import 'package:cutdex_ui/widgets.dart';
|
||||||
import 'package:flutter_riverpod/flutter_riverpod.dart';
|
import 'package:flutter_riverpod/flutter_riverpod.dart';
|
||||||
import 'package:flutter_test/flutter_test.dart';
|
import 'package:flutter_test/flutter_test.dart';
|
||||||
|
|
||||||
@@ -21,8 +22,10 @@ class _ColorPreview extends PreviewController {
|
|||||||
activeSequence: () => timeline.activeSequenceId,
|
activeSequence: () => timeline.activeSequenceId,
|
||||||
viewForSequence: timeline.view,
|
viewForSequence: timeline.view,
|
||||||
);
|
);
|
||||||
|
List<RenderColorSpace?>? colors = [null];
|
||||||
|
|
||||||
@override
|
@override
|
||||||
List<RenderColorSpace?>? videoColorSpaces(String assetId) => [null];
|
List<RenderColorSpace?>? videoColorSpaces(String assetId) => colors;
|
||||||
}
|
}
|
||||||
|
|
||||||
void main() {
|
void main() {
|
||||||
@@ -107,12 +110,17 @@ void main() {
|
|||||||
),
|
),
|
||||||
);
|
);
|
||||||
await tester.pumpAndSettle();
|
await tester.pumpAndSettle();
|
||||||
if (desktop) {
|
expect(find.byType(ExpansionTile), findsNothing);
|
||||||
expect(find.byKey(const Key('media-color-menu')), findsNothing);
|
expect(
|
||||||
await tester.tap(find.byType(ExpansionTile));
|
tester
|
||||||
await tester.pumpAndSettle();
|
.widget<IconButton>(
|
||||||
}
|
find.byKey(const Key('media-color-reset')),
|
||||||
|
)
|
||||||
|
.onPressed,
|
||||||
|
isNull,
|
||||||
|
);
|
||||||
expect(find.text('色彩空间未知,暂按 Rec.709 显示'), findsOneWidget);
|
expect(find.text('色彩空间未知,暂按 Rec.709 显示'), findsOneWidget);
|
||||||
|
expect(find.byTooltip('影响使用该素材视频流的所有片段。'), findsOneWidget);
|
||||||
expect(
|
expect(
|
||||||
f.timeline.settings.containsKey('mediaColorInterpretations'),
|
f.timeline.settings.containsKey('mediaColorInterpretations'),
|
||||||
isFalse,
|
isFalse,
|
||||||
@@ -121,13 +129,8 @@ void main() {
|
|||||||
await tester.pumpAndSettle();
|
await tester.pumpAndSettle();
|
||||||
await tester.tap(find.text('线性 Rec.2020'));
|
await tester.tap(find.text('线性 Rec.2020'));
|
||||||
await tester.pumpAndSettle();
|
await tester.pumpAndSettle();
|
||||||
if (desktop) {
|
expect(find.text('线性 Rec.2020'), findsOneWidget);
|
||||||
await tester.tap(find.byType(ExpansionTile));
|
expect(find.byKey(const Key('media-color-status')), findsNothing);
|
||||||
await tester.pumpAndSettle();
|
|
||||||
await tester.tap(find.byType(ExpansionTile));
|
|
||||||
await tester.pumpAndSettle();
|
|
||||||
}
|
|
||||||
expect(find.text('手动指定:线性 Rec.2020'), findsOneWidget);
|
|
||||||
expect(tester.takeException(), isNull);
|
expect(tester.takeException(), isNull);
|
||||||
{
|
{
|
||||||
await f.timeline.flush();
|
await f.timeline.flush();
|
||||||
@@ -143,12 +146,43 @@ void main() {
|
|||||||
);
|
);
|
||||||
expect(reopened.mediaColorInterpretation('media', 1), isNull);
|
expect(reopened.mediaColorInterpretation('media', 1), isNull);
|
||||||
}
|
}
|
||||||
await tester.tap(find.byKey(const Key('media-color-menu')));
|
if (desktop) {
|
||||||
await tester.pumpAndSettle();
|
await tester.tap(find.byKey(const Key('media-color-reset')));
|
||||||
await tester.tap(find.text('自动'));
|
await tester.pumpAndSettle();
|
||||||
await tester.pumpAndSettle();
|
} else {
|
||||||
|
await tester.tap(find.byKey(const Key('media-color-menu')));
|
||||||
|
await tester.pumpAndSettle();
|
||||||
|
await tester.tap(find.text('自动'));
|
||||||
|
await tester.pumpAndSettle();
|
||||||
|
}
|
||||||
expect(find.text('色彩空间未知,暂按 Rec.709 显示'), findsOneWidget);
|
expect(find.text('色彩空间未知,暂按 Rec.709 显示'), findsOneWidget);
|
||||||
expect(f.timeline.mediaColorInterpretation('media', 0), isNull);
|
expect(f.timeline.mediaColorInterpretation('media', 0), isNull);
|
||||||
|
preview.colors = null;
|
||||||
|
preview.notifyListeners();
|
||||||
|
await tester.pumpAndSettle();
|
||||||
|
expect(find.text('色彩信息未读取'), findsOneWidget);
|
||||||
|
expect(
|
||||||
|
tester
|
||||||
|
.widget<AppSelect<String>>(
|
||||||
|
find.byKey(const Key('media-color-menu')),
|
||||||
|
)
|
||||||
|
.onChanged,
|
||||||
|
isNull,
|
||||||
|
);
|
||||||
|
preview.colors = [RenderColorSpace.rec2020HLG];
|
||||||
|
preview.notifyListeners();
|
||||||
|
await tester.pumpAndSettle();
|
||||||
|
expect(find.text('自动 · Rec.2020 HLG'), findsOneWidget);
|
||||||
|
expect(find.byKey(const Key('media-color-status')), findsNothing);
|
||||||
|
expect(
|
||||||
|
tester
|
||||||
|
.widget<AppSelect<String>>(
|
||||||
|
find.byKey(const Key('media-color-menu')),
|
||||||
|
)
|
||||||
|
.onChanged,
|
||||||
|
isNotNull,
|
||||||
|
);
|
||||||
|
|
||||||
expect(tester.takeException(), isNull);
|
expect(tester.takeException(), isNull);
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -306,7 +306,7 @@ void main() {
|
|||||||
expect(find.text('项目设置'), findsNothing);
|
expect(find.text('项目设置'), findsNothing);
|
||||||
expect(find.text('3840 × 2160 px'), findsOneWidget);
|
expect(find.text('3840 × 2160 px'), findsOneWidget);
|
||||||
expect(find.text('29.97 fps'), findsOneWidget);
|
expect(find.text('29.97 fps'), findsOneWidget);
|
||||||
expect(f.timeline.projectColorSpace, RenderColorSpace.rec2020PQ);
|
expect(f.timeline.projectOutputColorSpace, RenderColorSpace.rec2020PQ);
|
||||||
expect(
|
expect(
|
||||||
f.timeline.view(SequenceId('one')).format.frameDuration,
|
f.timeline.view(SequenceId('one')).format.frameDuration,
|
||||||
RationalTime(1001, 30000),
|
RationalTime(1001, 30000),
|
||||||
@@ -316,7 +316,7 @@ void main() {
|
|||||||
await tester.pumpAndSettle();
|
await tester.pumpAndSettle();
|
||||||
expect(find.text('1080 × 1920 px'), findsOneWidget);
|
expect(find.text('1080 × 1920 px'), findsOneWidget);
|
||||||
expect(find.text('30 fps'), findsOneWidget);
|
expect(find.text('30 fps'), findsOneWidget);
|
||||||
expect(f.timeline.projectColorSpace, RenderColorSpace.rec709);
|
expect(f.timeline.projectOutputColorSpace, RenderColorSpace.rec709);
|
||||||
await tester.tap(find.byKey(const ValueKey('project-settings-edit')));
|
await tester.tap(find.byKey(const ValueKey('project-settings-edit')));
|
||||||
await tester.pumpAndSettle();
|
await tester.pumpAndSettle();
|
||||||
await tester.enterText(find.byKey(const ValueKey('project-width')), '1280');
|
await tester.enterText(find.byKey(const ValueKey('project-width')), '1280');
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ import 'support/preview_fixture.dart';
|
|||||||
|
|
||||||
void main() {
|
void main() {
|
||||||
testWidgets(
|
testWidgets(
|
||||||
'property categories restore scroll and expansion independently',
|
'property categories restore scroll independently and keep color controls visible',
|
||||||
(tester) async {
|
(tester) async {
|
||||||
final f = (await tester.runAsync(
|
final f = (await tester.runAsync(
|
||||||
() => createPreviewFixture(Uri.file('/test/video.mov'), hasAudio: true),
|
() => createPreviewFixture(Uri.file('/test/video.mov'), hasAudio: true),
|
||||||
@@ -76,7 +76,7 @@ void main() {
|
|||||||
await tester.pumpAndSettle();
|
await tester.pumpAndSettle();
|
||||||
expect(tester.takeException(), isNull);
|
expect(tester.takeException(), isNull);
|
||||||
expect(find.byKey(const Key('media-color-menu')), findsNothing);
|
expect(find.byKey(const Key('media-color-menu')), findsNothing);
|
||||||
await tester.tap(find.text('素材色彩解释'));
|
await tester.tap(find.byKey(const ValueKey('property-tab-color')));
|
||||||
await tester.pumpAndSettle();
|
await tester.pumpAndSettle();
|
||||||
expect(find.byKey(const Key('media-color-menu')), findsOneWidget);
|
expect(find.byKey(const Key('media-color-menu')), findsOneWidget);
|
||||||
|
|
||||||
@@ -84,7 +84,7 @@ void main() {
|
|||||||
await tester.tap(find.byKey(const ValueKey('property-tab-audio')));
|
await tester.tap(find.byKey(const ValueKey('property-tab-audio')));
|
||||||
await tester.pumpAndSettle();
|
await tester.pumpAndSettle();
|
||||||
expect(tester.takeException(), isNull);
|
expect(tester.takeException(), isNull);
|
||||||
await tester.tap(find.byKey(const ValueKey('property-tab-picture')));
|
await tester.tap(find.byKey(const ValueKey('property-tab-color')));
|
||||||
await tester.pumpAndSettle();
|
await tester.pumpAndSettle();
|
||||||
expect(tester.takeException(), isNull);
|
expect(tester.takeException(), isNull);
|
||||||
}
|
}
|
||||||
@@ -106,19 +106,27 @@ void main() {
|
|||||||
|
|
||||||
await switchBack();
|
await switchBack();
|
||||||
expect(find.byKey(const Key('media-color-menu')), findsOneWidget);
|
expect(find.byKey(const Key('media-color-menu')), findsOneWidget);
|
||||||
|
await tester.tap(find.byKey(const ValueKey('property-tab-picture')));
|
||||||
|
await tester.pumpAndSettle();
|
||||||
|
expect(find.byKey(const Key('media-color-menu')), findsNothing);
|
||||||
|
expect(find.text('素材色彩解释'), findsNothing);
|
||||||
position().jumpTo(55);
|
position().jumpTo(55);
|
||||||
await tester.pumpAndSettle();
|
await tester.pumpAndSettle();
|
||||||
expect(position().pixels, 55);
|
expect(position().pixels, 55);
|
||||||
await switchBack();
|
await tester.tap(find.byKey(const ValueKey('property-tab-color')));
|
||||||
expect(position().pixels, 55);
|
await tester.pumpAndSettle();
|
||||||
|
expect(position().pixels, 0);
|
||||||
expect(find.byKey(const Key('media-color-menu')), findsOneWidget);
|
expect(find.byKey(const Key('media-color-menu')), findsOneWidget);
|
||||||
|
await tester.tap(find.byKey(const ValueKey('property-tab-picture')));
|
||||||
|
await tester.pumpAndSettle();
|
||||||
|
expect(position().pixels, 55);
|
||||||
|
await tester.tap(find.byKey(const ValueKey('property-tab-color')));
|
||||||
|
await tester.pumpAndSettle();
|
||||||
|
|
||||||
position().jumpTo(0);
|
position().jumpTo(0);
|
||||||
await tester.pumpAndSettle();
|
await tester.pumpAndSettle();
|
||||||
await tester.tap(find.text('素材色彩解释'));
|
|
||||||
await tester.pumpAndSettle();
|
|
||||||
await switchBack();
|
await switchBack();
|
||||||
expect(find.byKey(const Key('media-color-menu')), findsNothing);
|
expect(find.byKey(const Key('media-color-menu')), findsOneWidget);
|
||||||
expect(position().pixels, 0);
|
expect(position().pixels, 0);
|
||||||
await tester.pumpWidget(const SizedBox());
|
await tester.pumpWidget(const SizedBox());
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in new issue
Block a user