mirror of
https://github.com/binaricat/Netcatty.git
synced 2026-11-25 09:51:28 +00:00
Merge pull request #2046 from binaricat/feat/finer-window-opacity-2019
feat(settings): finer window opacity steps (96–99%)
This commit is contained in:
2 files changed
+2
-2
No files matched your search
@@ -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"
|
||||
|
||||
Reference in new issue
Block a user