Add Daylight Cycle and Candlelight CSS source types

Full-stack implementation of two new color strip source types:
- Daylight: simulates day/night color cycle with real-time or speed-based mode, latitude support
- Candlelight: multi-candle fire simulation with Gaussian falloff, layered-sine flicker, warm color shift

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-03-10 11:07:30 +03:00
parent 954e37c2ca
commit 37c80f01af
15 changed files with 882 additions and 7 deletions

View File

@@ -913,6 +913,28 @@
"color_strip.notification.endpoint.hint": "使用此 URL 从外部系统触发通知。POST 请求可选 JSON{\"app\": \"AppName\", \"color\": \"#FF0000\"}。",
"color_strip.notification.save_first": "请先保存源以查看 Webhook 端点 URL。",
"color_strip.notification.app_count": "个应用",
"color_strip.type.daylight": "日光循环",
"color_strip.type.daylight.desc": "模拟24小时自然日光变化",
"color_strip.type.daylight.hint": "模拟太阳在24小时内的色温变化——从温暖的日出到冷白的日光再到温暖的日落和昏暗的夜晚。",
"color_strip.daylight.speed": "速度:",
"color_strip.daylight.speed.hint": "循环速度倍数。1.0 = 约4分钟完成一个完整的昼夜循环。",
"color_strip.daylight.use_real_time": "使用实时时间:",
"color_strip.daylight.use_real_time.hint": "启用后LED颜色匹配计算机的实际时间。速度设置将被忽略。",
"color_strip.daylight.real_time": "实时",
"color_strip.daylight.latitude": "纬度:",
"color_strip.daylight.latitude.hint": "地理纬度(-90到90。影响实时模式下的日出/日落时间。",
"color_strip.type.candlelight": "烛光",
"color_strip.type.candlelight.desc": "逼真的烛光闪烁模拟",
"color_strip.type.candlelight.hint": "在所有LED上模拟逼真的蜡烛闪烁具有温暖色调和有机闪烁模式。",
"color_strip.candlelight.color": "基础颜色:",
"color_strip.candlelight.color.hint": "蜡烛火焰的温暖基础颜色。默认为自然温暖的琥珀色。",
"color_strip.candlelight.intensity": "闪烁强度:",
"color_strip.candlelight.intensity.hint": "蜡烛闪烁程度。低值产生柔和光芒,高值模拟风中的蜡烛。",
"color_strip.candlelight.num_candles_label": "蜡烛数量:",
"color_strip.candlelight.num_candles": "支蜡烛",
"color_strip.candlelight.num_candles.hint": "灯带上独立蜡烛光源的数量。每支蜡烛有自己的闪烁模式。",
"color_strip.candlelight.speed": "闪烁速度:",
"color_strip.candlelight.speed.hint": "闪烁动画的速度。较高的值产生更快、更不安定的火焰。",
"color_strip.composite.layers": "图层:",
"color_strip.composite.layers.hint": "叠加多个色带源。第一个图层在底部,最后一个在顶部。每个图层可以有自己的混合模式和不透明度。",
"color_strip.composite.add_layer": "+ 添加图层",