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
Support Dark Mode #449
Support Dark Mode #449
Conversation
671684b
to
1a4b684
Compare
microsoft/vscode#62414 |
這個Fix會使得native配色不能根據黑白模式自動調整,你來判斷要不要用吧 |
多謝。這是很重要的進展。 |
似乎NSwindow的外觀是白的話沒有任何邊框,為黑才有,border_color已經可以達到一樣的效果,似乎沒必要 |
原來如此。那麼如果今後想要實現native自動適應,只需要在上一筆提交的代碼裏排除native配色就可以了吧? |
是的,只要爲 _window.appearance = .aqua 加上條件即可 |
還有啥問題嗎? |
cool |
Universal App都支持了,為何3年前的Dark Mode還不支持? |
c2923e2
to
a8afe95
Compare
支持這個 PR,我在日常會使用自動模式來切換深色模式,輸入法沒辦法統一的話其實有點傷眼 |
setting both color_scheme and color_scheme_dark to "native" to enable auto switching native color if color_scheme_dark not set, will stay light mode user may set only one of color_scheme and color_scheme_dark to "native" while keeping the other a coded color scheme
setting both color_scheme and color_scheme_dark to "native" to enable auto switching native color if color_scheme_dark not set, will stay light mode user may set only one of color_scheme and color_scheme_dark to "native" while keeping the other a coded color scheme
setting both color_scheme and color_scheme_dark to "native" to enable auto switching native color if color_scheme_dark not set, will stay light mode user may set only one of color_scheme and color_scheme_dark to "native" while keeping the other a coded color scheme
setting both color_scheme and color_scheme_dark to "native" to enable auto switching native color if color_scheme_dark not set, will stay light mode user may set only one of color_scheme and color_scheme_dark to "native" while keeping the other a coded color scheme
…into dark_mode
This PR is too large and includes commits seemingly unrelated to the feature. It would be easier to review and merge if the branch only includes this single feature rather than everything since the introduction of the feature. |
This is because you didn't merge it promptly. It’s been 6 months, during which I have to rebase the code again and again |
Not necessarily if this was a stable feature branch. That is the point I wanted to convey. |
This branch only includes dark mode code, except for a1884c7 and 710a409 which optimize the gap between the first candidate and preedit area. These 2 last commits aren’t big enough to justify a seperate branch |
Looks good. Works perfectly when set both color schemes. |
I tested native scheme during developing this pull, should be working |
I already fixed the The only visible issue is with One possible solution is to get the correct color value for semantic colors used, for the target light/dark mode. |
I think we shouldn’t use blend color with semantic color, or if insist, the possible way is to wrap the output of blend color also a sementia color object |
It's almost impossible to get the perfect blended color for native color scheme, unless color is calculated in real time. I shall give them the same semantic grey color. Lose a bit of accent in the hightlighted label. But the overall contrast should be fine. |
Yeah, that sounds good enough |
This is built upon #448
Introduce a
SquirrelLayout
class to store all layout properties, this makes switching between dark and light modes easy, and ready for any future additions.