Skip to content

Improved jQueryUI Theme Switcher. Same look and feel as the original with some added functionality like adding your own theme's.

Notifications You must be signed in to change notification settings

demonslord/Super-Theme-Switcher

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Super Theme Switcher is a jQuery plugin based on the original jQuery theme switcher found here: http://jqueryui.com/docs/Theming/ThemeSwitcher

Recently, jQuery disabled hotlinking to image resources in the switcher essentially breaking it for anyone using it. UI theme icons are included in the download. The super theme switcher also includes some other niceities like adding your own custom themes or overriding all of them.

Example:

$('#switcher').themeswitcher({
    imgpath: "images/",
	loadTheme: "dot-luv"
});

But since all parameters are optional you can just use it like this: $('#switcher').themeswitcher();

Options

The super theme switcher inherits all the settings of the original theme switcher

Additional settings are:

  • imgPath: String, path to image directory where theme icons are located
  • rounded: Boolean, rounded corners on themeswitcher link and dropdown
  • themes: An array of theme objects that will override the default themes.
    [{title:"My theme",name:"my-theme",icon:"my-icon.png",url:"http://url-to-my-css-file.css"}]
  • additionalThemes: An array of theme objects that will be INCLUDED along with the default themes.
    [{title:"My theme",name:"my-theme",icon:"my-icon.png",url:"http://url-to-my-css-file.css"}]
  • jqueryUiVersion: String, jQuery UI version of themes (Default themes are linked from Google CDN)

Demo located here.

This plugin includes the awesome jQuery cookie plugin by Klaus Hartl found here

Contact

Twitter

davehoff.com

About

Improved jQueryUI Theme Switcher. Same look and feel as the original with some added functionality like adding your own theme's.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published