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

dark mode: Style link colors in both dark and light modes in polymer plugins. #5318

Merged
merged 1 commit into from
Sep 20, 2021

Conversation

bmd3k
Copy link
Contributor

@bmd3k bmd3k commented Sep 17, 2021

  • Motivation for features / changes

    As reported in Links are unreadable in the dark theme #5309, links in some error messages in dark mode are difficult to see. It turns out this is potentially a more general problem: there is no attempt to style any links for dark or light mode in the polymer part of the code base.

  • Technical description of changes

  1. Mirroring definitions for the Angular part of the code base we add --tb-link and --tb-link-visited definitions in tensorboard-color.ts.

    The corresponding Angular definitions can be found in:
    https://cs.opensource.google/tensorflow/tensorboard/+/master:tensorboard/webapp/theme/_tb_theme.template.scss

  2. We use --tb-link and --tb-link-visited in dashboard-style.ts, applying the styling for most dashboards.

  3. We use --tb-link and --tb-link-visited in the graphs and hparams dashboards, since they do not import styles from dashboard-style.ts.

  • Screenshots of UI changes
    Dark Mode Sample:
    image
    Light Mode Sample:
    image

@bmd3k bmd3k marked this pull request as ready for review September 17, 2021 20:51
@bmd3k bmd3k merged commit 9ed10e9 into tensorflow:master Sep 20, 2021
@bmd3k bmd3k deleted the dark-mode-errors branch January 5, 2022 20:48
yatbear pushed a commit to yatbear/tensorboard that referenced this pull request Mar 27, 2023
…plugins. (tensorflow#5318)

As reported in tensorflow#5309, links in some error messages in dark mode are difficult to see. It turns out this is potentially a more general problem: there is no attempt to style any links for dark or light mode in the polymer part of the code base.

Mirroring definitions for the Angular part of the code base we add --tb-link and --tb-link-visited definitions in tensorboard-color.ts.

The corresponding Angular definitions can be found in:
https://cs.opensource.google/tensorflow/tensorboard/+/master:tensorboard/webapp/theme/_tb_theme.template.scss

We use --tb-link and --tb-link-visited in dashboard-style.ts, applying the styling for most dashboards.

We use --tb-link and --tb-link-visited in the graphs and hparams dashboards, since they do not import styles from dashboard-style.ts.
dna2github pushed a commit to dna2fork/tensorboard that referenced this pull request May 1, 2023
…plugins. (tensorflow#5318)

As reported in tensorflow#5309, links in some error messages in dark mode are difficult to see. It turns out this is potentially a more general problem: there is no attempt to style any links for dark or light mode in the polymer part of the code base.

Mirroring definitions for the Angular part of the code base we add --tb-link and --tb-link-visited definitions in tensorboard-color.ts.

The corresponding Angular definitions can be found in:
https://cs.opensource.google/tensorflow/tensorboard/+/master:tensorboard/webapp/theme/_tb_theme.template.scss

We use --tb-link and --tb-link-visited in dashboard-style.ts, applying the styling for most dashboards.

We use --tb-link and --tb-link-visited in the graphs and hparams dashboards, since they do not import styles from dashboard-style.ts.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants