Snippet: Horizontal panel-based slider with hover fade in and out
-
@HISEnberg Thanks, Ok I'll let you know when it is added.
-
Ok, These have been added to the collection.
https://github.com/christoph-hart/hise_laf_library/blob/main/Examples.md
-
I started the slider as LaF but moved to a panel when I couldn't figure out an elegant way to do the animation, interesting that that's the one part not achievable with LaF.
Coming from Kontakt, the ability to have smooth transitions and (gasp) actual hover states for all controls is a huge win. The average user probably can't articulate the difference, but I think in testing a UI with smoothed hover states would get more positive feedback. When trying to sell something new to a group of people who have been used to Kontakt for potentially decades, I'm convinced this kind of UI polish can help make a HISE library stand out as better in every way than what people have been used to.
I believe I used a separate label so the text wouldn't be part of the hover target.
-
@Simon said in Snippet: Horizontal panel-based slider with hover fade in and out:
I believe I used a separate label so the text wouldn't be part of the hover target.
You could exclude it in the mouse callback by checking the event.y position.
-
@Simon said in Snippet: Horizontal panel-based slider with hover fade in and out:
interesting that that's the one part not achievable with LaF.
I think it can be done with recently added css
-
@orange good idea
-
@Simon I think you could also use
fadeComponent
here instead of using a timer:https://docs.hise.audio/scripting/scripting-api/scriptpanel/index.html#fadecomponent
-
@HISEnberg That will fade the whole panel, not just the circle.
-
It would be great if CSS and LAF could be used at the same time.
HiseSnippet 1278.3ocsW0raiTDDtmjLKXS1UDId.ZhX0ZuJNq+KNIFEsdcRLazlervKQHgPqZOSaOs7Lca0S6DaVgXuwItvEtxqPdC3BBIDbhC7NvItyAS0yLNiMwgDakcTlnzUWec8U+jpqotTXQ88ERjQxWNnKEYrrYiAbkytNDFGcvdHiGXdDwWQk3PQUGzk36SsQFFK9IZAFIVBE772OsJwkvsnwhPnSELK5gLOlJVZ8Juf45ViXSeIyaLsKV4.KAeWgqnGvmEMyh5Rr5PZSOlnUaASzyI9NHiGaleysyUpY9r42t4lzhz7sxQKzr0l14xVHaQR9sJTpEoTNx1Hi6suMSIjMTDE0GYrTUg8fFNhy4gF3TlOqoKUuHGpAX4Pw0Dt1ZWTKEsqCy0t9n.kOBNk5wgsECCaef4QLa1kxiCeuevF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.x22b+VsnVpXBtjYsO+syzvnOUzSw3sOhnjLnhx73ddMfTuEErNmSc0WHB8izPCVmUuVGAZ.csBVnqPh1LmdsQzl4FsIxiXIEuxJ7lC8H3uafDfS7fOWIA7cSvZ7j2zE73AeQvqrrl7ntBv7yKvByKvhyKvMlWfklWfaNu.25lAp+fsm0SI7B+2FD5n56GbEugw9bBTAFTsh9W.pNwSE
-
@orange These are super Getting easing for free is really useful too.
-
@orange said in Snippet: Horizontal panel-based slider with hover fade in and out:
It would be great if CSS and LAF could be used at the same time.
I think it's on Christoph's radar.