ISSUE-031 - Added new overlay images with some variations.
Added a great new feature: an active outline styling rule. When dragging the overlay image around there's now a red outline to help match edges that are otherwise black-on-black; making them very difficult to align.
No files matched your search
@@ -13,7 +13,7 @@ import {
|
||||
TextContainer,
|
||||
} from "./styles";
|
||||
|
||||
export function ChyronDriverBasic() {
|
||||
export function ChyronDriver() {
|
||||
// TODO - Get driver details from Redux.
|
||||
|
||||
const baseWidth = 582;
|
||||
|
||||
@@ -14,6 +14,10 @@ export const OverlayImage = styled.img.attrs<OverlayImageProps>(({
|
||||
src,
|
||||
}))<OverlayImageProps>`
|
||||
width: ${({ scale = 100 }) => `${scale}%`};
|
||||
&:active {
|
||||
outline: 2px solid red;
|
||||
outline-offset: -2px;
|
||||
}
|
||||
`;
|
||||
OverlayImage.displayName = "OverlayImage";
|
||||
|
||||
|
||||
@@ -327,8 +327,8 @@ export const teamNumberStyles: { [teamId: string]: NumberStyle } = {
|
||||
numberColor: "#daffff",
|
||||
fontFamily: theme.fonts.f1Italic,
|
||||
rules: [
|
||||
{ type: "shadow", property: repeater("0 0 0.15em #daffff", 4) },
|
||||
{ type: "stroke", color: "#000", width: 0.10 },
|
||||
{ type: "shadow", property: repeater("0 0 0.2em #daffff", 4) },
|
||||
{ type: "stroke", color: "#000", width: 0.13 },
|
||||
{ type: "stroke", color: "#35dfae", width: 0.05 },
|
||||
{ type: "shadow", property: repeater("0 0 0.07em #35dfae", 2) },
|
||||
],
|
||||
|
||||
@@ -2,21 +2,28 @@ import { ReactNode } from "react";
|
||||
import { WorkspaceId, WorkspaceProperties } from "../../types/state";
|
||||
|
||||
// Broadcast Graphics
|
||||
import { ChyronDriverBasic } from "../../components/BroadcastGraphics/Chyrons/Driver";
|
||||
import { ChyronDriver } from "../../components/BroadcastGraphics/Chyrons/Driver";
|
||||
|
||||
type WorkspaceObject = {
|
||||
[id: WorkspaceId]: WorkspaceProperties,
|
||||
};
|
||||
export const workspaces: WorkspaceObject = {
|
||||
chyronDriverBasic: {
|
||||
name: "Chyron Driver Basic",
|
||||
chyronDriver: {
|
||||
name: "Chyron Driver",
|
||||
overlayIds: [
|
||||
"chyron-driver-basic-full.png",
|
||||
"chyron-driver-basic-opening-1.png",
|
||||
"chyron-driver-basic-opening-2.png",
|
||||
"chyron-driver-medium-full-ham.png",
|
||||
"chyron-driver-medium-op1-ham.png",
|
||||
"chyron-driver-medium-op2-ham.png",
|
||||
"chyron-driver-medium-full-alo.png",
|
||||
"chyron-driver-medium-full-gas-weird.png",
|
||||
"chyron-driver-medium-full-nor-weird.png",
|
||||
"chyron-driver-medium-full-lat-no-pos.png",
|
||||
"chyron-driver-medium-full-msc.png",
|
||||
"chyron-driver-large-np-tsu.png",
|
||||
"chyron-driver-large-dnf-ver.png",
|
||||
],
|
||||
previewWindowDimensions: {
|
||||
width: 650,
|
||||
width: 750,
|
||||
height: 200,
|
||||
},
|
||||
},
|
||||
@@ -24,7 +31,7 @@ export const workspaces: WorkspaceObject = {
|
||||
|
||||
export function fetchBroadcastGraphic(workspaceId: WorkspaceId): ReactNode {
|
||||
switch(workspaceId) {
|
||||
case "chyronDriverBasic": return ChyronDriverBasic();
|
||||
case "chyronDriver": return ChyronDriver();
|
||||
default: return null;
|
||||
}
|
||||
}
|
||||
|
||||
|
After Width: | Height: | Size: 77 KiB |
|
After Width: | Height: | Size: 44 KiB |
|
After Width: | Height: | Size: 40 KiB |
|
After Width: | Height: | Size: 32 KiB |
|
After Width: | Height: | Size: 39 KiB |
|
After Width: | Height: | Size: 39 KiB |
|
After Width: | Height: | Size: 34 KiB |