sugarlabs / musicblocks

Music Blocks -- A musical microworld
https://musicblocks.sugarlabs.org/
GNU Affero General Public License v3.0
552 stars 750 forks source link

A (JS) way to choose .svg from our mouse art folder (without choosing from desktop) #1291

Open pikurasa opened 6 years ago

pikurasa commented 6 years ago

Some students (in my YMCA class) were wanting to change the shell for the mouse.

I showed them that they could choose any picture from their desktop (and these desktops are hardly used, so hardly any pictures and no internet). I felt that it was a little awkward to find the images from the "mouse art" folder and I doubt a student would find them on their own.

I was thinking that it would be nice if the prompt could first offer to choose from one of the files within the main code (like the .svg folder) as well as an option to select from the desktop.

Is this possible?

walterbender commented 6 years ago

I think the idea is to have kids download images that they want to use, not to use the ones we provide.

walterbender commented 6 years ago

Euan and I had discussed the idea of adding images, samples, etc. to the planet for download as well. But I am not sure it is worth the effort (both for coding and for moderation).

walterbender commented 6 years ago

We may want to have a local assets browser when the planet is not available.

pikurasa commented 6 years ago

The issue was that we were not online and there were not really any images on the filesystem to be used to show the basic idea of "shell". Having ready access to a few stock images is nice when you need it.

Euan and I had discussed the idea of adding images, samples, etc. to the planet for download as well. But I am not sure it is worth the effort (both for coding and for moderation).

I do not think it is really worth the effort either.

pikurasa commented 6 years ago

This is very similar to what I have in mind:

screenshot at 2018-08-17 17 25 54 example of selection options

The bottom option is "open (upload) from local folder". The others are things like "open from Drive", etc.

walterbender commented 6 years ago

I thought the context of this feature was when kids had no internet access, so opening on Google Drive makes no sense... We already have an upload from local folder dialog when you click on the media block. I guess I am confused as to what you are asking for.

pikurasa commented 6 years ago

I thought the context of this feature was when kids had no internet access, so opening on Google Drive makes no sense...

I am sorry if that was a distraction. I thought the picture might help.

Let's pretend that instead of "Google Drive", it said "Load Music Blocks Art by Students" or something like that and it shows options to select some of these images that GCI students made as they are helpful when you just want to grab a quick image to put as the shell for the mouse.

I realize that we have open from local folder, but the steps to access an image are many, and some newbies do not know where to look. A javascript dialogue that gives some stock examples would be convenient.

walterbender commented 6 years ago

I'm still confused. The idea is that someone has a local copy of the repo? And in that repo is a collection of images? And you want the file selector to go to that directory by default?

pikurasa commented 6 years ago

I'm still confused. The idea is that someone has a local copy of the repo?

Yes.

And in that repo is a collection of images?

Yes, and currently we have "mouse art" folder.

And you want the file selector to go to that directory by default?

Yes.

At any rate, this Weds, the feature very much made sense to me.

Sahityaaryan commented 9 months ago

hey @pikurasa I wanted to fix this up but I am not able to understand the feature, Do you want to add an option to the users that they can upload any picture from their local but this local already contains some files ''made from GCI students?'', mainly a window will open to choose any image? (and I didn't get it what is GCI?)

walterbender commented 9 months ago

The idea is to have a stock set of images to choose from in addition to having the ability to upload an image from the local file system or link to an image on the web.