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

[FR] More colours or colour picker for select #5493

Open
OctoShotG opened this issue Jun 8, 2024 · 15 comments
Open

[FR] More colours or colour picker for select #5493

OctoShotG opened this issue Jun 8, 2024 · 15 comments
Assignees
Labels
desktop good first issue for devs for the community members to claim improvements improvements on an existing feature kanban board features related to the board-view database mobile features related to AppFlowy Mobile

Comments

@OctoShotG
Copy link

Description

image
More colour options or a colour picker, such as brown, white, black, red, etc

Impact

Easier to make statuses more distinct through colours visible in grid view

Additional Context

No response

@apomalyn apomalyn added improvements improvements on an existing feature kanban board features related to the board-view database mobile features related to AppFlowy Mobile desktop good first issue for devs for the community members to claim labels Jun 12, 2024
@MayurSMahajan
Copy link
Collaborator

Should more colours be added here, or a way to add a custom colour should be added ?

@OctoShotG
Copy link
Author

Being able to pick any custom colour with something such as a RGB value would be be great for customising- most of the colours now feel quite dark and don't fit the best with some themes.

@nebiyuelias1
Copy link
Contributor

nebiyuelias1 commented Jun 21, 2024

So is the custom color input the way to go? I will be happy to work on this issue @apomalyn.

@MayurSMahajan
Copy link
Collaborator

Hey @nebiyuelias1, assigning this to you. Just make sure that the custom colour input is consistent with custom colour inputs we have used in other places within appflowy. Have fun contributing!

@nebiyuelias1
Copy link
Contributor

Hey @nebiyuelias1, assigning this to you. Just make sure that the custom colour input is consistent with custom colour inputs we have used in other places within appflowy. Have fun contributing!

Oh exciting! So I saw some color picker with a dialog in the settings page. Do you think I should use that one?

@MayurSMahajan
Copy link
Collaborator

Something more like this. This appears when you try changing highlight or text colour

Screenshot 2024-06-28 at 11 13 02 AM

@nebiyuelias1
Copy link
Contributor

@MayurSMahajan I was able to add the custom color picker to the UI, but I was wondering how I could modify the protocol buffer to allow custom input. Right now it seems it's set to use integer values with an enum. Do you have any suggestions?

@MayurSMahajan
Copy link
Collaborator

@nebiyuelias1 Actually I am not the best person for this question, I haven't really worked on the colour pickers. I would advice you look up the existing implementation in here:
https://github.com/AppFlowy-IO/appflowy-editor/blob/main/lib/src/editor/toolbar/desktop/items/color/color_picker.dart

See if that helps, otherwise we'll ask someone who knows this for help.

@nebiyuelias1
Copy link
Contributor

nebiyuelias1 commented Jul 5, 2024

@MayurSMahajan Thanks for the reply. I did check that widget but it looks like the way it works is different. Because for the value I'm trying to implement it's using a proto buff with a set of options. What I'm struggling with is how to map a custom hex value with a string to a way that is going to be used by the proto buff. A nudge in the right direction would be helpful.

@MayurSMahajan
Copy link
Collaborator

Again I am not really familiar with this part of codebase, nor with protobuffs. Sorry about that!

@nebiyuelias1
Copy link
Contributor

Again I am not really familiar with this part of codebase, nor with protobuffs. Sorry about that!

Ok who should I ask?

@MayurSMahajan
Copy link
Collaborator

Discord would be the right place to start, also your problem seems to be more related to Protobuffs, why do you want to implement it with Protobuffs, what advantage does it have over just reusing the existing solution? Just curious.

@nebiyuelias1
Copy link
Contributor

Discord would be the right place to start, also your problem seems to be more related to Protobuffs, why do you want to implement it with Protobuffs, what advantage does it have over just reusing the existing solution? Just curious.

Honestly it's the way things work at the moment and implementing the feature request requires the modification I described.

@gustamor
Copy link
Contributor

gustamor commented Aug 3, 2024

@nebiyuelias1 How's it going?

The custom color feature for the cursor and selection in the workspace settings adds an icon to the color text box. Clicking this icon opens the color picker, which returns the corresponding color code and places it in the text box. This action does not alter any other elements; it simply updates the text box value with the selected color code and submits it in the same way as if the user had manually entered the code. I think this might work the same way.

@nebiyuelias1
Copy link
Contributor

@nebiyuelias1 How's it going?

The custom color feature for the cursor and selection in the workspace settings adds an icon to the color text box. Clicking this icon opens the color picker, which returns the corresponding color code and places it in the text box. This action does not alter any other elements; it simply updates the text box value with the selected color code and submits it in the same way as if the user had manually entered the code. I think this might work the same way.

Hi the situation is different in this context. More info about the problem could be found here on discord: https://discord.com/channels/903549834160635914/905299371485188137/1260206983122915388.
I didn't understand how the proto buff modifications should work so I haven't made much progress on this one. Would love to get some help!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
desktop good first issue for devs for the community members to claim improvements improvements on an existing feature kanban board features related to the board-view database mobile features related to AppFlowy Mobile
Projects
None yet
Development

No branches or pull requests

5 participants