MCPcopy Index your code
hub / github.com/gitify-app/gitify / decreaseVolume

Function decreaseVolume

src/renderer/utils/ui/volume.ts:43–49  ·  view source on GitHub ↗
(volume: Percentage)

Source from the content-addressed store, hash-verified

41 * @returns The new volume percentage after decreasing, or `0` if already at minimum.
42 */
43export function decreaseVolume(volume: Percentage): Percentage {
44 if (canDecreaseVolume(volume)) {
45 return (volume - VOLUME_STEP) as Percentage;
46 }
47
48 return MINIMUM_VOLUME_PERCENTAGE;
49}
50
51/**
52 * Increases the volume by one step, clamping to the maximum.

Callers 2

SystemSettingsFunction · 0.90
volume.test.tsFile · 0.90

Calls 1

canDecreaseVolumeFunction · 0.85

Tested by

no test coverage detected