Skip to content

Commit 538a253

Browse files
committed
deprecate interp
1 parent 0f49317 commit 538a253

File tree

2 files changed

+38
-6
lines changed

2 files changed

+38
-6
lines changed

src/components/tw-settings-modal/settings-modal.css

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -170,8 +170,20 @@
170170
padding: 0.5rem 1rem;
171171
margin: 0.25rem 0;
172172
border-radius: 4px;
173-
background: rgb(233, 233, 53);
173+
background: rgb(255, 197, 38);
174+
color: black;
174175
}
175176
[theme="dark"] .warning {
176-
background: rgb(114, 102, 0);
177+
background: rgb(114, 65, 0);
178+
color: $text-primary;
179+
}
180+
181+
.summary {
182+
cursor: pointer;
183+
}
184+
.dropdown {
185+
margin-right: 4px;
177186
}
187+
details[open] .dropdown {
188+
transform: rotate(90deg);
189+
}

src/components/tw-settings-modal/settings-modal.jsx

Lines changed: 24 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -483,10 +483,6 @@ const SettingsModalComponent = props => (
483483
onChange={props.onFramerateChange}
484484
onCustomizeFramerate={props.onCustomizeFramerate}
485485
/>
486-
<Interpolation
487-
value={props.interpolation}
488-
onChange={props.onInterpolationChange}
489-
/>
490486
<HighQualityPen
491487
value={props.highQualityPen}
492488
onChange={props.onHighQualityPenChange}
@@ -542,6 +538,30 @@ const SettingsModalComponent = props => (
542538
{...props}
543539
/>
544540
)} */}
541+
<details>
542+
<summary className={styles.summary}>
543+
<Header>
544+
<span className={styles.dropdown}></span>
545+
<FormattedMessage
546+
defaultMessage="Unsupported"
547+
description="Old unsupported settings section"
548+
id="pm.settingsModal.unsupported"
549+
/>
550+
</Header>
551+
</summary>
552+
<div className={styles.warning}>
553+
<FormattedMessage
554+
// eslint-disable-next-line max-len
555+
defaultMessage="The settings here are unsupported and can break at any time. These settings are here as they either have better methods to create their effects with better results, or break often when used with other extensions."
556+
description="Warning about old unsupported settings in settings menu"
557+
id="pm.settingsModal.unsupportedWarning"
558+
/>
559+
</div>
560+
<Interpolation
561+
value={props.interpolation}
562+
onChange={props.onInterpolationChange}
563+
/>
564+
</details>
545565
</Box>
546566
</Modal>
547567
);

0 commit comments

Comments
 (0)