-
Notifications
You must be signed in to change notification settings - Fork 5
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
Implement update for changing the tag labels color in the UI #228
Implement update for changing the tag labels color in the UI #228
Conversation
Changes include: - updating the default color to something slightly darker - removing the category from the tag label - changing the tag label color to the category color
Codecov ReportAttention: Patch coverage is
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
@@ -6,7 +6,7 @@ | |||
* Provides categories to sort Tags into, as well as colour codes for display in the UI. | |||
*/ | |||
public enum TagCategory { | |||
GENERAL("#ECECEC"), // Light Grey for default color | |||
GENERAL("#A9A9A9"), // Dark Grey for default color |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure if dark grey is a good colour because it could mean "invalid tag" to a user that's not familiar to our codebase, but I think it suffices for now
tagLabel.setStyle("-fx-padding: 2; -fx-background-color: " + tag.getTagColour()); | ||
tags.getChildren().add(tagLabel); | ||
}); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice implementation to refresh the tag status of the tags!
49ca26f
into
AY2425S1-CS2103T-F14a-4:master
Changes include:
Example look:
Closes #227