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

[OS X] Yosemite "Dark Mode" menubar icon stays black on dark background #2215

Closed
StrangeNoises opened this issue Sep 16, 2014 · 19 comments
Closed
Assignees

Comments

@StrangeNoises
Copy link

OSX Yosemite has a "dark mode" for the user interface, in which the menubar background goes from light grey to dark grey and the text and most menubar app icons are white.

Owncloud with monochrome icons selected doesn't adapt to this. The icon stays very dark grey, rendering it almost invisible on the dark background.

(Obviously no background-colour awareness either when colour icons selected, but at least visibility isn't an issue then.)

Desired behaviour: Awareness of the configured foreground and background colours in the menubar in Yosemite, and changing the colour or inverting the palette of the monochrome icon to match. FWIW the newest Viscosity (1.5.1) does invert the palette as you'd expect when using its new default icons, so it's not just Apple's own components that know how and when to do it. :)

I tried restarting it, in case it only picks up the colours on startup, but it didn't help. (In fact, upgraded belatedly from 1.6.2 to 1.6.3 - that didn't help either.)

Screenshot shows the problem. You're in good company of course, if you check out the icon of the app next to the Owncloud one. ;-)

screen shot 2014-09-16 at 23 23 22

I assure you the owncloud icon is there, in the middle, a very slightly lighter grey than its background.

@dragotin
Copy link
Contributor

@jancborchardt , @danimo what can we do?

@jancborchardt
Copy link
Member

Design-wise, when OS X is in dark mode (or the background is darker than 50% grey), the monochrome icon should switch from dark to light. The icons are already there.

This is a very similar issue to what already happens on existing OS X versions when clicking on the icon to expand the tray menu: #1730

Not sure if we/Qt can sense that though. Would certainly be good to have proper compatibility with the new OS X, and also make the icon look good when the menu is expanded.

@danimo
Copy link
Contributor

danimo commented Sep 22, 2014

@guruz There is no API for dark mode afaics.The icon is expected to be automatically convertible. This makes it a Qt issue.

@mrflix
Copy link

mrflix commented Oct 22, 2014

These are ways how to detect it in Objectiv-C if that helps: if its an image template mode should be used: http://indiestack.com/2014/10/yosemites-dark-mode/ and here how to detect dark mode: http://stackoverflow.com/questions/25379525/how-to-detect-dark-mode-in-yosemite-to-change-the-status-bar-menu-icon

@ventolin
Copy link

If it's too difficult to detect, perhaps we could get a checkbox in the preferences next to the other one, "Use Dark Mode Monochrome Icons" or something like that?

@johannesjh
Copy link

Technically, I found that Apple recommends to create this effect (of different icon colors depending on menubar color) using so-called "template images" - whatever that is.

Compare Apple's Human Interface Guidelines:

Use a template image to represent a menu bar extra. In General system preferences, users can change the menu bar (and Dock) to a dark appearance. If you don’t use a template image to represent your menu bar extras, they might not look good in both menu bar appearances.

Note:
Maybe these "template images" also fix the problem that the current owncloud icon is too dark (full black instead of approximately #454545) if shown in a bright menubar. See how the owncloud icon is darker than all others in the following screenshot:

screenshot

@Razer0123
Copy link

Any news on that? i would be glad to help if i can

@petercampanelli
Copy link

@johannesjh Is correct. The icon needs to be set as a template. This blog post may help.

@iamso
Copy link

iamso commented Jan 10, 2015

I'm using dark mode on OS X 10.10 and I'm always having trouble finding the icon in the menubar. Would really be nice to have the white icon. As mentioned above owncloud isn't the only app still having this issue. How soon can we expect this to be fixed?

svkurowski added a commit that referenced this issue Feb 5, 2015
#2215

As of version 10.10 Yosemite, Mac OS X offers the user the option to use
a dark version of the dock and menu bar. The systray icon was black even
on the dark menu bar, thus rendering it nearly impossible to spot.
@leipert
Copy link

leipert commented Feb 28, 2015

Corresponding qt bug report here:
https://bugreports.qt.io/browse/QTBUG-42109

@AlexanderWillner
Copy link

Seems that the corresponding change in QT has been merged in July 2015: https://codereview.qt-project.org/#/c/115120/

@chesterdkat
Copy link

Just checked with Version 2.0.2rc1 (build 2790) and this bug is still present...

THANK YOU!

@guruz
Copy link
Contributor

guruz commented Oct 19, 2015

@AlexanderWillner thanks for digging this patch out.. we will need to modify our ownCloud-Qt for OS X

@dragotin @danimo

@StrangeNoises
Copy link
Author

confused now because I thought this had been fixed. Is for me anyway in 2.0.1 release. Is it a regression in 2.0.2 builds?

screen shot 2015-10-19 at 10 58 43

It does sometimes go completely invisible until prodded in some way, but only on my multi-monitor setup, that I've seen, and it's pretty rare it does that now.

edit: Looks like my "does sometimes go completely invisible" issue is #3918. Yes I get that occasionally, but is different issue from this one surely, unless the one has caused the other.

@svkurowski
Copy link
Contributor

I fixed this in [https://github.com//pull/2393](this pull request), which got merged. However my solution did not use OSX's template images because the functionality was not available in Qt. According to https://bugreports.qt.io/browse/QTBUG-42109, it is now available. At the moment I don't have the time to work on this, maybe someone else is interested in making the tray icons use template images on OSX?

@StrangeNoises
Copy link
Author

ah right, the difference between a fix-for-now and a proper fix. ;-)

@guruz guruz changed the title Mac OSX Yosemite "Dark Mode" menubar icon stays black on dark background [OS X] Yosemite "Dark Mode" menubar icon stays black on dark background Nov 3, 2015
@guruz guruz modified the milestones: 2.1.1-nextpatch, 2.1-current Nov 30, 2015
@guruz guruz modified the milestones: 2.2-next, 2.1.1-current Jan 13, 2016
@guruz guruz removed this from the 2.2.0-current milestone Feb 23, 2016
@guruz
Copy link
Contributor

guruz commented Apr 14, 2016

Tested with Qt 5.6, it works properly there. Now we just need to switch the OS X builds to Qt 5.6 -> #3449

@guruz guruz added the ReadyToTest QA, please validate the fix/enhancement label Apr 14, 2016
@StrangeNoises
Copy link
Author

It's looked fine for me for some time. Thought there was just some desire to do it a more 'proper' way or something! 😀

Sent from my iPhone

On 26 Apr 2016, at 09:05, Miguel Castro notifications@github.com wrote:

@StrangeNoises may you test again ¿? In case it fails please repone


You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub

@chesterdkat
Copy link

Fixed for me for at least several weeks or more. THANKS!

On Apr 26, 2016, at 04:20, Rachel Greenham notifications@github.com wrote:

It's looked fine for me for some time. Thought there was just some desire to do it a more 'proper' way or something! 😀

Sent from my iPhone

On 26 Apr 2016, at 09:05, Miguel Castro notifications@github.com wrote:

@StrangeNoises may you test again ¿? In case it fails please repone


You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub


You are receiving this because you commented.
Reply to this email directly or view it on GitHub

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests