Skip to content

Invoke is a leading creative engine that uses image and video generation models to empower professionals, artists, and enthusiasts to generate and create visual media using the latest AI-driven technologies. The solution offers an industry-leading application interface, and serves as the foundation for multiple commercial products.

979 B
Raw Blame
import type { SettingsContribution } from '@platform/ui/settings/contracts';

export const previewSettingsContribution: SettingsContribution = {
  id: 'preview',
  label: (t) => t('widgets.labels.preview'),
  fields: [
    {
      id: 'filmstripVisible',
      kind: 'boolean',
      label: (t) => t('widgets.preview.showFilmstrip'),
      scope: 'project',
      keywords: 'thumbnails gallery',
    },
    {
      id: 'comparisonMode',
      kind: 'select',
      label: (t) => t('settingsDialog.fields.comparisonMode'),
      scope: 'project',
      options: [
        { label: (t) => t('widgets.preview.slider'), value: 'slider' },
        { label: (t) => t('widgets.preview.sideBySide'), value: 'side-by-side' },
        { label: (t) => t('widgets.preview.hover'), value: 'hover' },
      ],
    },
  ],
  // Both fit the gear's popover; the full dialog stays one click further.
  quick: ['filmstripVisible', 'comparisonMode'],
  load: () => import('./settingsBindings'),
};