-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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 for macOS Mojave's dark mode #463
Comments
Love it. Small UI feedback: full white is harsh on dark backgrounds, try 80-90% opacity white. And the other key colors (red, green, etc.) probably need to be dulled a little too. |
I'm sorry, what white are you talking about? The only white I see is the app icon and the text. |
@saagarjha I was referring to the foreground text color, sorry should have specified! I think if you went 80% opacity on all the other colors, it would look nice, but haha super subjective. |
I'm using the standard system Regarding the opacity of the the other colors, I'm not quite sure what you mean. All the colors are 100% opaque, but I've toned down and darkened the colors for dark mode: Is this what you were asking? |
Yeah that looks good here, I'll try to test it too |
@saagarjha Great effort. Any plans to put up a PR? |
I don't think what I have currently is PR-ready; it's missing some things that I'm not really able to do, either due to lack of time or resources. If anyone wants to work on this, here's a short list of what I know my version is missing:
I've only really touched the features I use, so there may even be parts of the app that I haven't converted that I'm unaware of. Sorry about dropping it on you guys, but hopefully someone can polish up my fork? If anyone else is working on this, I'd be happy to provide minor feedback when requested. |
It looks stunning! Is the last commit here https://github.com/saagarjha/GitUp/tree/mojave @saagarjha ? We should work in that, would fit very well with Xcode 10 😃💪🏼🌚! |
Yeah, I've been continually amending the dark mode commit (currently at saagarjha@db45790, "Add dark mode support") as I find things that are broken/need updating. If you're interested in contributing, feel free to file issues or send in code! |
Any plans to get this into the next release? Looks stunning and currently |
I took this branch as a starting point and finished off dark mode suport in my fork. Really nice for evening coding. https://github.com/douglashill/GitUp/releases |
Ah, so I can download your release then. Nice! |
@douglashill Thanks! |
I think it's unlikely such a large change would be merged, so I have no plans to make a PR. |
I’ve recently taken over as a temporary GitUp maintainer and would love to start taking these changes back into mainline. @douglashill @saagarjha Do you have any interest in bringing these changes in? If anyone else has Dark Mode changes they would like to bring in, let’s get a PR going. |
Yes, I’m interested if you’re open to larger changes. Things are busy just after WWDC, so I can’t promise when I can get to this. The changes for dark mode have conflicts with other changes in my fork, such as adding support for changing the text size. |
Ya. If it’s possible to limit the Dark Mode changes to a single PR, separating out the text size changes, that would be ideal. I’m sure the Dark Mode changes are hefty and depending on how it looks, perhaps we want a way to toggle the preference. Happy to review a large change around dark mode though. |
I'd be willing to help out, but my changes have likewise diverged from master quite a bit as I've started treating my branch as a personal fork instead of something that would be merged in. @douglashill has probably put more thought than I have into dark mode, so his fork is probably the one you want to rely on more for this particular issue; I've taken GitUp in the direction of having proper vibrancy support (see #449, #450), which makes it somewhat difficult to support 10.10 or below–if you've changed the stance on backwards compatibility and are interested in merging something like this in, let me know! |
I'd love to see correct use of window materials in master. It'd be possible to support backwards compatibility with that approach. Scattering |
(Although IMHO there's very little point to maintaining a long tail of OS support for a developer tool besides academic exercise at this point.) |
This project uses Interface Builder, so I touched a bunch of xib files :/ Would your approach still work? |
It depends on what materials you're using.
|
But those just change the color to be vibrant, right? I need scroll content insets so that things can go under the titlebar and vibrant views. |
Ah right backwards compatibility is a good point. I dropped support for versions before Mojave in my fork, and I’m not interested in spending time making this work with older versions. If you want to require Mojave in the official GitUp I can make a PR. In any case of course there’s nothing stopping anyone taking my changes and making a PR. |
Considering we're almost on 10.15, I think supporting only back to 10.10 is reasonable (which was the introduction of vibrancy, correct?). @swisspol If you have strong feelings against bumping the min version supported, let us know. I feel strongly about supporting older versions of macOS as this isn't iOS where 80% plus are on current, but below 10.10 is really pushing back. On the flip side, I'm not sure vibrancy is a necessity to making this look good and perhaps could be opted in where desired using availability. |
We don't really know that without data. Picking one OS version is as arbitrary as picking any other version without data. I was under the impression that collecting that data was the intent behind including the large proprietary Google Analytics blob in the project, but anyway. Bumping to 10.9 allows using
"Vibrancy" in the context of modern macOS isn't just about pretty shiny things, it's about the system holistically managing contrast of overlapping windows and integration of the desktop tinting.
That's the idea, yes. I'll look into the existing forks and gauge the effort there. |
Yes, OS X 10.10 introduced vibrancy and scroll view content insets.
From general usage statistics that I found online, 10.9 and below accounts for about 5% of OS X users. This is not a large number, but it's not insignificant, either.
Google Analytics is not GPL-compatible AFAIK, so…
These are comparatively easy to polyfill, though: the background colors pre-macOS Mojave are solid colors, and the other vibrant colors are just the deprecated |
I don’t have any issues with increasing minimum version. It’s been a long
time since 10.10 has shipped and developers are by definition on latest OS
or almost.
Also fwiw there is no big Google Analytics blob. Just a single file I wrote
that talks directly to their APIs.
…On Tue, Jun 11, 2019 at 4:58 PM Saagar Jha ***@***.***> wrote:
Considering we're almost on 10.15, I think supporting only back to 10.10
is reasonable (which was the introduction of vibrancy, correct?).
Yes, OS X 10.10 introduced vibrancy and scroll view content insets.
I feel strongly about supporting older versions of macOS as this isn't iOS
where 80% plus are on current, but below 10.10 is really pushing back.
From general usage statistics that I found online, 10.9 and below accounts
for about 5% of OS X users. This is not a large number, but it's not
insignificant, either.
I was under the impression that collecting that data was the intent behind
including the large proprietary Google Analytics blob in the project, but
anyway.
Google Analytics is not GPL-compatible AFAIK, so…
Bumping to 10.9 allows using NSAppearance unguarded, so that's pretty
important. You're also correct that 10.10 brought NSVisualEffectView, but
the materials we'd probably be using didn't come until 10.14, so that will
require visibility checking anyway.
These are comparatively easy to polyfill, though: the background colors
pre-macOS Mojave are solid colors, and the other vibrant colors are just
the deprecated light/dark ones.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#463?email_source=notifications&email_token=AAEZJS256CJEVSVSBF4RMODP2A323A5CNFSM4FEPW6A2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODXO26DA#issuecomment-501067532>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAEZJS3Q4237E3MLGNW7WUTP2A323ANCNFSM4FEPW6AQ>
.
|
BTW looking at the code for the GA tracker I wrote, it doesn't gather any user / machine info outside of app version: This means we don't have stats on % of users on macOS versions. |
OK, I was able to backport @douglashill’s color work without bumping the target and without too much craziness. I hope I’ll be able to get that up in PR today or tomorrow. From there, I want to start trying to figure getting in @saagarjha’s newer visual effect view work too. |
Closing this issue as it's now been integrated into master. |
I thought I'd create an issue to track dark mode support on macOS Mojave. I have a branch set up that has some preliminary support (it also has what I think is a slightly nicer fix for #459, and some other improvements). Here's what it looks like currently:
Is there anyone else working on this?
The text was updated successfully, but these errors were encountered: