mirror of
https://github.com/Rafostar/clapper.git
synced 2025-08-30 07:42:23 +02:00
Spread volume icon changes evenly
This commit is contained in:
4
clapper_src/controls.js
vendored
4
clapper_src/controls.js
vendored
@@ -84,9 +84,9 @@ class ClapperControls extends Gtk.HBox
|
|||||||
if(value <= 0)
|
if(value <= 0)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
let iconName = (value <= 0.25)
|
let iconName = (value <= 0.33)
|
||||||
? 'audio-volume-low-symbolic'
|
? 'audio-volume-low-symbolic'
|
||||||
: (value <= 0.75)
|
: (value <= 0.66)
|
||||||
? 'audio-volume-medium-symbolic'
|
? 'audio-volume-medium-symbolic'
|
||||||
: (value <= 1)
|
: (value <= 1)
|
||||||
? 'audio-volume-high-symbolic'
|
? 'audio-volume-high-symbolic'
|
||||||
|
Reference in New Issue
Block a user