Skip to content

Conversation

@raghunayyar
Copy link
Member

Should ideally fix #649, but the icons are coming as white for me, though I have changed the fills of all the icons. Can someone cross check if it is working fine for them?

@jancborchardt I am not using #000 but #404040 which is the exact colour when you hover the icons in the app navigation. #000 cause a lot of contrast. :-)

Btw this is my first PR to NC ;-)

@mention-bot
Copy link

@raghunayyar, thanks for your PR! By analyzing the annotation information on this pull request, we identified @DeepDiver1975, @jancborchardt and @MorrisJobke to be potential reviewers

@raghunayyar raghunayyar force-pushed the feature/similar-app-colors branch from 9a6b486 to bc74239 Compare August 10, 2016 18:08
@raghunayyar raghunayyar added enhancement design Design, UI, UX, etc. 3. to review Waiting for reviews labels Aug 10, 2016
@juliusknorr
Copy link
Member

@raghunayyar Thank you very much for your contribution.

I think simply replacing the colors inside the SVGs will not work, as this would mean we need to do so in every app (also 3rd party ones). That means we'll lose compatibility to existing OwnCloud apps. See #649 (comment)

@nextcloud/designers @jancborchardt what do you think?

@Bugsbane
Copy link
Member

Personally, I would prefer to take a hybrid approach. For example, elsewhere it was previously suggested that we add an entry to the app info, specifically to point to a nextcloud specific app icon. OwnCloud simply wouldn't recognize this and would skip it. So we could look for a (dark) Nextcloud icon being set, and then if we didn't find it, fall back to taking the ownCloud one and run an SVG matrix filter over it like:

<feColorMatrix in="SourceGraphic" type="matrix" values="-1 0 0 0 1 
                                                        0 -1 0 0 1 
                                                        0 0 -1 0 1
                                                        0 0 0 1 0"/>

...to invert it. The only thing I'm not sure about is if there is sufficient cross browser support.

@raghunayyar raghunayyar force-pushed the feature/similar-app-colors branch from bc74239 to c489cd4 Compare August 11, 2016 07:30
@raghunayyar
Copy link
Member Author

I have updated the PR and re-implemented it with svg filters, though I am not liking it visually. Black on white (100% inversion) is creating way too much contrast. I would like @jancborchardt / @nextcloud/designers to take the call. Here is a screenshot:
screen shot 2016-08-11 at 1 01 32 pm

@MorrisJobke
Copy link
Member

Black on white (100% inversion) is creating way too much contrast.

Then simply add a opacity of 60% to it via CSS 🙈 😉

@MorrisJobke
Copy link
Member

bildschirmfoto 2016-08-11 um 10 46 10

@MorrisJobke MorrisJobke added this to the Nextcloud 11.0 milestone Aug 11, 2016
@raghunayyar
Copy link
Member Author

@MorrisJobke done. All yours. ;)

@juliusknorr
Copy link
Member

@raghunayyar Looks good so far, just one more thing: For app list coming from the app store, there is a preview of the apps shown. We need to make sure, that this previews don't get inverted like the icons.

2016-08-11-125607_354x173_scrot

@raghunayyar raghunayyar added 2. developing Work in progress and removed 3. to review Waiting for reviews labels Aug 11, 2016
@jancborchardt
Copy link
Member

Great progress here! Looks good except for the issue @juliushaertl already noted. :)

@raghunayyar
Copy link
Member Author

Will fix this one today.

@raghunayyar
Copy link
Member Author

Fixed, can we review this. :)

@raghunayyar raghunayyar added 3. to review Waiting for reviews and removed 2. developing Work in progress labels Aug 14, 2016
@juliusknorr
Copy link
Member

looks good now 👍

cc @nextcloud/designers for another reviewer

@MariusBluem
Copy link
Member

👍

@MariusBluem MariusBluem merged commit c994524 into master Aug 16, 2016
@MariusBluem MariusBluem deleted the feature/similar-app-colors branch August 16, 2016 09:07
@MariusBluem
Copy link
Member

We want to have this in stable10 right? @karlitschek

@karlitschek
Copy link
Member

nice. please backport

@Bugsbane
Copy link
Member

BTW Congrats on your first PR @raghunayyar !

@MorrisJobke
Copy link
Member

I will create the backport PR :)

BTW Congrats on your first PR @raghunayyar !

Yes! 🎉

@MariusBluem
Copy link
Member

MariusBluem commented Aug 17, 2016

Whoops... Forgotten to backport 😁 Sorry and THX @MorrisJobke 😅

img += '<image x="0" y="0" width="72" height="72" preserveAspectRatio="xMinYMin meet" xlink:href="' + url + '" class="app-icon" /></svg>';
} else {
img += '<defs><filter id="invert"><feColorMatrix in="SourceGraphic" type="matrix" values="-1 0 0 0 1 0 -1 0 0 1 0 0 -1 0 1 0 0 0 1 0" /></filter></defs>';
img += '<image x="0" y="0" width="72" height="72" preserveAspectRatio="xMinYMin meet" filter="url(#invert)" xlink:href="' + url + '" class="app-icon" /></svg>';
Copy link
Member

Choose a reason for hiding this comment

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

https://developer.mozilla.org/en-US/docs/Web/HTML/Element/image cough cough ... this breaks the app managment in all browsers except chrome (where it only works by luck). I will revert it and we better load the SVG directly into the DOM which is even supported in IE9 and makes CSS styling easier too.

Copy link
Member

Choose a reason for hiding this comment

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

Ah just noticed that this is wrapped inside an SVG ... then I will try to fix this.

Copy link
Member

Choose a reason for hiding this comment

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

@MorrisJobke
Copy link
Member

Regression: #900

GitHubUser4234 pushed a commit to GitHubUser4234/server that referenced this pull request Aug 30, 2016
…olors

Use darker colors for app icons in app management.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3. to review Waiting for reviews design Design, UI, UX, etc. enhancement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Use dark icons for app management

9 participants