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

Remove gradient background #150

Merged
merged 8 commits into from
May 25, 2023

Conversation

martinRenou
Copy link
Member

No description provided.

@github-actions
Copy link
Contributor

Binder 👈 Launch a Binder on branch martinRenou/jupytercad/remove_gradient_background

@martinRenou
Copy link
Member Author

martinRenou commented May 25, 2023

Hey please update snapshots again

@martinRenou martinRenou reopened this May 25, 2023
@martinRenou martinRenou mentioned this pull request May 25, 2023
@martinRenou martinRenou force-pushed the remove_gradient_background branch from 8dee710 to 518d02d Compare May 25, 2023 11:12
Comment on lines 42 to 43
const DARK_BG_COLOR = 'linear-gradient(rgb(0, 0, 42), rgb(82, 87, 110))';
const LIGHT_BG_COLOR = 'radial-gradient(#efeded, #8f9091)';

const DEFAULT_MESH_COLOR = new THREE.Color('#434442');
const SELECTED_MESH_COLOR = new THREE.Color('#AB5118');
Copy link
Member

Choose a reason for hiding this comment

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

Could we make the mesh color a little bit brighter?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes I'm working on it 👍🏽

@martinRenou martinRenou force-pushed the remove_gradient_background branch from 518d02d to cba4898 Compare May 25, 2023 14:00
Comment on lines 42 to 44
const DEFAULT_MESH_COLOR = () => new THREE.Color(getCSSVariableColor('--jp-inverse-layout-color4'));
const DEFAULT_EDGE_COLOR = () => new THREE.Color(getCSSVariableColor('--jp-inverse-layout-color2'));
const SELECTED_MESH_COLOR = () => new THREE.Color(getCSSVariableColor('--jp-brand-color0'));
Copy link
Member Author

Choose a reason for hiding this comment

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

Not sure about these, it's probably too expensive to evaluate everytime we need colors. I'll change it to evaluate only when the theme changes.

@martinRenou martinRenou reopened this May 25, 2023
@martinRenou martinRenou requested a review from trungleduc May 25, 2023 16:14
@martinRenou
Copy link
Member Author

@trungleduc this is ready!

@trungleduc
Copy link
Member

Thanks!

@trungleduc trungleduc merged commit 0744599 into jupytercad:main May 25, 2023
@martinRenou martinRenou deleted the remove_gradient_background branch May 25, 2023 16:17
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.

2 participants