Closed luke- closed 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.
@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')
.
@luke- PR https://github.com/humhub/tasks/pull/204:
Should we really use primary color? :
maybe better use info color? :
@yurabakhtin Oh yes, please use the standard color for checkboxes and links