From 22e31ce01f5132edf0f54f50b86dcfc611b24140 Mon Sep 17 00:00:00 2001 From: trancen Date: Tue, 3 Feb 2026 16:46:26 +0000 Subject: [PATCH] feat: Change twilight opacity range to 20-100% MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 🎨 UI Improvement: - Changed twilight opacity slider range from 10-70% to 20-100% - Updated default value from 30% to 50% - Allows more visibility control for twilight zones 📊 Changes: - Min: 10% → 20% (prevents too-faint lines) - Max: 70% → 100% (allows full opacity if desired) - Default: 30% → 50% (better starting visibility) ✅ Benefits: - Greater control over twilight zone visibility - Can make twilight zones more prominent (up to 100%) - Better default visibility at 50% - Minimum 20% ensures lines are always visible Version: 1.0.1 → 1.0.2 --- src/plugins/layers/useGrayLine.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/plugins/layers/useGrayLine.js b/src/plugins/layers/useGrayLine.js index 0cdb7b5..1caa11d 100644 --- a/src/plugins/layers/useGrayLine.js +++ b/src/plugins/layers/useGrayLine.js @@ -346,7 +346,7 @@ export function useLayer({ enabled = false, opacity = 0.5, map = null }) { const [currentTime, setCurrentTime] = useState(new Date()); const [showTwilight, setShowTwilight] = useState(true); const [showEnhancedZone, setShowEnhancedZone] = useState(true); - const [twilightOpacity, setTwilightOpacity] = useState(0.3); + const [twilightOpacity, setTwilightOpacity] = useState(0.5); const controlRef = useRef(null); const updateIntervalRef = useRef(null); @@ -414,8 +414,8 @@ export function useLayer({ enabled = false, opacity = 0.5, map = null }) {
- - + +