How to use the dark theme

2,185 views
Skip to first unread message

Harvey Triana

unread,
Jun 19, 2015, 2:23:16 AM6/19/15
to jst...@googlegroups.com
Hello

Works fine
<link href="~/Content/themes/default/style.css" rel="stylesheet" />

Simple change to:
<link href="~/Content/themes/default-dark/style.css" rel="stylesheet" />

Does not work!

Why?
How to use dark theme?

Thanks in advanced

Ivan Bozhanov

unread,
Jun 19, 2015, 2:43:23 AM6/19/15
to jst...@googlegroups.com, harvey...@gmail.com
You also need to change your jstree config - set theme.name to "default-dark":
$('#tree').jstree({"core" : { "themes" : { "name" : "default-dark" } }...

Best regards,
Ivan

Harvey Triana

unread,
Jun 19, 2015, 9:46:42 AM6/19/15
to jst...@googlegroups.com, harvey...@gmail.com
Ivan -
Sorry. Off course the script was write correct, that is
var treeObject = {
            core: {
                data: [// nodes array
...,
                themes: {
                    name: "default-dark",
                    responsive: true,
                    icons: false,
                },
            }
        };

No works, with:
<link href="~/Content/themes/default-dark/" rel="stylesheet" />


Do you have a simple sample? - Do you wan send you my dummy sample?

Regards
Luis Harvey Triana Vega

Harvey Triana

unread,
Jun 19, 2015, 10:17:21 AM6/19/15
to jst...@googlegroups.com
Error here!
~/Content/themes/default-dark/

Sorry

Desmond Daignault

unread,
Jun 19, 2015, 10:56:40 AM6/19/15
to jst...@googlegroups.com
I got it to work by using the following:
      'plugins': [
          "themes"
      ],
     'core': {
          "themes": {
            "name": 'default-dark',
            "dots" : true,
            "responsive" : true,
            "stripes": false
          },
    ....

Be sure that the "themes" section is under "core" not a sibling of "core" and that you have the "themes" plugin in the "plugins" section.
Also on the page that loads your css files, be sure to have the correct path to the default-dark/style.min.css.

--
Dez.
Reply all
Reply to author
Forward
0 new messages