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

Ability to modify icons & color scheme? #21

Open
Cursdd opened this issue Jun 25, 2024 · 2 comments
Open

Ability to modify icons & color scheme? #21

Cursdd opened this issue Jun 25, 2024 · 2 comments
Labels
enhancement New feature or request

Comments

@Cursdd
Copy link

Cursdd commented Jun 25, 2024

Doesn't even have to be like a full blown thing like vs code. Something similar to making mc resource packs would honestly work perfectly imo.
Something like you can change the png (like a resource pack) of an icon, and for color schemes you could have a file for the general types of keywords, like commands (e.g. execute would be blue), numbers / data types, and then the corresponding color.
Also, if this does get added, the ability to modify the color of any keyword manually, or, like mentioned above, the type of keyword it is.

@IoeCmcomc IoeCmcomc added the enhancement New feature or request label Jun 25, 2024
@IoeCmcomc
Copy link
Owner

I am not quite sure what kind of icons are you talking about.

  • Item icons, as shown in the recipe editor's crafting interface, are extracted from the vanilla resource pack and the Minecraft Wiki, and then embedded into the program. It is possible to implement changing item icons, but you must render images of blocks yourself.
  • File type icons are displayed in the left-side tree view and each file's tab depending on each file's type in the datapack. It is also possible to implement changing file icons. However, only file types that are recognized by MCDatapacker are supported, which means that you can't just change file icons based on a file's extension (e.g. .py files) or name (changing the icon of the data folder as an example).
  • Application icons are used in the program's interface, such as on the bold and italic buttons. These icons are dependent on the program icon theme. In Windows, the icon theme is hardcoded into the program. On Linux, it should use the system icon theme for most parts, with some exceptions.

Supporting user-provided code palettes is not too hard to do. There have been two hard-coded code palettes, light and dark, in the program. The only thing to decide is what file format I should use to store these palettes, or whether it'll be better to create a new file format.
Modifying the color of any keywords is harder, though. It is outside the scope of a color scheme, and closer to a language definition.

@Cursdd
Copy link
Author

Cursdd commented Jul 11, 2024

How would I go about changing file type icons?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants