VideoBackgroundReplacer / utils /background_presets.py
MogensR's picture
Create utils/background_presets.py
0d03497
"""
Professional background catalogue for BackgroundFX Pro
Only a dict (no heavy imports). Each entry **must** include:
- type: "gradient" | "image" | "color"
- colors OR path
Optional tuning keys: brightness, contrast, direction, description
"""
from __future__ import annotations
from pathlib import Path
_ASSETS = Path(__file__).parent / "assets"
PROFESSIONAL_BACKGROUNDS = {
# ── existing presets ──────────────────────────────────────────────────
"office_modern": {
"name": "Modern Office",
"type": "gradient",
"colors": ["#f8f9fa", "#e9ecef", "#dee2e6"],
"direction": "diagonal",
"description": "Clean, contemporary office environment",
"brightness": 0.95,
"contrast": 1.1,
},
"studio_blue": {
"name": "Professional Blue",
"type": "gradient",
"colors": ["#1e3c72", "#2a5298", "#3498db"],
"direction": "radial",
"description": "Broadcast-quality blue studio",
"brightness": 0.9,
"contrast": 1.2,
},
"studio_green": {
"name": "Broadcast Green",
"type": "color",
"colors": ["#00b894"],
"chroma_key": True,
"description": "Pure green-screen replacement",
"brightness": 1.0,
"contrast": 1.0,
},
"minimalist": {
"name": "Minimalist White",
"type": "gradient",
"colors": ["#ffffff", "#f1f2f6", "#dddddd"],
"direction": "soft_radial",
"description": "Clean, minimal background",
"brightness": 0.98,
"contrast": 0.9,
},
"warm_gradient": {
"name": "Warm Sunset",
"type": "gradient",
"colors": ["#ff7675", "#fd79a8", "#fdcb6e"],
"direction": "diagonal",
"description": "Warm, inviting atmosphere",
"brightness": 0.85,
"contrast": 1.15,
},
"tech_dark": {
"name": "Tech Dark",
"type": "gradient",
"colors": ["#0c0c0c", "#2d3748", "#4a5568"],
"direction": "vertical",
"description": "Modern tech/gaming setup",
"brightness": 0.7,
"contrast": 1.3,
},
# ── NEW presets you asked for ─────────────────────────────────────────
"gradient_purple": {
"name": "Purple Gradient",
"type": "gradient",
"colors": ["#786bff", "#b3a7ff"],
"direction": "diagonal",
"description": "Soft purple glow",
"brightness": 0.9,
"contrast": 1.1,
},
"gradient_teal": {
"name": "Teal Gradient",
"type": "gradient",
"colors": ["#00b4a0", "#006488"],
"direction": "vertical",
"description": "Calm teal ambience",
"brightness": 0.9,
"contrast": 1.1,
},
"studio_soft_blue": {
"name": "Studio Soft-Blue",
"type": "image",
"path": str(_ASSETS / "studio_soft_blue.jpg"),
"description": "Broadcast studio with soft blue lights",
"brightness": 1.0,
"contrast": 1.0,
},
}