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

Color harmony #619

Merged
merged 9 commits into from
Jul 21, 2022
Merged

Color harmony #619

merged 9 commits into from
Jul 21, 2022

Conversation

willmcgugan
Copy link
Collaborator

@willmcgugan willmcgugan commented Jul 20, 2022

This was a tweak to the color system, and fixes for bugs I encountered along the way.

I removed the "system" color for scrollbars, replacing it with the "primary" color. I tinted the scroll track and the "panel" color with the primary color which I think creates a more harmonious look.

I've also separated the light and dark themes in to individual objects, to make it easier to load from configuration.

  • Fixed the issue with portions of the screen not updating until you move the mouse over them
  • Added a nice traceback for missing variables (used the new feature in Rich to highlight spans in Syntax which we should roll in to other Textual errors)

Screenshot 2022-07-21 at 07 30 48

Screenshot 2022-07-21 at 07 30 53

Screenshot 2022-07-20 at 17 00 31

@willmcgugan willmcgugan marked this pull request as draft July 20, 2022 15:17
system="#5a4599",
dark_surface="#292929",
)
DEFAULT_COLORS = {
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This structure probably isn't going to survive very long. The colors will eventually be set via the configuration system.

@willmcgugan willmcgugan marked this pull request as ready for review July 21, 2022 06:48
@willmcgugan willmcgugan requested a review from darrenburns July 21, 2022 06:48
@willmcgugan willmcgugan merged commit 6be8fb3 into css Jul 21, 2022
@willmcgugan willmcgugan deleted the color-harmony branch July 21, 2022 12:11
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