Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Themes Menu #3679

Open
re-LIF3 opened this issue Oct 11, 2024 · 2 comments
Open

Themes Menu #3679

re-LIF3 opened this issue Oct 11, 2024 · 2 comments
Labels

Comments

@re-LIF3
Copy link

re-LIF3 commented Oct 11, 2024

How to add Menu Themes at Preference ? theres is no document for it ?
Screenshot 2024-10-11 185813

@blutorange
Copy link
Contributor

Yeah you kinda have to read some source code: https://github.com/Studio-42/elFinder/blob/master/js/commands/preference.js#L23-L32

E.g. to only show the Theme tab:

$(".elfinder").elfinder({
  commandsOptions: {
    preference: {
      categories: { theme: ["theme"] },
    },
  },
})

And make sure you actually have some themes defined, or I believe it won't show up either:

https://github.com/Studio-42/elFinder/blob/master/js/elFinder.options.js#L235-L254

{
            themes : {
                'dark-slim'   : 'https://johnfort.github.io/elFinder.themes/dark-slim/manifest.json',
                'mt-darkblue' : 'https://robinn1.github.io/elFinder-Material-Theme/manifests/darkblue.json',
                'mt-gray'     : 'https://robinn1.github.io/elFinder-Material-Theme/manifests/gray.json',
                'mt-light'    : 'https://robinn1.github.io/elFinder-Material-Theme/manifests/light.json',
                'bootstrap'   : 'https://nao-pon.github.io/elfinder-theme-manifests/bootstrap.json',
                'moono'       : 'https://nao-pon.github.io/elfinder-theme-manifests/moono.json',
                'win10'       : 'https://nao-pon.github.io/elfinder-theme-manifests/win10.json'
            },
}

Copy link

This issue is stale because it has been open for 50 days with no activity.

@github-actions github-actions bot added the stale label Dec 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants
@blutorange @re-LIF3 and others