mirror of
https://github.com/BoostIO/BoostNote-App.git
synced 2026-04-26 21:05:55 +03:00
[PR #704] [MERGED] Add tag colors setup #856
Labels
No labels
android 🤖
assigned to core 🦹
bug 🐛
documentation 📚
documentation 📚
duplicate 🚫
external issue 🔼
external issue 🔼
feature request 🌟
funded on issuehunt 💵
help wanted 🆘
improvement request 🔨
improvement request 🔨
ios 🍎
mobile 📱
needs investigation 🔬
needs more info ℹ️
needs specs 📐
plugin idea 🔌
plugin idea 🔌
poll 🗳️
pull-request
question ❓
rewarded on issuehunt 🎁
security issue 🔑
won’t fix ❌
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/BoostNote-App#856
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/BoostIO/BoostNote-App/pull/704
Author: @Komediruzecki
Created: 11/30/2020
Status: ✅ Merged
Merged: 1/3/2021
Merged by: @Rokt33r
Base:
master← Head:feature/add-colored-tags📝 Commits (1)
d71ce2cAdd tag colors setup📊 Changes
21 files changed (+382 additions, -92 deletions)
View changed files
📝
package-lock.json(+4 -12)📝
package.json(+2 -0)📝
src/components/atoms/TagNavigatorListItem.tsx(+90 -38)📝
src/components/atoms/TagNavigatorNewTagPopup.tsx(+1 -1)➕
src/components/atoms/dialog/DialogColorPicker.tsx(+41 -0)📝
src/components/atoms/dialog/styled.ts(+59 -0)📝
src/components/molecules/FolderNavigatorItem.tsx(+1 -0)📝
src/components/molecules/NoteDetailTagNavigator.tsx(+24 -12)📝
src/components/molecules/NoteItem.tsx(+31 -10)📝
src/components/molecules/StorageNavigatorFragment.tsx(+1 -0)📝
src/components/molecules/TagListFragment.tsx(+1 -0)📝
src/components/organisms/NoteListNavigator.tsx(+16 -2)📝
src/components/organisms/NotePageToolbar.tsx(+25 -6)📝
src/components/organisms/NoteStorageNavigator.tsx(+1 -0)📝
src/components/organisms/SearchModal.tsx(+2 -2)📝
src/components/pages/NotePage.tsx(+6 -0)📝
src/lib/colors.ts(+4 -7)📝
src/lib/db/FSNoteDb.ts(+8 -0)📝
src/lib/db/PouchNoteDb.ts(+8 -1)📝
src/lib/db/createStore.ts(+38 -1)...and 1 more files
📄 Description
Add tag colors setup (#323):
Fix right click context menu in sidebar
How it works:
Users can right click on any tag in note tag list. The color picker comes up and on selection it changes colors (preview is below in color slider at right corner), below that are some predefined colors which can be clicked. Once user is satisfied with color, to close the dialog any click outside of the color picker will do. The color is then updated in UI acordingly.
For background colors which are too dark, hovering the tag will brighten it up, opposite works too.
For background colors which are too dark, text and remove tag button are light/white and vice versa.
The following image shows picking color:

Some colored tags preview:

v0.11.5 - new tag location examples:


Test:
IssueHunt Summary
Referenced issues
This pull request has been submitted to:
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.