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,
|
TextContainer,
|
||||||
} from "./styles";
|
} from "./styles";
|
||||||
|
|
||||||
export function ChyronDriverBasic() {
|
export function ChyronDriver() {
|
||||||
// TODO - Get driver details from Redux.
|
// TODO - Get driver details from Redux.
|
||||||
|
|
||||||
const baseWidth = 582;
|
const baseWidth = 582;
|
||||||
|
|||||||
@@ -14,6 +14,10 @@ export const OverlayImage = styled.img.attrs<OverlayImageProps>(({
|
|||||||
src,
|
src,
|
||||||
}))<OverlayImageProps>`
|
}))<OverlayImageProps>`
|
||||||
width: ${({ scale = 100 }) => `${scale}%`};
|
width: ${({ scale = 100 }) => `${scale}%`};
|
||||||
|
&:active {
|
||||||
|
outline: 2px solid red;
|
||||||
|
outline-offset: -2px;
|
||||||
|
}
|
||||||
`;
|
`;
|
||||||
OverlayImage.displayName = "OverlayImage";
|
OverlayImage.displayName = "OverlayImage";
|
||||||
|
|
||||||
|
|||||||
@@ -327,8 +327,8 @@ export const teamNumberStyles: { [teamId: string]: NumberStyle } = {
|
|||||||
numberColor: "#daffff",
|
numberColor: "#daffff",
|
||||||
fontFamily: theme.fonts.f1Italic,
|
fontFamily: theme.fonts.f1Italic,
|
||||||
rules: [
|
rules: [
|
||||||
{ type: "shadow", property: repeater("0 0 0.15em #daffff", 4) },
|
{ type: "shadow", property: repeater("0 0 0.2em #daffff", 4) },
|
||||||
{ type: "stroke", color: "#000", width: 0.10 },
|
{ type: "stroke", color: "#000", width: 0.13 },
|
||||||
{ type: "stroke", color: "#35dfae", width: 0.05 },
|
{ type: "stroke", color: "#35dfae", width: 0.05 },
|
||||||
{ type: "shadow", property: repeater("0 0 0.07em #35dfae", 2) },
|
{ type: "shadow", property: repeater("0 0 0.07em #35dfae", 2) },
|
||||||
],
|
],
|
||||||
|
|||||||
@@ -2,21 +2,28 @@ import { ReactNode } from "react";
|
|||||||
import { WorkspaceId, WorkspaceProperties } from "../../types/state";
|
import { WorkspaceId, WorkspaceProperties } from "../../types/state";
|
||||||
|
|
||||||
// Broadcast Graphics
|
// Broadcast Graphics
|
||||||
import { ChyronDriverBasic } from "../../components/BroadcastGraphics/Chyrons/Driver";
|
import { ChyronDriver } from "../../components/BroadcastGraphics/Chyrons/Driver";
|
||||||
|
|
||||||
type WorkspaceObject = {
|
type WorkspaceObject = {
|
||||||
[id: WorkspaceId]: WorkspaceProperties,
|
[id: WorkspaceId]: WorkspaceProperties,
|
||||||
};
|
};
|
||||||
export const workspaces: WorkspaceObject = {
|
export const workspaces: WorkspaceObject = {
|
||||||
chyronDriverBasic: {
|
chyronDriver: {
|
||||||
name: "Chyron Driver Basic",
|
name: "Chyron Driver",
|
||||||
overlayIds: [
|
overlayIds: [
|
||||||
"chyron-driver-basic-full.png",
|
"chyron-driver-medium-full-ham.png",
|
||||||
"chyron-driver-basic-opening-1.png",
|
"chyron-driver-medium-op1-ham.png",
|
||||||
"chyron-driver-basic-opening-2.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: {
|
previewWindowDimensions: {
|
||||||
width: 650,
|
width: 750,
|
||||||
height: 200,
|
height: 200,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
@@ -24,7 +31,7 @@ export const workspaces: WorkspaceObject = {
|
|||||||
|
|
||||||
export function fetchBroadcastGraphic(workspaceId: WorkspaceId): ReactNode {
|
export function fetchBroadcastGraphic(workspaceId: WorkspaceId): ReactNode {
|
||||||
switch(workspaceId) {
|
switch(workspaceId) {
|
||||||
case "chyronDriverBasic": return ChyronDriverBasic();
|
case "chyronDriver": return ChyronDriver();
|
||||||
default: return null;
|
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 |