Closed Bug 243765 Opened 20 years ago Closed 20 years ago

Clean up css of xbl datepicker and xbl timepicker (make skinnable)

Categories

(Calendar :: Sunbird Only, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: gekacheka, Assigned: mostafah)

References

Details

Attachments

(11 files, 2 obsolete files)

14.16 KB, application/octet-stream
mostafah
: first-review+
Details
2.39 KB, patch
mostafah
: first-review+
Details | Diff | Splinter Review
1.35 KB, patch
mostafah
: first-review+
Details | Diff | Splinter Review
1.24 KB, patch
mostafah
: first-review+
Details | Diff | Splinter Review
1.52 KB, patch
mostafah
: first-review+
Details | Diff | Splinter Review
1.12 KB, patch
mostafah
: first-review+
Details | Diff | Splinter Review
8.08 KB, patch
mostafah
: first-review+
Details | Diff | Splinter Review
2.88 KB, text/plain
mostafah
: first-review+
Details
2.88 KB, text/plain
mostafah
: first-review+
Details
824 bytes, patch
mostafah
: first-review+
Details | Diff | Splinter Review
1.76 KB, patch
mostafah
: first-review+
Details | Diff | Splinter Review
User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7b) Gecko/20040421
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7b) Gecko/20040421

The xbl datepicker and xbl timepicker in datetimepickers currently use a mix of
css from content/datetimepickers and skin/datepicker, skin/timepicker.  Much of
the css in content/datetimepickers was originally in skin/eventDialog.css.  The
appearance css from both sources should be combined in skin/datetimepickers so
the components are skinnable and easier to reuse.

Reproducible: Always
Steps to Reproduce:
Attached file zip of added skin files —
Adds skin css files for minimonth, datepicker, timepicker
(combined and cleaned up from eventDialog).
  skin/classic/datetimepickers/minimonth.css
  skin/classic/datetimepickers/datepicker.css
  skin/classic/datetimepickers/timepicker.css
  skin/modern/datetimepickers/minimonth.css
  skin/modern/datetimepickers/datepicker.css
  skin/modern/datetimepickers/timepicker.css
Restores modern button images (currently classic and modern are same)
  skin/modern/datetimepickers/calendar_disabled.gif
  skin/modern/datetimepickers/calendar_down.png
  skin/modern/datetimepickers/calendar_hover.png
  skin/modern/datetimepickers/calendar_up.gif
  skin/modern/datetimepickers/clock_disabled.gif
  skin/modern/datetimepickers/clock_down.png
  skin/modern/datetimepickers/clock_hover.png
  skin/modern/datetimepickers/clock_up.gif
These replace the previous images (copies of the classic images), so
since the png files don't overwrite the gif files, the following can be
removed:
  skin/modern/datetimepickers/calendar_down.gif
  skin/modern/datetimepickers/calendar_hover.gif
  skin/modern/datetimepickers/clock_down.gif
  skin/modern/datetimepickers/clock_hover.gif
Remove appearance css, import skin file.
Remove appearance css, import skin css.
Add/fix box class names.
Remove appearance css, import skin css.
Add/fix box classes.
Attached patch skin/classic/eventDialog.css patch (obsolete) — — Splinter Review
Remove old css moved elsehwere or no longer used.
Attached patch skin/modern/eventDialog.css patch (obsolete) — — Splinter Review
Remove old css moved elsewhere or no longer used.
Attachment #148624 - Flags: first-review?(mostafah)
Attachment #148625 - Flags: first-review?(mostafah)
Attachment #148626 - Flags: first-review?(mostafah)
Attachment #148627 - Flags: first-review?(mostafah)
Attachment #148628 - Flags: first-review?(mostafah)
Attachment #148630 - Flags: first-review?(mostafah)
Attachment #148631 - Flags: first-review?(mostafah)
Attachment #148632 - Flags: first-review?(mostafah)
Attached patch jar.mn patch — — Splinter Review
Adds new files, removes unused files.
Attachment #148633 - Flags: first-review?(mostafah)
Blocks: 240233
Comment on attachment 148624 [details]
zip of added skin files

New files checked into CVS.
Modified files updated.
jar.mn updated.
Attachment #148624 - Flags: first-review?(mostafah) → first-review+
Attachment #148632 - Attachment description: skin/classic/eventDialog.css patch → skin/modern/eventDialog.css patch
Attachment #148626 - Flags: first-review?(mostafah) → first-review+
Attachment #148627 - Flags: first-review?(mostafah) → first-review+
Attachment #148628 - Flags: first-review?(mostafah) → first-review+
Attachment #148630 - Flags: first-review?(mostafah) → first-review+
Comment on attachment 148625 [details] [diff] [review]
content/datetimepickers/minimonth.css patch

Patch wouldn't work though. Had to apply it manually
Attachment #148625 - Flags: first-review?(mostafah) → first-review+
The eventDialog.css patched won't apply. Can you please fix them or at least
provide the actual files instead?
Attached file skin/classic/eventDialog.css —
Attached file skin/modern/eventDialog.css —
re comment #12, uploaded updated skin eventDialog.css files.
Comment on attachment 148961 [details]
skin/classic/eventDialog.css

All looks good.
Questions:
#start-date-box is being used in printDialog.xul should it really be removed?
#dialog-box is being used in some dialog xuls. Should it really be removed?
#all-day-event-checkbox is still being used. Should it really be removed?
Is it that the css rules for theses ids are not necessary?
start-date-box can be removed from printDialog.xul as in above patch.
dialog-box is named only in files that do not load eventDialog.css so it is ok
to remove it in eventDialog.css
all-day-event-checkbox appears earlier in the file, so the removed declaration
is not needed.

Thanks for the careful review.
Attachment #148970 - Flags: first-review+
Attachment #148962 - Flags: first-review+
Attachment #148961 - Flags: first-review+
Attachment #148631 - Attachment is obsolete: true
Attachment #148631 - Flags: first-review?(mostafah) → first-review-
Attachment #148632 - Attachment is obsolete: true
Attachment #148632 - Flags: first-review?(mostafah) → first-review-
Comment on attachment 148633 [details] [diff] [review]
jar.mn patch

skin/modern/calendar/datetimepickers/calendar_down.png
is being added and the gif one removed. The css files however both use the gif
file. Is this a mistake or am I missing something?
You're right, I should have updated the zip, here's the fixes.
Attachment #148981 - Flags: first-review+
Attachment #148633 - Flags: first-review?(mostafah) → first-review+
All review+ patches have been checked in.
All files that were not needed have been removed.

Cleaning up the date-time picker code was a huge contribution.
Thanks a lot gekacheka, way to go.
Status: NEW → RESOLVED
Closed: 20 years ago
Resolution: --- → FIXED
The bugspam monkeys have been set free and are feeding on Calendar :: Sunbird Only. Be afraid for your sanity!
QA Contact: gurganbl → sunbird
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: