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
Collaborator

No description provided.

@github-actions
Copy link
Contributor

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

@martinRenou martinRenou added the enhancement New feature or request label May 25, 2023
@martinRenou
Copy link
Collaborator 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
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
Collaborator 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 👍🏽

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
Collaborator 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
Copy link
Collaborator Author

@trungleduc this is ready!

@trungleduc
Copy link
Member

Thanks!

@trungleduc trungleduc merged commit 0744599 into jupytercad:main May 25, 2023
6 checks passed
@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
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants