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

Added dark theme from ColinDuquesnoy. Also fixed a warning #285

Closed
wants to merge 2 commits into from

Conversation

milasudril
Copy link

A dark theme is preferred in a "Live environment" since you do not want your face look like a ghost. This fix needs to be polished, so the dark theme is optional. But it demonstrates how it can be fixed.

@leplatrem
Copy link
Collaborator

Awesome ! Thanks !

if (!f.exists()) {
printf("Unable to set stylesheet, file not found\n");
}
else {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Don't you think we should make it a preference ?

As far as I understand this overrides the default theme of the operating system. I suspect that some users have dark theme defined at the Windows/Linux level, and it would be nice if we could avoid to enforce it.

@milasudril
Copy link
Author

Yes it should be optional [Read a configuration option]. Also the background of the tablewidget is not affected by this change, since it gets the color from the app palette. The latest push to my fork "fixes" this. Why that png? It was in the QDarkStyleSheet repo https://github.com/ColinDuquesnoy/QDarkStyleSheet.

Why no more work before the pull request? I needed the feature within one day delay so I did a quick-and-dirty fix. Also I thought it could be good to share the change for further development

@leplatrem
Copy link
Collaborator

I like the idea, let's see if I can improve it a bit. Here is what it looks like on my machine:

capture d ecran de 2016-10-27 00-34-06

@milasudril
Copy link
Author

milasudril commented Oct 28, 2016

You need to improve line 5-9. Also I think the selected background should be slightly darker

@leplatrem
Copy link
Collaborator

Closing in favor of #299 ;)

@leplatrem leplatrem closed this Mar 17, 2020
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.

None yet

2 participants