-
-
Notifications
You must be signed in to change notification settings - Fork 211
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
feat: add theme feature on Linux, closes #387 #468
Conversation
01b3441
to
ae69888
Compare
ae69888
to
0447edf
Compare
if let Some(theme) = theme_name { | ||
// Currently GTK doesn't provide feature for detect theme, so we need to check theme manually. | ||
// ref: https://github.com/WebKit/WebKit/blob/e44ffaa0d999a9807f76f1805943eea204cfdfbc/Source/WebKit/UIProcess/API/gtk/PageClientImpl.cpp#L587 | ||
if theme.ends_with("-dark") || theme.ends_with("-Dark") { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
probably should be
if theme.ends_with("-dark") || theme.ends_with("-Dark") { | |
if theme.contains("-dark") || theme.contains("-Dark") { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Darker ... I see. I will fix this issue.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@lucasfernog
I created the PR. Could you check it when you have time?
#511
What kind of change does this PR introduce?
Does this PR introduce a breaking change?
Checklist
fix: remove a typo, closes #___, #___
)Other information
Currently GTK does not support theme changed event...