Merge pull request #2046 from binaricat/feat/finer-window-opacity-2019

feat(settings): finer window opacity steps (96–99%)
This commit is contained in:
陈大猫 authored and GitHub committed 2026-07-09 12:09:15 +08:00
commit a6141ebb33
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -63,7 +63,7 @@ export const WindowOpacityButton: React.FC<WindowOpacityButtonProps> = ({
type="range"
min={50}
max={100}
step={5}
step={1}
value={percent}
onChange={(e) => setWindowOpacity(Number(e.target.value) / 100)}
className="flex-1 accent-primary"
@@ -213,7 +213,7 @@ function SettingsAppearanceTab(props: {
type="range"
min={50}
max={100}
step={5}
step={1}
value={Math.round(windowOpacity * 100)}
onChange={(e) => setWindowOpacity(Number(e.target.value) / 100)}
className="w-28 accent-primary"