-
Notifications
You must be signed in to change notification settings - Fork 168
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
Theme changes #712
Theme changes #712
Conversation
@kamthamc Hey, @iamhks is working on this still. If you have some early comments on his direction, please let him know. Hemant and I have been discussing some ideas here as well: https://unstructured.zulipchat.com/#narrow/stream/246561-ZubHub/topic/Accepted.20projects/near/362547771 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👏🏻 Nice work. I think some of the color / backgrounds are left out.
zubhub_frontend/zubhub/src/assets/js/icons/projectsCountIcon.js
Outdated
Show resolved
Hide resolved
@@ -19,18 +19,18 @@ const styles = theme => ({ | |||
|
|||
tabStyle: { | |||
'&.Mui-selected': { | |||
color: '#00B8C4', | |||
color: 'var(--primary-color3)', | |||
fontWeight: 'bold', | |||
backgroundColor: '#ffffff', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
background color might need to use css variable
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That is color white, which we haven't asked input from the backend
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure but if the user sets the background color as a light color its hard to read, we might have use the text colora
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I didn't touch the code where we used plain white, and the fact that we are not allowing to update the background color here, this issue would not rise I guess?
@@ -31,7 +31,7 @@ const styles = themes => ({ | |||
paddingLeft: '1.5%', | |||
paddingRight: '20px', | |||
'&:hover': { | |||
backgroundColor: '#FFF7D4', | |||
backgroundColor: 'var(--secondary-color3)', | |||
fontColor: '#FFFFFF', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is this supposed to be color or fontcolor?
background: | ||
'linear-gradient(to bottom, rgba(255,204,0,1) 0%, rgba(255,229,133,1) 25%, rgba(255,255,255,1) 61%, rgba(255,255,255,1) 100%)', | ||
'linear-gradient(to bottom, var(--primary-color2) 0%, var(--primary-color2) 25%, rgba(255,255,255,1) 61%, rgba(255,255,255,1) 100%)', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
some colors are missing css variables
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That is white color which we haven't taken any input from in the backend
filter: | ||
"progid:DXImageTransform.Microsoft.gradient( startColorstr='#ffcc00', endColorstr='#ffffff', GradientType=0 )", | ||
"progid:DXImageTransform.Microsoft.gradient( startColorstr='var(--primary-color2)', endColorstr='#ffffff', GradientType=0 )", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
missing css variable
Summary
Closes #343
Changes
Screenshots
This is the backend:

This is the theme page of backend:

This is how the UI looks when I set everything to green in index.css:

This is the UI back to normal when I fetch the default colors from the backend.

Requests / Responses
Request
(Only for backend)
GET
/api/theme
Returns the latest theme saved by adminResponse
(Only for backend)
HTTP/1.1 200 OK