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

Light dark mode graph: When switching appearance mode in View Menu, Graph will change color #15

Closed
wants to merge 4 commits into from

Conversation

Kobsel
Copy link
Contributor

@Kobsel Kobsel commented Nov 30, 2024

Summary

When switching appearance mode in the View Menu, the Graph will change color. "System" Appearance mode is still being developed.


PR checklist

  • I have written tests that fail without my changes. Or I did not add them on purpose.
  • I have included instructions on how to test this, assuming they are not already apparent from the linked issue.

Depends on

Closes/Fixes/Related to

@Benedikt-Brunner Benedikt-Brunner changed the base branch from main to gui/feature/add-buttons November 30, 2024 17:02
@Benedikt-Brunner Benedikt-Brunner self-requested a review November 30, 2024 18:08
@Benedikt-Brunner Benedikt-Brunner added the GUI Related to the "gui" module label Nov 30, 2024
Copy link
Collaborator

@Benedikt-Brunner Benedikt-Brunner left a comment

Choose a reason for hiding this comment

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

Had a look at the UI, i like it 👍
I didn't have much to say here, just some left over print statements.

These changes should be moved to the Graph Widget after it gets separated in the base PR.

Also @julius-kress needs to approve the layouting changes, as i don't have the expertise to comment on that.

if appearance == "system":
main_color = "#151515"
secondary_color = "#ffffff"
print("Fall1")
Copy link
Collaborator

Choose a reason for hiding this comment

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

These print statements should probably be removed

def plot(value: int, window: GUIApp) -> Canvas:
def plot(value: int, window: GUIApp, appearance: str) -> Canvas:

print(appearance)
Copy link
Collaborator

Choose a reason for hiding this comment

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

remove this aswell

@@ -80,6 +80,8 @@ def __init__(self) -> None:
# Initialize information area
self._init_information_area()

self.appearance_mode.trace_add("write", self.update_plot)
Copy link
Collaborator

Choose a reason for hiding this comment

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

cool

Kobsel added 2 commits December 2, 2024 01:07
Before. only appearance modes "light" and "dark" would have an effect
on graph design. But now appearance mode "system" also, properly
works in changing the Graph to the users prefered system theme.
@julius-kress
Copy link
Contributor

Had a look at the UI, i like it 👍 I didn't have much to say here, just some left over print statements.

These changes should be moved to the Graph Widget after it gets separated in the base PR.

Also @julius-kress needs to approve the layouting changes, as i don't have the expertise to comment on that.

Yeah I like the changes as well. Darkmode on the graph makes the GUI look much cleaner. The current graph is still a mockup, but I think we can use this when implementing the actual graph 👍

@Kobsel Kobsel mentioned this pull request Dec 2, 2024
3 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
GUI Related to the "gui" module
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

3 participants