add theme switching to elfinder #37
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hey @jorgetwgroup thanks for the PR. Indeed, this was quite a bit of work even if you spared me some time by searching for the right themes, there were a lot of moving parts. π
I wasn't able to make it work the way you were trying to do it. So I needed to re-think the css architecture to be able to have a "decent" looking elfinder.
This branch points to your branch so that you can see the difference between the implementations.
Basically I appended/removed the stylesheets as we need them. Some bit of extra work to style the iframe, but I think if we are not there yet, we are very close.
Can you and @karandatwani92 both have a quick look at this ? It's not to test file uploads etc, it's just to test the interface so it should not take you guys more than 10 minutes to test this.
The reason I ask you both is because this also has changes on the container sizing (at the moment as inline css but we can move it out to a class later). I will probably also ask @tabacitu after we 3 finish our back and forth and have this in a ready to merge state.
I only changed the
standalonepopup
(used in browser field) and theelfinder
(used in this package) views.It's missing to change the [X] that closes the popup, at the moment it's an image. I am still trying to decide if I create a dark image, or replace it completely with a css [X] that adapts the color depending on the scheme, so disregard that issue for now π
Don't forget you still need: Laravel-Backpack/theme-tabler#116 too with this one.
Also if you already have elfinder installed you should delete the elfinder views from your resources/views/vendor/elfinder folder and publish them again with
php artisan backpack:filemanager:install
Cheers