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

Loading / Error centering #1

Merged
merged 2 commits into from
Jul 3, 2020
Merged

Loading / Error centering #1

merged 2 commits into from
Jul 3, 2020

Conversation

mturoci
Copy link
Collaborator

@mturoci mturoci commented Jul 1, 2020

  • Color themes for light, dark and neon theme.
  • Plot line colors use primary text color instead of static grey.
  • App loading state TODO resolved - FluentUI Spinner component centered both horizontally and vertically in its parent.

Notes: The neon primary color was taken from DAI project, primary colors for the rest themes were chosen randomly and can be changed if we agree otherwise.

@mturoci mturoci requested a review from lo5 as a code owner July 1, 2020 08:36
Copy link
Member

@lo5 lo5 left a comment

Choose a reason for hiding this comment

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

Thanks @mturoci. The theming part is not high priority. We need a good design for it because we want to provide the ability to access the theme colors from Python. Two major blockers to theming in its current state:

  1. Some apps like q-insights, etc. hard-code span colors for text blurbs - those will be unreadable in dark themes.
  2. Vega, Bokeh, Plotly, Matplotlib plots in their current state will look off.
  3. The native plots don't support theming yet.

It would be good to postpone this decision, and maybe just merge the eroor/loading centering.

ui/src/theme.ts Outdated
theme = { font, colors, merge, }
return theme
},
getTheme = (): Theme => theme ? theme : loadTheme('light')
getTheme = (): Theme => theme ? theme : setTheme('dark')
Copy link
Member

Choose a reason for hiding this comment

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

Let's default to the light theme until we've worked out how to theme the plots, vega-lite, etc.

ui/src/theme.ts Outdated
card: '#0d0e0f',
page: '#1b1d1f',
}, 0),
palettes: Dict<ColorTheme> = {
Copy link
Member

Choose a reason for hiding this comment

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

This turns into palettes[x].palette at call sites. We need a good design to merge palette and theme.

@mturoci mturoci requested a review from lo5 July 2, 2020 06:37
@mturoci
Copy link
Collaborator Author

mturoci commented Jul 2, 2020

Thanks for the review @lo5. I agree with postponing the decision so I reverted theming changes for now and kept just Loading / Error centering.

@mturoci mturoci changed the title feat: Theming colors Loading / Error centering Jul 3, 2020
Copy link
Member

@lo5 lo5 left a comment

Choose a reason for hiding this comment

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

Thanks @mturoci!

@lo5 lo5 merged commit c718153 into master Jul 3, 2020
@lo5 lo5 deleted the feat/theming branch July 3, 2020 22:17
mturoci added a commit to tolmanam/wave that referenced this pull request Feb 3, 2023
mturoci added a commit that referenced this pull request Sep 19, 2023
mturoci added a commit that referenced this pull request Oct 6, 2023
mturoci added a commit that referenced this pull request Oct 9, 2023
mturoci added a commit that referenced this pull request Oct 9, 2023
mturoci added a commit that referenced this pull request Oct 9, 2023
mturoci added a commit that referenced this pull request Oct 9, 2023
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