Closed (fixed)
Project:
FullCalendar
Version:
7.x-2.x-dev
Component:
FullCalendar Colors
Priority:
Major
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
17 Apr 2011 at 21:03 UTC
Updated:
7 May 2011 at 04:31 UTC
Jump to comment: Most recent file
Comments
Comment #1
geerlingguy commentedOh hai!
Sorry I've been negligent over here. Past few weeks I've been working on a major transition with my employment... meaning my Drupal contrib time has gone from full steam ahead to full stop. But that will be changing in a week or two :-)
This is the first patch I've seen in an issue queue since the great Git migration... what's the best way to proceed in merging it (or is this already put into the main FullCalendar project?)?.
Comment #2
geerlingguy commentedCommited: http://drupalcode.org/sandbox/geerlingguy/1102994.git/commit/51e611e
Comment #3
tim.plunkettThere was a bunch of cruft in that patch, this should fix it.
Comment #4
geerlingguy commentedCool. Will commit once I'm off this work computer, which blocks git (grr...).
The moral of this story is: if you want something done, get aspilicious and tim.plunkett involved. Major kudos to you guys!
Comment #5
aspilicious commentedWAIT...
I have a patch rdy with these fixes + taxonomy color integration rdy.
I couldn't manage to split those up.
So it would be nice if someone can give this a review.
Comment #6
tim.plunkettOkay aspilicious and I worked this out on IRC a bit.
My patch #3 goes in first, and this one follows it up. Credit aspilicious on the second one, they're separate.
Comment #7
geerlingguy commentedSounds good! I'll try to get to this early in the afternoon...
Comment #8
aspilicious commentedA new patch, fixed some stuff. And made some changes after some irc talking.
Still: First apply 3 than this one
Comment #9
geerlingguy commented@aspilicious / #8 - Can't apply that patch, for some reason, after having applied #3 patch (which is now in the repository, if you want to update code from that, and reapply the patch):
Or... is there some other way I should be applying this patch?
Comment #10
aspilicious commentedThis should do it.
And I sneaked user role coloring into this :)
Comment #11
aspilicious commentedComment #12
geerlingguy commentedI've applied the patch, and it seems to do most everything well.
One question: It seems that the class to be added for an 'article' would be "node-type-article", but in my outputted HTML, I'm getting the class "article" instead. I cleared caches on the performance page.Just realized I'm still running alpha-3 of FullCalendar, which doesn't have the hook you're using to create the CSS. I'll install the latest dev release and see if that works.Comment #13
geerlingguy commentedHere's what I'm getting in the
<head>section of my page, after having set some colors (for every entity type I could):It seems the CSS isn't applying for me, and I think it has to do with the CSS inheritance imposed by the FullCalendar module. The .fc-event-skin background color is what actually shows up for me, instead of the background color of my choosing. My background color (set through FullCalendar Colors) only shows for the top and bottom pixel border of the event.
Also, I realized I should be setting a more sane default (rather than #ffffff) for the default color, because the text defaults to white... meaning you can't see the event at all if you use the default! (Fixing that in attached patch, which has been committed).
Comment #14
geerlingguy commentedIt looks like, in order to get the color to apply correctly to the entire event, we'll need to add the same value as we do to the 'entity-type-[whatever]' class to the
.fc-event-skinclass. (This dual-application of the color seems to be how FC creates its 'rounded border' look... I think on one of my sites, I wiped out that setup altogether, and just had one div for the event, and then used border-radius instead).Comment #15
aspilicious commentedDid you clear your caches? Because css in should override fullcalendar css
Comment #16
geerlingguy commentedYes, please see attached screen grab...
Comment #17
aspilicious commentedI rly can't reproduce... What version of fullcalendar are u using?
Comment #18
geerlingguy commentedDev release, April 19.
Comment #19
aspilicious commentedI mean version of fullcalender plugin (in the libraries folder)
Comment #20
geerlingguy commentedSo, it turns out that the CSS styling/classes in the 1.5.x series of FullCalendar has been changed, and that is what was causing the issues. With 1.4.x, there was no
.fc-event-skinclass applied to the events, so the current version of this module works fine. With 1.5.x, that class is applied, and even though Webkit inspector tells me that class's background/border color is overridden by our own classes/colors, the main part of the event is colored the default FullCalendar blue.Comment #21
aspilicious commentedThis should work on fullcalendar 1.4 and 1.5 WHOOOHOOW
Comment #22
geerlingguy commentedCouldn't apply the patch...
Comment #23
aspilicious commentedThis one?
Comment #24
geerlingguy commentedYeah... had to do with the line endings. In the patch in #21, the line endings seemed to be windows line endings. I changed them to LF by re-saving in TextMate, and the patch applied correctly. It's the silliest things. Will review/commit now...
Comment #25
geerlingguy commentedWell, after some more testing (there was a slight issue with the 'a' needing a space before it), it looks like all the issues have been resolved. aspilicious and tim.plunkett: you rock! This is awesome.
Comment #26
geerlingguy commentedFollow-up issue: #1134132: fc-event-time class is unstyled in Week/Day view.
Comment #27
tim.plunkett