-
-
Notifications
You must be signed in to change notification settings - Fork 97
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
Add the ability to change the color/icon of folders in the FileSystem view #768
Comments
Should this information be stored in project metadata (= not in version control) or in Also, while customizing the colors to a few presets sounds good to me, I'm not sure if we should allow for customizing the icon entirely. This would make it difficult to support both dark and light themes. Built-in icons will change their colors automatically to adapt to the current editor theme, but this isn't the case for custom icons. You may not be using the editor with a light theme yourself, but many people are 🙂 I think the following color presets would be a good start, similar to GIMP's color tags:
Edit: It may also be a good idea to add subtle differences to the icon's shape depending on the color. This way, folder icons can be distinguished by colorblind people. |
Fair point on the custom icons. A predefined color palette/presets would be more than enough to solve the bulk of the issue. I'd definitely vouch for it being checked into version control so that when, let's say, another team member pulls a project or someone online downloads a demo project, the project itself can also reflect these folder colors. Would be better for continuity I think. |
KDE has Perhaps we should use |
It's also a fairly popular extension in Unity-land. (Mostly adding this for completion, as it may help gauge interest.) |
We have quickly lot folders, it's more easily to find a folder with a specific colour. When your work on a specific pole (Programmer, Graphites... you can give a colour system to your team. |
I was also interested in working on this, although I'm personally still learning the ropes on Godot's source code. If you're interested, I'll (hopefully) try to work on this at the-sink/custom-folder-colors after I've had some time to look around. Question in regards to how folder colors are stored. I personally think adding them to the I like the |
I don't think we can effectively track renames – it's like favorites in the FileSystem dock. As for folder deletions, we can ignore them but keep the entries in I wouldn't add a dedicated |
Good point about your feedback ; that important -I think- to have a main solution (for a studio project), and for a specific user. |
There is also an option to add these settings to the In defense of the
The ability to locally override directory params seems interesting, but I'm not sure we need such a detailed configuration. I think it will be enough just to choose whether or not to track the params in the VCS. |
I agree with @dalexeev in that it removes the need to track renaming/moving directories in-editor and removes any sort of problems created as a result of modifying folders outside of the editor. Buuuut... I wonder, if it were to be put in I also think there is merit to keeping folder colors out of version control in some instances. Say for example an artist wants to highlight the Sprites and Levels folders because that's where they in specific will be working most of their time, and the gameplay programmer wants to highlight the Scripts folder instead. Allowing them to do this if they as a team decide it to be useful is nice. Folder colors can be synced across team members by default, and if they decide they don't want it tracked in version control anymore so they can have individual layouts, they can throw it into the gitignore. |
We already have special checks to handle this with
The value can be a string with a predefined color name: |
@the-sink any updates on this, i see your repository is gone? :) |
Sorry for the lack of a follow-up, I ended up not having enough time to try and implement it myself at the time. I can take another shot at it once I have more time in a few days, but if anyone else wants to try and implement this themselves please feel free to do so! |
Okay I think I actually have some time to work on this now... It's definitely a learning experience for me since I'm not all too familiar with the codebase, but I'll try my best and of course if any of the more experienced contributors have critiques, feel free to mention them! Currently at the-sink/godot (folder-colors branch). I think it's a reasonable implementation to just have a sub-menu for all of the pre-defined folder color options. For instance: This requires another, partially unrelated change that I'll submit a PR for in a bit (edit: created godotengine/godot#70286) that copies the |
i see #70286 got merged, does it mean you @the-sink can make this work? |
@Norrox Good reminder haha, started working on this again and got it to (I think?) a functional state: godot.windows.editor.x86_64_2023-08-05_20-11-36.mp4Stores folder colors in Edit: Nevermind! I assumed |
@the-sink Impressive progress! I'd like to highlight a particular aspect in my example: when considering subfolders lacking an assigned color, they currently inherit the folder color from the one immediately above them. To enhance this, I propose that setting the default color of a subfolder to match that of its parent folder would be a more intuitive approach, moving away from the fixed blue color for all subfolders. |
@DennisGHUA Thanks! It definitely does look better when folder colors are inherited as the background color is: Just created a draft PR! |
Implemented by godotengine/godot#80440. |
Describe the project you are working on:
Underground 3D facility with an interactive environment
Describe the problem or limitation you are having in your project:
Due to the nature of my project, I have lots of project files and this will inherently start to pile up with folders. Better folder organization is a good way to clean up your filestructure but is only a part of the solution.
Describe the feature / enhancement and how it helps to overcome the problem or limitation:
There should be an option to change the icon or base color of any folder in the FileSystem view that would reflect in both the normal and split modes. You would right click and be presented with "Change folder icon"/"Change folder color" options (or something similar) that would allow you to customize the folder icon/color, and this would save.
Describe how your proposal will work, with code, pseudocode, mockups, and/or diagrams:
^ Only demonstrates colors
If this enhancement will not be used often, can it be worked around with a few lines of script?:
Not that I am aware of, short of completely replacing the FileSystem view with a custom one using a plugin.
Is there a reason why this should be core and not an add-on in the asset library?:
It is a relatively simple feature that would require an unnecessarily complex means to add yourself (see above question).
This is already a feature in Unreal Engine (at least the color part) and is a very nice tool to help organize and define which folders are more/less important when navigating the filesystem, and I think it would be a great QOL feature for developers.
The text was updated successfully, but these errors were encountered: