Skip to content

Conversation

@ishanvaghani
Copy link
Contributor

Description

  • Added support for name colors
  • Now we have 3 types of colors (Theme colors, Hex colors, Name colors)

Related Issues

Closes #123

Type of Change

  • New feature (non-breaking change which adds functionality)
  • Bug fix (non-breaking change which fixes an issue)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Code refactor
  • Build configuration change
  • Documentation
  • Chore

}

Color? _parseNameColor(String colorString) {
// 3 digits shade - Ex: yellow200
Copy link
Member

Choose a reason for hiding this comment

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

@ishanvaghani We don't need shades for all colors. The material color shades provided in black and white colors are good enough.

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 think it will be add-on to define color shades. If you think it's unnecessary i will remove it

Copy link
Member

Choose a reason for hiding this comment

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

I think only a small fraction of people might use it, but it could add unnecessary complexity for those new to Mirai. Initially, we should keep things simple and consider adding it later if the need comes.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Removed shades from colors except black and white

case MiraiColors.amberAccent:
return Colors.amberAccent[shadeInt];
case MiraiColors.black:
switch (shadeInt) {
Copy link
Member

Choose a reason for hiding this comment

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

👍🏻

Copy link
Member

@divyanshub024 divyanshub024 left a comment

Choose a reason for hiding this comment

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

Great work @ishanvaghani

@divyanshub024 divyanshub024 merged commit 7fb2319 into StacDev:dev Jan 23, 2025
3 checks passed
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.

feat: Add material color support in Mirai

2 participants