CGDevTools Forum

Welcome to the Official CGDevTools Support Community Forums.

[HowTo] Add new theme

by Alexander Bulei » 02 May 2013 10:46

  1. Copy new theme to "ui-themes" folder.

    E.g: ui-themes/jMetro

    Inside the folder, you should have "images" folder and "jquery-ui.css" file

    Image
  2. In your project, select the JQThemSwitcher component and add new additional theme.

    Image

    Image
    • Icon: path to thumbnail image of theme
    • Name: name of theme
    • Title: this title will appear in JQThemeSwitcher
    • Url: path to css file
  3. Important: CGDevTools -> Selected Project -> Synchronize "wwwroot" folder
  4. Done.

Best Regards
Group: Developers | Support Team

  • info [at] cgdevtools.com - General information
  • sales [at] cgdevtools.com - Sales department
  • support [at] cgdevtools.com - Product and Technical Support
User avatar
Alexander Bulei
Site Admin
 
Posts: 3635
Joined: 15 May 2012 08:52
Location: Mealhada, Portugal

by etwoss » 03 Jun 2014 13:51

Hi

I've added two themes as described above

However the ThemeSwitcher shows no image

The icon property is not filled, is that the one? And if so what size should it be and what extend?

Eric
You do not have the required permissions to view the files attached to this post.
etwoss
 
Posts: 1205
Joined: 06 Feb 2014 08:58

by Jorge Sousa » 03 Jun 2014 14:12

Hi

See Folder

jq\theme.switcher.images
Best Regards
CGDevTools Develop / Support Team
Home Page: http://www.cgdevtools.com
Jorge Sousa
 
Posts: 4261
Joined: 17 May 2012 09:58

by etwoss » 03 Jun 2014 14:45

Hi

It's on wwwroot\jq\jquery_ui\theme.switcher.images

Should it always be here or can i also have them in another folder?
Same for the themes themselves.

Now when i install a new CGDevtools folder, i always remove the old one , so have to manually add the themes and theme images afterwards

Eric
etwoss
 
Posts: 1205
Joined: 06 Feb 2014 08:58

by Jorge Sousa » 03 Jun 2014 14:52

The image It's the Icon property
Best Regards
CGDevTools Develop / Support Team
Home Page: http://www.cgdevtools.com
Jorge Sousa
 
Posts: 4261
Joined: 17 May 2012 09:58

by MicroSolutions » 03 Nov 2016 11:44

Hello,

I tried to add a new theme, but the switcher cannot display it. Because the images are no longer available in the first comment, I don't know what is the correct Icon/Name/Title/Url property values.

Please give me some example.

Thanks in advance,
MS
MicroSolutions
 
Posts: 49
Joined: 22 Feb 2016 11:53

by Alexander Bulei » 03 Nov 2016 17:42

Hello,

I don't know what is the correct Icon/Name/Title/Url property values.


Icon: path to thumbnail image of theme
Name: name of theme
Title: this title will appear in JQThemeSwitcher
Url: path to css file


Best Regards.
Group: Developers | Support Team

  • info [at] cgdevtools.com - General information
  • sales [at] cgdevtools.com - Sales department
  • support [at] cgdevtools.com - Product and Technical Support
User avatar
Alexander Bulei
Site Admin
 
Posts: 3635
Joined: 15 May 2012 08:52
Location: Mealhada, Portugal

by MicroSolutions » 04 Nov 2016 12:04

Of course I CAN read the property descriptions. But how should I specify the path? I tried several formats, but it always refused to work.

What is the path format? Should it contain the "wwwroot" prefix or not? Slash or backslash is the path delimiter? Property example, please!!!
MicroSolutions
 
Posts: 49
Joined: 22 Feb 2016 11:53

by Alexander Bulei » 04 Nov 2016 12:14

title: "Black Tie",
name: "black-tie",
icon: "theme_90_black_tie.png"


if url is not defined, will search for jquery-ui.css file in ui-themes/<name>/
Group: Developers | Support Team

  • info [at] cgdevtools.com - General information
  • sales [at] cgdevtools.com - Sales department
  • support [at] cgdevtools.com - Product and Technical Support
User avatar
Alexander Bulei
Site Admin
 
Posts: 3635
Joined: 15 May 2012 08:52
Location: Mealhada, Portugal

by MicroSolutions » 04 Nov 2016 13:57

It works fine now. Many thanks!

Best regards,
MS
MicroSolutions
 
Posts: 49
Joined: 22 Feb 2016 11:53


Return to JQThemeSwitcher

Who is online

Users browsing this forum: No registered users and 1 guest

Contact Us.