Create utils/background_presets.py
Browse files- utils/background_presets.py +98 -0
utils/background_presets.py
ADDED
|
@@ -0,0 +1,98 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""
|
| 2 |
+
Professional background catalogue for BackgroundFX Pro
|
| 3 |
+
Only a dict (no heavy imports). Each entry **must** include:
|
| 4 |
+
- type: "gradient" | "image" | "color"
|
| 5 |
+
- colors OR path
|
| 6 |
+
Optional tuning keys: brightness, contrast, direction, description
|
| 7 |
+
"""
|
| 8 |
+
|
| 9 |
+
from __future__ import annotations
|
| 10 |
+
from pathlib import Path
|
| 11 |
+
|
| 12 |
+
_ASSETS = Path(__file__).parent / "assets"
|
| 13 |
+
|
| 14 |
+
PROFESSIONAL_BACKGROUNDS = {
|
| 15 |
+
# ββ existing presets ββββββββββββββββββββββββββββββββββββββββββββββββββ
|
| 16 |
+
"office_modern": {
|
| 17 |
+
"name": "Modern Office",
|
| 18 |
+
"type": "gradient",
|
| 19 |
+
"colors": ["#f8f9fa", "#e9ecef", "#dee2e6"],
|
| 20 |
+
"direction": "diagonal",
|
| 21 |
+
"description": "Clean, contemporary office environment",
|
| 22 |
+
"brightness": 0.95,
|
| 23 |
+
"contrast": 1.1,
|
| 24 |
+
},
|
| 25 |
+
"studio_blue": {
|
| 26 |
+
"name": "Professional Blue",
|
| 27 |
+
"type": "gradient",
|
| 28 |
+
"colors": ["#1e3c72", "#2a5298", "#3498db"],
|
| 29 |
+
"direction": "radial",
|
| 30 |
+
"description": "Broadcast-quality blue studio",
|
| 31 |
+
"brightness": 0.9,
|
| 32 |
+
"contrast": 1.2,
|
| 33 |
+
},
|
| 34 |
+
"studio_green": {
|
| 35 |
+
"name": "Broadcast Green",
|
| 36 |
+
"type": "color",
|
| 37 |
+
"colors": ["#00b894"],
|
| 38 |
+
"chroma_key": True,
|
| 39 |
+
"description": "Pure green-screen replacement",
|
| 40 |
+
"brightness": 1.0,
|
| 41 |
+
"contrast": 1.0,
|
| 42 |
+
},
|
| 43 |
+
"minimalist": {
|
| 44 |
+
"name": "Minimalist White",
|
| 45 |
+
"type": "gradient",
|
| 46 |
+
"colors": ["#ffffff", "#f1f2f6", "#dddddd"],
|
| 47 |
+
"direction": "soft_radial",
|
| 48 |
+
"description": "Clean, minimal background",
|
| 49 |
+
"brightness": 0.98,
|
| 50 |
+
"contrast": 0.9,
|
| 51 |
+
},
|
| 52 |
+
"warm_gradient": {
|
| 53 |
+
"name": "Warm Sunset",
|
| 54 |
+
"type": "gradient",
|
| 55 |
+
"colors": ["#ff7675", "#fd79a8", "#fdcb6e"],
|
| 56 |
+
"direction": "diagonal",
|
| 57 |
+
"description": "Warm, inviting atmosphere",
|
| 58 |
+
"brightness": 0.85,
|
| 59 |
+
"contrast": 1.15,
|
| 60 |
+
},
|
| 61 |
+
"tech_dark": {
|
| 62 |
+
"name": "Tech Dark",
|
| 63 |
+
"type": "gradient",
|
| 64 |
+
"colors": ["#0c0c0c", "#2d3748", "#4a5568"],
|
| 65 |
+
"direction": "vertical",
|
| 66 |
+
"description": "Modern tech/gaming setup",
|
| 67 |
+
"brightness": 0.7,
|
| 68 |
+
"contrast": 1.3,
|
| 69 |
+
},
|
| 70 |
+
|
| 71 |
+
# ββ NEW presets you asked for βββββββββββββββββββββββββββββββββββββββββ
|
| 72 |
+
"gradient_purple": {
|
| 73 |
+
"name": "Purple Gradient",
|
| 74 |
+
"type": "gradient",
|
| 75 |
+
"colors": ["#786bff", "#b3a7ff"],
|
| 76 |
+
"direction": "diagonal",
|
| 77 |
+
"description": "Soft purple glow",
|
| 78 |
+
"brightness": 0.9,
|
| 79 |
+
"contrast": 1.1,
|
| 80 |
+
},
|
| 81 |
+
"gradient_teal": {
|
| 82 |
+
"name": "Teal Gradient",
|
| 83 |
+
"type": "gradient",
|
| 84 |
+
"colors": ["#00b4a0", "#006488"],
|
| 85 |
+
"direction": "vertical",
|
| 86 |
+
"description": "Calm teal ambience",
|
| 87 |
+
"brightness": 0.9,
|
| 88 |
+
"contrast": 1.1,
|
| 89 |
+
},
|
| 90 |
+
"studio_soft_blue": {
|
| 91 |
+
"name": "Studio Soft-Blue",
|
| 92 |
+
"type": "image",
|
| 93 |
+
"path": str(_ASSETS / "studio_soft_blue.jpg"),
|
| 94 |
+
"description": "Broadcast studio with soft blue lights",
|
| 95 |
+
"brightness": 1.0,
|
| 96 |
+
"contrast": 1.0,
|
| 97 |
+
},
|
| 98 |
+
}
|