Use new story background colors

This commit is contained in:
Josh Perez 2022-09-21 10:48:04 -04:00 committed by GitHub
parent 041957ca63
commit b7526d4e26
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 22 additions and 17 deletions

View file

@ -56,6 +56,7 @@ export default {
recentStickers: { recentStickers: {
defaultValue: [], defaultValue: [],
}, },
sendStoryModalOpenStateChanged: { action: true },
setMyStoriesToAllSignalConnections: { action: true }, setMyStoriesToAllSignalConnections: { action: true },
signalConnections: { signalConnections: {
defaultValue: Array.from(Array(42), getDefaultConversation), defaultValue: Array.from(Array(42), getDefaultConversation),

View file

@ -61,22 +61,26 @@ enum TextBackground {
} }
const BackgroundStyle = { const BackgroundStyle = {
BG1099: { angle: 191, endColor: 4282529679, startColor: 4294260804 }, BG1: { color: 4285041620 },
BG1098: { startColor: 4293938406, endColor: 4279119837, angle: 192 }, BG2: { color: 4287006657 },
BG1031: { startColor: 4294950980, endColor: 4294859832, angle: 175 }, BG3: { color: 4290019212 },
BG1101: { startColor: 4278227945, endColor: 4286632135, angle: 180 }, BG4: { color: 4287205768 },
BG1100: { startColor: 4284861868, endColor: 4278884698, angle: 180 }, BG5: { color: 4283667331 },
BG1070: { color: 4294951251 }, BG6: {
BG1080: { color: 4291607859 }, angle: 180,
BG1079: { color: 4286869806 }, startColor: 4279871994,
BG1083: { color: 4278825851 }, endColor: 4294951785,
BG1095: { color: 4287335417 }, },
BG1088: { color: 4283519478 }, BG7: {
BG1077: { color: 4294405742 }, angle: 180,
BG1094: { color: 4291315265 }, startColor: 4282660824,
BG1097: { color: 4291216549 }, endColor: 4294938254,
BG1074: { color: 4288976277 }, },
BG1092: { color: 4280887593 }, BG8: {
angle: 180,
startColor: 4278206532,
endColor: 4287871076,
},
}; };
type BackgroundStyleType = typeof BackgroundStyle[keyof typeof BackgroundStyle]; type BackgroundStyleType = typeof BackgroundStyle[keyof typeof BackgroundStyle];
@ -121,7 +125,7 @@ export const TextStoryCreator = ({
}: PropsType): JSX.Element => { }: PropsType): JSX.Element => {
const [isEditingText, setIsEditingText] = useState(false); const [isEditingText, setIsEditingText] = useState(false);
const [selectedBackground, setSelectedBackground] = const [selectedBackground, setSelectedBackground] =
useState<BackgroundStyleType>(BackgroundStyle.BG1099); useState<BackgroundStyleType>(BackgroundStyle.BG1);
const [textStyle, setTextStyle] = useState<TextStyle>(TextStyle.Regular); const [textStyle, setTextStyle] = useState<TextStyle>(TextStyle.Regular);
const [textBackground, setTextBackground] = useState<TextBackground>( const [textBackground, setTextBackground] = useState<TextBackground>(
TextBackground.None TextBackground.None