feat(inspector): separate input and output color controls

Give video clips a dedicated color tab with immediate input interpretation,
automatic detection, and reset controls. Clarify project output color space,
source-stream scope, and unavailable metadata across localized UI text.

Share unknown-source color defaults with the SDK and retain independent
property tab scroll state. Include localized resources and control previews.

Validation: full application analysis, 1261 Flutter tests passed
(9 skipped), generated-code verification, and 171 tool tests.
This commit is contained in:
lingjhf committed 2026-10-10 22:43:35 +08:00
1 parent 4912aa1ab0
commit 7ebe0c8e2e
35 files changed
+449 -171

No files matched your search

+14 -15
View File
@@ -146,26 +146,22 @@ class PropertiesContent extends ConsumerWidget {
clip: clip,
hasAudio: hasAudio,
),
picture: Column(
crossAxisAlignment: CrossAxisAlignment.stretch,
children: [
if (payload?.type == 'video' && binding?.videoTrackIndex != null)
ColorInterpretationProperties(
color: payload?.type == 'video' && binding?.videoTrackIndex != null
? ColorInterpretationProperties(
projectId: projectId,
timelineId: timelineId,
session: session,
assetId: payload!.assetIds.single,
trackIndex: binding!.videoTrackIndex!,
),
PictureProperties(
key: ValueKey((sequence, clip.id)),
projectId: projectId,
timelineId: timelineId,
session: session,
sequence: sequence,
clip: clip,
),
],
)
: const SizedBox.shrink(),
picture: PictureProperties(
key: ValueKey((sequence, clip.id)),
projectId: projectId,
timelineId: timelineId,
session: session,
sequence: sequence,
clip: clip,
),
animation: PictureProperties(
key: ValueKey((sequence, clip.id, 'animation')),
@@ -189,6 +185,7 @@ class _ClipProperties extends StatefulWidget {
required this.sequence,
required this.clip,
required this.picture,
required this.color,
required this.mask,
required this.audio,
required this.speed,
@@ -203,6 +200,7 @@ class _ClipProperties extends StatefulWidget {
final SequenceId sequence;
final ElementRecord clip;
final Widget picture;
final Widget color;
final Widget mask;
final Widget audio;
final Widget speed;
@@ -266,6 +264,7 @@ class _ClipPropertiesState extends State<_ClipProperties> {
children: [
...switch (_selected) {
PropertyCategory.picture => [widget.picture],
PropertyCategory.color => [widget.color],
PropertyCategory.mask => [widget.mask],
PropertyCategory.audio => [widget.audio],
PropertyCategory.speed => [widget.speed],