greyaz / ThemeRevision

A task-first and high-quality theme for Kanboard. It's also aimed at better mobile experiences, common plugin compatibilities, and customization friendly.
MIT License
53 stars 9 forks source link

Color balance #17

Closed oleole39 closed 1 year ago

oleole39 commented 1 year ago

Hello @greyaz, Thank you for sharing this nice design work. I am happy with the default color theme, but I found a few contrast issues (particularly visible with the dark theme) that I share here in case you would like to merge them:

greyaz commented 1 year ago

Hi oleole39,

Thank you for your efforts. Finally, someone is talking about the theme itself~😄 I agree there are some contrast issues with the dark theme, but the solutions need to be adjusted:

Placeholders texts As the light and dark themes share the same style sheet, changing greyscale-2 to greyscale-1 will also affect the light theme. Just updating the value of greyscale-2 is a better way.

Task list icons The opacity of "0.08" is actually on purpose. The contents in the card footer could be very long. Long texts with a big amount of cards lead to a cluttered feeling. Please look at this: image I may provide an option on the settings page about this issue.

Task summary text Yes, you are right. "#CCC" or "#DDD" can provide more contrast.

oleole39 commented 1 year ago

Hi greyaz,

But in case you would feel it is more a matter of personal preferences, I would be able to live with it. Best

PS: I didn't notice other major contrast issue so far in the theme. Maybe with the dark version of the Gantt chart though (I saw an issue had been opened for it) but I don't have a template yet to try it, and thus do not plan to change it for now.

hoducha commented 1 year ago

@greyaz Thanks for explaining why the opacity of the card footer (task list icons) is .08. I thought it was a typo, and I believe many people think so. Because the length of the card footer depends on the theme settings, it would be great if there was an option to change its opacity.

greyaz commented 1 year ago

@oleole39 Sorry for replying so late. I've been quite busy recently😬. The --color-greyscale-1 in light theme can not be "#DDD", as all general texts share this color, if we change it to "#DDD", the light theme will look like this: image

There are two ways to update the color of placeholders:

  1. Change the color to greyscale-1,and add an extra style to control the opacity
  2. Keep it as greyscale-2, but adjust the value of it

You can update your PR by following those ways.

@hoducha No problem. I've added it into my task list already.

oleole39 commented 1 year ago

Hi greyaz,

The --color-greyscale-1 in light theme can not be "#DDD", as all general texts share this color, if we change it to "#DDD"

Yes sorry, my explanation was confusing (and probably I had not in mind anymore at the time of writing that there are 2 distinct palettes in the theme's settings) - I had actually set #DDD to greyscale-1 only in the dark palette, as mentioned in my first message. Therefore, my previous message has to be understood that way - there seems to be no problem shifting this element from greyscale-2 to greyscale-1 (which I verified again just now, applying the commits attached to this PR to a fresh install of the theme), never mind the theme's variant (light/dark) one could be using. I had indeed set greyscale-1 color to "#DDD" in the dark palette but this is actually not for the same purpose - it improves the contrast on yellow as shown in my first message. If you wish to get this value hardcoded as default, I can add a commit for this (not done so far). To conclude, I am quite happy with the results of this PR's commits using the dark theme, and I think you would be fine too with the light theme.

I have just added a last commit which makes the "edit" icon in the cards of the table view behave the same as the other icons' of those cards (due to my previous commits in this PR), i.e. opacity to 0.08 at default state shifting to 1 when "task-board" element is hovered.

greyaz commented 1 year ago

@oleole39 All updates in board-task-list.css are good, thank you for your efforts. But as placeholders are also used in text inputs, they should differ from general text to help users recognize current status. Keeping the color of placeholders with general text the same is not a good idea.

Current Placeholders: image Users can recognize the difference after input something: image

The default effect after setting color to greyscale-1 image

So as said before, there are two ways to update the color of placeholders:

  1. Change the color to greyscale-1,and add an extra style to control the opacity
  2. Keep it as greyscale-2, but adjust the value of it
greyaz commented 1 year ago

@oleole39

For releasing the next version,I am going to revise (restore codes in form-components.css) and merge your PR. You can open another PR, if you have some new ideas about the color of placeholders.