diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2020-08-26 22:28:13 +0200 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2020-08-26 22:28:13 +0200 |
| commit | fe515fa4bc940183ba9253e67461c1f009a5d94b (patch) | |
| tree | 040f816ac41d2ce4f13b4c653929bb70fc9a2cfe /animism-align/frontend/app/views/align/components/annotations/annotationForms | |
| parent | 14c8fd88b99dbab731c50f7285f7d799f17f86ff (diff) | |
times and stuff on the section nav
Diffstat (limited to 'animism-align/frontend/app/views/align/components/annotations/annotationForms')
| -rw-r--r-- | animism-align/frontend/app/views/align/components/annotations/annotationForms/annotationForm.text.js | 38 |
1 files changed, 37 insertions, 1 deletions
diff --git a/animism-align/frontend/app/views/align/components/annotations/annotationForms/annotationForm.text.js b/animism-align/frontend/app/views/align/components/annotations/annotationForms/annotationForm.text.js index a632e70..d3009d8 100644 --- a/animism-align/frontend/app/views/align/components/annotations/annotationForms/annotationForm.text.js +++ b/animism-align/frontend/app/views/align/components/annotations/annotationForms/annotationForm.text.js @@ -1,6 +1,7 @@ import React, { Component } from 'react' -import { Select, Checkbox } from 'app/common' +import { CURTAIN_COLOR_SELECT_OPTIONS, BLACK_WHITE_SELECT_OPTIONS } from 'app/constants' +import { Select, Checkbox, LabelDescription } from 'app/common' export const AnnotationFormSectionHeading = ({ annotation, handleSettingsSelect, handleSettingsChange }) => { return ( @@ -11,6 +12,41 @@ export const AnnotationFormSectionHeading = ({ annotation, handleSettingsSelect, checked={annotation.settings.hidden} onChange={handleSettingsSelect} /> + <Select + title='Transition Color' + name='transition_color' + selected={annotation.settings.transition_color} + options={CURTAIN_COLOR_SELECT_OPTIONS} + defaultOption='Pick a color' + onChange={handleSettingsSelect} + /> + <LabelDescription> + {'Player will fade from this color when section begins'} + </LabelDescription> + <Checkbox + label="Section does not have audio" + name="no_audio" + checked={annotation.settings.no_audio} + onChange={handleSettingsSelect} + /> + <LabelDescription> + {'Check if this is a text-only section'} + </LabelDescription> + {!annotation.settings.no_audio && + <div> + <Select + title='Section Nav Color' + name='section_nav_color' + selected={annotation.settings.section_nav_color} + options={BLACK_WHITE_SELECT_OPTIONS} + defaultOption='Pick a color' + onChange={handleSettingsSelect} + /> + <LabelDescription> + {'Set the color of the duration icon on the section navigation'} + </LabelDescription> + </div> + } </div> ) } |
