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

Fix "Add Translation" formatted translation & raw strokes always using a white background color #1571

Merged

Conversation

DropDemBits
Copy link
Contributor

Summary of changes

Setting the stylesheet resets the palette colors to the system default. For the base color (which was used by the span for the formatted translation & raw stroke text), that'd mean that it'd be reset to #ffffff.

While setting the palette from the stylesheet could be done, it's much simpler to instead let the formatted text inherit the background color (i.e. removing the explicit setting of the background color).

Closes #1569

Pull Request Checklist

  • Changes have tests N/A, UI change
  • News fragment added in news.d. See documentation for details

Setting the stylesheet resets the palette colors to the system default.
For the base color, that'd mean that it'd be reset to `#ffffff`.

While setting the palette from the stylesheet could be done, it's much
simpler to instead let the formatted text inherit
the background color.
@DropDemBits DropDemBits force-pushed the add-translation-bkg-colors branch from dbfadc7 to 8175897 Compare November 12, 2022 08:19
@user202729
Copy link
Member

For reference the commit that adds that part was 9f1bdde. Seems there's no specific rationale for the background part in particular.

Side note, even with that removed the style is still hard coded i.e. not configurable with qss I think? Probably not a big issue either way

@sammdot sammdot merged commit e651627 into openstenoproject:master Jul 14, 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.

Some of the text in "Add Translation" doesn't use the style sheet's background color
3 participants