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

Resolves issue #45 #46

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open

Resolves issue #45 #46

wants to merge 5 commits into from

Conversation

madhavarun
Copy link
Contributor

Removes the module catppuccincolors.py and uses the values defined in the Catppuccin python module in the script create_functions.py.

accent_colors = [color.name for color in PALETTE.mocha.colors if color.accent == True]

# Create a map of red2 values since they don't exist in the catppuccin palette
red2 = {PALETTE.mocha.name: (181, 103, 125),

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why are we defining another red in the first place?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some of the cancel menu sprites have had a 2nd darker color of red used ever since the beginning of the pack since it made the visibility better (That's how it was done in the original pack). An example would be this https://github.com/catppuccin/minecraft/blob/main/resource-packs/Catppuccin%20UI/template/1.20.2/assets/minecraft/textures/gui/sprites/container/beacon/cancel.png

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd appreciate it if we could generate the darker red from the palette red instead of seemingly hardcoding the rgb tuple.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I did a bit of testing around and the difference in colors is pretty similar to a -26% in lightness on paint.net, trying to figure out how to do it in the script right now.

Copy link
Collaborator

@JustLetterV JustLetterV left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me, only thing i noticed was that wrong text colors were used for latte, but already fixed that. Thanks for the pr 👍

def darker_red(colorRGB):
hls_tuple = rgb_to_hls(*rgb_to_tuple(colorRGB))
red2_hls_tuple = (hls_tuple[0], hls_tuple[1] * 0.74, hls_tuple[2])
return tuple(round(i) for i in hls_to_rgb(*red2_hls_tuple))
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I didn't know how to do this more cleanly, would be open for anyone better to refactor this
The RGB values were pretty much +- 3 for all flavors

Copy link

@sgoudham sgoudham left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this PR is okay to merge once the catppuccincolors.py file is removed.

@madhavarun madhavarun requested a review from sgoudham December 25, 2024 23:40
Copy link

@sgoudham sgoudham left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would be nice to refactor this script at some point in the future but looks okay for now 👍

@JustLetterV Can you confirm it still works as intended and merge whenever you're free?

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

Successfully merging this pull request may close these issues.

3 participants