ArthurTent / ShaderAmp

Chrome extension to visualize music
Other
17 stars 0 forks source link

Implemented global speed slider #21

Closed eamonwoortman closed 8 months ago

eamonwoortman commented 8 months ago

I've added a "speed divider" slider on the options page. This was to match the old speed divider logic of the main branch's verison.

Note: this PR changes the use-chrome-storage dependency to my own @eamonwoortman/chrome-use-storage dependency as I had to fix an issue with storage states returning undefined when the storage was cleared.

This also changes the storage state keys (ie. shaderlist, shadername) to be prefixed to either the state or the settings. So for example; shaderlist becomes state.shaderlist and speeddivider becomes settings.speeddivider. We do this so we can easily remove/reset a group of storage elements without hardcoding their keys.

eamonwoortman commented 8 months ago

https://github.com/ArthurTent/ShaderAmp/assets/9072397/3e6781c8-7214-4552-969b-1822d7074a41