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

Optional material design #255

Open
wants to merge 18 commits into
base: master
Choose a base branch
from

Conversation

holema
Copy link
Contributor

@holema holema commented Sep 5, 2022

I created the possibility to theme the board with material Design.
For this I create a new env variable: THEME_OPTIONS. this can be set to material.
Then a new css with material design is added.
Also Roboto is included as font.
image

@lovasoa
Copy link
Owner

lovasoa commented Sep 5, 2022

Thank you for your PR !

However, I'm not sure WBO itself should contain multiple themes. Can we instead just have an EXTERNAL_STYLESHEET environment variable ? You can then host your theme separately, but it would not be "officially supported", and not tested with every new release of WBO.

Also, you can already create your own custom docker image taking lovasoa/wbo as a base, overwriting the CSS files in it, and republish it.

I am happy to take contributions to the existing CSS, but I don't feel like maintaining multiple themes in the long term.

@holema holema changed the title Feature/material design Optional material design Sep 5, 2022
@holema
Copy link
Contributor Author

holema commented Sep 5, 2022

So you have no problem when I overvrite your css with material design?
That would be great, because I think it is more up to date.

@lovasoa
Copy link
Owner

lovasoa commented Sep 5, 2022

The CSS should be coherent in the homepage and in the boards, but that's all. I am open to PRs that change in the CSS for the board page.

@holema
Copy link
Contributor Author

holema commented Sep 5, 2022

I changed the original css to material design.
I let the color in the Fronpage the old one, because I don`t know if this is CI and already known in the community.
But in the board I choose the original backgroundcolor of Google-Material design.

Comment on lines 7 to 11
url('fonts/roboto-v30-latin-regular.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
url('fonts/roboto-v30-latin-regular.woff2') format('woff2'), /* Super Modern Browsers */
url('fonts/roboto-v30-latin-regular.woff') format('woff'), /* Modern Browsers */
url('fonts/roboto-v30-latin-regular.ttf') format('truetype'), /* Safari, Android, iOS */
url('fonts/roboto-v30-latin-regular.svg#Roboto') format('svg'); /* Legacy iOS */
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd like to avoid embedding large blobs in this repo.
Can we use system fonts ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unfortunentally Roboto is only possible as extra font.
But Arial almost looks like the same. We could also use Roboto directly from google, but this I want to avoid because then we are not independent.

But I think deliver a font is like the images we have in the repo. It`s not unusal to deliver the correct font in a software project.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I just took a look. the size is only ~90kb

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we just use the system's default ? On the frontend wejust use

font-family: sans-serif;
font-weight: 300;

which I think looks decent and well-integrated everywhere.

README.md Outdated
Comment on lines 151 to 157
## Themeing

it is posible to choose between different themes. Up to now only the __default__ and __material__ theme is supported.

To choose the material theme add

`THEME_OPTIONS=material`
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's remove the theming options

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure.

@holema holema requested a review from lovasoa September 6, 2022 18:36
@holema
Copy link
Contributor Author

holema commented Sep 9, 2022

removed the roboto extra fonts

Comment on lines 61 to 63
/** Theme options e.g. material */
THEME_OPTIONS: (process.env["THEME_OPTIONS"] || ""),

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we don't need that do we ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✔️

Comment on lines 1 to 12
@font-face {
font-family: 'Roboto';
font-style: normal;
font-weight: 400;
src: url('fonts/roboto-v30-latin-regular.eot'); /* IE9 Compat Modes */
src: local(''),
url('fonts/roboto-v30-latin-regular.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
url('fonts/roboto-v30-latin-regular.woff2') format('woff2'), /* Super Modern Browsers */
url('fonts/roboto-v30-latin-regular.woff') format('woff'), /* Modern Browsers */
url('fonts/roboto-v30-latin-regular.ttf') format('truetype'), /* Safari, Android, iOS */
url('fonts/roboto-v30-latin-regular.svg#Roboto') format('svg'); /* Legacy iOS */
}
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We need to remove that too don't we ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✔️

server/server.js Show resolved Hide resolved
@holema holema requested a review from lovasoa September 13, 2022 21:23
@holema
Copy link
Contributor Author

holema commented Sep 19, 2022

Hello @lovasoa,

will you merge the PR in the future?

Best regards

@holema
Copy link
Contributor Author

holema commented Sep 30, 2022

Hello @lovasoa,
Will you merge the PR?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants