-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
add feature: colored tags #2758
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
Conversation
5a911ef to
e7d14a6
Compare
|
I think maybe we could use the native color picker of the operating system, as we have used the native right-click menu, tag bar and so on. |
browser/components/NoteItem.js
Outdated
| } | ||
|
|
||
| if (showTagsAlphabetically) { | ||
| return _.sortBy(tags).map(tag => TagElement({ tagName: tag })) |
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.
color: tagConfig[tag] is missing
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.
do you mean a runtime error?
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.
if (showTagsAlphabetically) {
return _.sortBy(tags).map(tag => TagElement({ tagName: tag }))
} else {
return tags.map(tag => TagElement({ tagName: tag, color: coloredTags[tag] }))
}
package.json
Outdated
| "react": "^15.5.4", | ||
| "react-autosuggest": "^9.4.0", | ||
| "react-codemirror": "^0.3.0", | ||
| "react-color": "^2.17.0", |
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.
already in devDependencies
|
@elfman could you use the PR template 😉 Also could you rename your dictionary |
6c13c5e to
61fa954
Compare
|
@elfman The tag textColor doesn't feel right in the tag. You can use this module: https://github.com/onury/invert-color to generate the tag text color base on the tag background. |
|
@ZeroX-DG Updated |
|
@ZeroX-DG Updated |
ZeroX-DG
left a comment
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 🎉 Looks beautiful
|
The line 36 of |
|
How careless of me! Sorry guys 😢 |
|
@elfman it's ok for me |
browser/components/ColorPicker.styl
Outdated
| margin-top 2.5px | ||
| colorDefaultButton() | ||
| border-radius 2px | ||
| border $ui-border |
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.
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.
@ZeroX-DG Updated
ZeroX-DG
left a comment
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







Description
for #2260.
new feature: colored tags, user can customize the color of tags
ScreenShots
Issue fixed
Type of changes
Checklist: