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

New colors set and css fixes #503

Merged
merged 2 commits into from
May 12, 2016
Merged

New colors set and css fixes #503

merged 2 commits into from
May 12, 2016

Conversation

skjnldsv
Copy link
Contributor

@skjnldsv skjnldsv commented May 5, 2016

This pr make the calendar app use the core colour generator to get an unified palette.

@jancborchardt
ref #344
capture d ecran_2016-05-05_12-05-41

@mention-bot
Copy link

By analyzing the blame information on this pull request, we identified @raghunayyar, @jancborchardt and @tomneedham to be potential reviewers

// expected lightness range: [0, 1]
var hslToRgb = function(hue, saturation, lightness){
// based on algorithm from http://en.wikipedia.org/wiki/HSL_and_HSV#Converting_to_RGB
if( hue == undefined ){
Copy link
Contributor

Choose a reason for hiding this comment

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

please use tabs instead of spaces :)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Damn copy/paste :p

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Wait a minute, the entire project uses space and not tabs, should I change the whole file @georgehrke ?

Copy link
Contributor

Choose a reason for hiding this comment

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

yes, please change the entire file

@jancborchardt
Copy link
Member

I'm a bitnon the femce about the colors – the green looks too garish and the orange too flat. … but yeah they should come from the core generator.

Any way to shift that orange and green a bit to make it a tad nicer?

cc @georgehrke @raghunayyar @owncloud/designers check it out.

@skjnldsv
Copy link
Contributor Author

skjnldsv commented May 5, 2016

We could also just add a colorwheel and remove the 9 colours ? :D

@raghunayyar
Copy link
Member

@jancborchardt @skjnldsv just a suggestion, we can use HSLA colours and keep the saturation intact and change hue. The colors generated will probably will be on the same palette? What do you guys think? I think it works otherwise just the colours look too dull.

@georgehrke
Copy link
Contributor

@raghunayyar We need to store RGB in the CalDAV property

@skjnldsv
Copy link
Contributor Author

@raghunayyar we're already doing that in core.
We're using HSL and only changing the hue.

@raghunayyar
Copy link
Member

@raghunayyar We need to store RGB in the CalDAV property

Can't we convert the HSLA to RGB in that case, when we are storing the colorcode?

@skjnldsv
Copy link
Contributor Author

@raghunayyar have you read this pull request??

@raghunayyar
Copy link
Member

@skjnldsv Lol, I am so sorry. Just reviewed the PR. I got quite emotional earlier seeing the colors being too light. Otherwise 👍

@skjnldsv
Copy link
Contributor Author

Ahaha, no problem! :p
I was wondering if you didn't had the wrong pr! ^^

The colors being too light comes from the core generator then. But now that you said that, I maybe had forgotten to update the s&l values based on the luminosity. I need to take a look!

@skjnldsv
Copy link
Contributor Author

skjnldsv commented May 10, 2016

Here we go. Rebased and ready to be merged.
I'm now using hardcoded values to generate the full hsl values, which I previously wasn't doing and therefore was ignoring the luminosity correction from core.

Now we're all set and ready to go!
capture d ecran_2016-05-10_17-48-27

If we want to shift the colors, we can also do that :)

@skjnldsv
Copy link
Contributor Author

skjnldsv commented May 10, 2016

Shifting:
00: calendar owncloud0
10: calendar owncloud1
20: calendar owncloud2
30: calendar owncloud3

@jancborchardt

@raghunayyar
Copy link
Member

👍

@skjnldsv
Copy link
Contributor Author

Which one do you prefer? :)

@georgehrke
Copy link
Contributor

I'd go with 00

@aspdye
Copy link

aspdye commented May 10, 2016

I am missing a "real" blue and some other natural, but i think this is nothing we can change here 😢
I'd also vote for 00.

@MorrisJobke
Copy link
Contributor

I am missing a "real" blue and some other natural, but i think this is nothing we can change here

Why not. This sounds reasonable. :) @skjnldsv is this somehow possible to accomplish?

@skjnldsv
Copy link
Contributor Author

skjnldsv commented May 11, 2016

You know what, here's what I'm proposing :)
We've got a better blue, and some good and various colours!
capture d ecran_2016-05-11_10-14-25

@aspdye

@MorrisJobke
Copy link
Contributor

We've got a better blue, and some good and various colours!

I really like it :)

@skjnldsv
Copy link
Contributor Author

And here's a gift:
sans titre

@georgehrke
Copy link
Contributor

Using chromium 52:

calendar - owncloud chromium today at 12 30 49 pm

The colors are smaller (why?)
For some reason it shows a different icon for random, also clicking it does nothing

@skjnldsv
Copy link
Contributor Author

skjnldsv commented May 11, 2016

Hum, I may have pushed the wrong folder! :p
I'm going to fix this when I get home ^^

The colors are smaller (why?)

Because there is a 10th element added to the list, so it has to take the full width.

This pr makes the spinner in front of the calendar name huge

See: #509, this is not related to this pr. I didn't changed anything related to the loader here.

EDIT: @georgehrke, I cheated, I did it from work! Could you check? :3

@skjnldsv skjnldsv force-pushed the new-colors-set branch 3 times, most recently from 809f530 to 341f102 Compare May 11, 2016 13:20
- Update css for colour palette
- Fixed tabs
- Use core generator with specific values
@skjnldsv
Copy link
Contributor Author

Hum, should I edit js/public/app.js too?
Or is this file generated like the contacts app? I find it strange to have the same functions on two separate location :)

@georgehrke
Copy link
Contributor

You have to build the app.js with grunt build inside js/

Please excuse my brevity and typos.
Sent from my mobile

On May 11, 2016, at 8:13 PM, John Molakvoæ [email protected] wrote:

Hum, should I edit js/public/app.js too?
Or is this file generated like the contacts app? I find it strange to have the same functions on two separate location :)


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

@skjnldsv
Copy link
Contributor Author

@georgehrke Peeeerfect! That's why this wasn't working for you :)
I was assuming the file would be compiled like owncloud/contacts.

Thank you!

@georgehrke
Copy link
Contributor

How did you develop it without changing the app.js? ^^

Please excuse my brevity and typos.
Sent from my mobile

On May 11, 2016, at 8:27 PM, John Molakvoæ [email protected] wrote:

@georgehrke Peeeerfect! That's why this wasn't working for you :)
I was assuming the file would be compiled like owncloud/contacts.

Thank you!


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

@skjnldsv
Copy link
Contributor Author

@georgehrke I compiled in my head! :D
Just kidding, I manually edited the app.js because the makefile isn't compatible with my dev env.

@skjnldsv
Copy link
Contributor Author

@georgehrke
Copy link
Contributor

👍

@georgehrke
Copy link
Contributor

really like it! :)

@georgehrke georgehrke merged commit 918df13 into master May 12, 2016
@georgehrke georgehrke deleted the new-colors-set branch May 12, 2016 16:59
@skjnldsv
Copy link
Contributor Author

Thanks! :)

@enoch85
Copy link
Member

enoch85 commented May 13, 2016

Nice work @skjnldsv 👍

@georgehrke
Copy link
Contributor

rgbToHex is pretty broken 🙈
rgbToHex(0,100,0) gives me #0640

will fix it in #543

@skjnldsv
Copy link
Contributor Author

@georgehrke is it due to a missing str_pad?
Don't recall the js function, but it may be due to the 0 converted to integers! :)

@jancborchardt
Copy link
Member

Btw again @skjnldsv really good work! :)

@skjnldsv
Copy link
Contributor Author

skjnldsv commented Jun 8, 2016

Thank you jan! :)

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

Successfully merging this pull request may close these issues.

8 participants