jstoudt / enscroll

A jQuery plugin for custom scrollbars
http://enscrollplugin.com
Other
73 stars 46 forks source link

Theme support #58

Closed PatONeil closed 9 years ago

PatONeil commented 9 years ago

Is it possible to add jquery ui theme support without modifying the code?

jstoudt commented 9 years ago

I'm afraid this plugin was not written with any compatibility to jQuery UI in mind. The goal of this plugin was to provide the ability to style the scrollbars to any theme via CSS. I didn't want to confine anybody implementing this plugin to available jQuery UI themes. And, I didn't think anyone would write their own jQuery UI theme just to style scrollbars generated by this plugin.

It may be possible to configure enscroll to use jQuery UI theme style by configuring the verticalTrackClass, verticalHandleClass and other similar properties when initializing the plugin on your target element.

PatONeil commented 9 years ago

I think your suggestion will work buy putting in jQuery UI theme classes for ui-slider.

Thanks. I have looked at a lot of other scroller and your is the best.

Pat

From: Jason Stoudt Sent: Thursday, September 17, 2015 11:11 AM To: jstoudt/enscroll Cc: PatONeil Subject: Re: [enscroll] Theme support (#58)

I'm afraid this plugin was not written with any compatibility to jQuery UI in mind. The goal of this plugin was to provide the ability to style the scrollbars to any theme via CSS. I didn't want to confine anybody implementing this plugin to available jQuery UI themes. And, I didn't think anyone would write their own jQuery UI theme just to style scrollbars generated by this plugin.

It may be possible to configure enscroll to use jQuery UI theme style by configuring the verticalTrackClass, verticalHandleClass and other similar properties when initializing the plugin on your target element.

— Reply to this email directly or view it on GitHub.

jstoudt commented 9 years ago

Great. Thanks for the complement. Good luck on your project.