Firefox-UI-Fix icon indicating copy to clipboard operation
Firefox-UI-Fix copied to clipboard

Cusomizable autohide timeout and animation speed

Open chermnyx opened this issue 3 years ago • 1 comments

Is your feature request related to a problem?

Currently when a user moves cursor away from element with autohide on the element are still shown for some time, which is not customizable. The animations may be too short or too long for some users (some of them may want to disable the animations completely)

The solution I'd like

Add options to customize the delay before hiding and animation speed Add option to turn off the animation

chermnyx avatar Sep 02 '22 19:09 chermnyx

To turn off animations, change userChrome.decoration.animate to false

smowtenshi avatar Sep 03 '22 19:09 smowtenshi

It is not a stabilized API, but if you put the next code into userChrome.css, you can customize it.

:root {
  --uc-autohide-toolbar-speed: 0.25s;
  --uc-autohide-toolbar-delay: 600ms;
}

When you using installation script, use the override file. https://github.com/black7375/Firefox-UI-Fix/wiki/Options#using-scripts

black7375 avatar Sep 18 '22 15:09 black7375

Is the customization supported for sidebar?

chermnyx avatar Sep 18 '22 23:09 chermnyx

Now, you can customize like this.

#sidebar-box {
  --uc-autohide-sidebar-speed: 750ms;
  --uc-autohide-fullscreen-sidebar-speed: 1s;
  --uc-autohide-sidebar-delay: 600ms;
}

black7375 avatar Sep 19 '22 00:09 black7375