feat: Change twilight opacity range to 20-100%

🎨 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
pull/82/head
trancen 2 days ago
parent 0bf4e0bd34
commit 22e31ce01f

@ -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 }) {
</div>
<div style="margin-bottom: 8px;">
<label style="display: block; margin-bottom: 3px;">Twilight Opacity: <span id="twilight-opacity-value">30</span>%</label>
<input type="range" id="grayline-twilight-opacity" min="10" max="70" value="30" step="5" style="width: 100%;" />
<label style="display: block; margin-bottom: 3px;">Twilight Opacity: <span id="twilight-opacity-value">50</span>%</label>
<input type="range" id="grayline-twilight-opacity" min="20" max="100" value="50" step="5" style="width: 100%;" />
</div>
<div style="margin-top: 8px; padding-top: 8px; border-top: 1px solid #555; font-size: 9px; opacity: 0.7;">

Loading…
Cancel
Save

Powered by TurnKey Linux.