humhub / tasks

Intuitive task management tool with many basic and advanced features.
23 stars 35 forks source link

Theme Colors Not Used #203

Closed luke- closed 2 years ago

luke- commented 2 years ago

image

yurabakhtin commented 2 years ago

@luke- Do I understand you correctly the colors should be like primary color of the current themre? The colors are located in the file https://github.com/humhub/tasks/blob/master/resources/css/task.less#L8, also this file is built to css files manually by command less. So I am not sure how it is possible to make the colors updatable when theme scheme is updated by Theme Builder module. I.e. the color is static and cannot be dynamic.

luke- commented 2 years ago

@yurabakhtin Yes, it's a bit more complicated, unfortunately.

In such cases the colors in modules cannot be used in the Less files.

You have to work either directly in the HTML element with class attributes like "colorPrimary". Alternatively you can write an inline CSS an use Yii::$app->view->theme->variable('primary').

yurabakhtin commented 2 years ago

@luke- PR https://github.com/humhub/tasks/pull/204:

Should we really use primary color? :

primary-color

maybe better use info color? :

info-color

luke- commented 2 years ago

@yurabakhtin Oh yes, please use the standard color for checkboxes and links

yurabakhtin commented 2 years ago

@luke- Commit https://github.com/humhub/tasks/pull/204/commits/647774433d446f549353b4d8ae9035d1ca7d1298:

colors