From 215c38a98d1ab90b671f4cf89716ffe8619f7c92 Mon Sep 17 00:00:00 2001 From: "Berend.Cornelius%sun.com" Date: Sat, 27 Oct 2007 09:25:22 +0000 Subject: [PATCH] 378172-[Proto] Recurrence dialog: datepickers need a facelift;r=mickey git-svn-id: svn://10.0.0.236/trunk@238241 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/calendar/base/jar.mn | 5 +- ...ndar-event-dialog-recurrence-daypicker.css | 80 ----- ...ndar-event-dialog-recurrence-daypicker.xml | 308 ------------------ .../wcap/sun-calendar-event-dialog.css | 10 +- 4 files changed, 7 insertions(+), 396 deletions(-) delete mode 100644 mozilla/calendar/prototypes/wcap/sun-calendar-event-dialog-recurrence-daypicker.css delete mode 100644 mozilla/calendar/prototypes/wcap/sun-calendar-event-dialog-recurrence-daypicker.xml diff --git a/mozilla/calendar/base/jar.mn b/mozilla/calendar/base/jar.mn index e06b5dc8ea9..7cd24af4fab 100644 --- a/mozilla/calendar/base/jar.mn +++ b/mozilla/calendar/base/jar.mn @@ -9,6 +9,7 @@ calendar.jar: content/calendar/calendar-alarm-widget.xml (content/calendar-alarm-widget.xml) content/calendar/calendar-attendee-list.xml (content/calendar-attendee-list.xml) content/calendar/calendar-calendars-list.xul (content/calendar-calendars-list.xul) + content/calendar/calendar-daypicker.xml (content/calendar-daypicker.xml) content/calendar/calendar-decorated-base.xml (content/calendar-decorated-base.xml) content/calendar/calendar-decorated-multiday-base-view.xml (content/calendar-decorated-multiday-base-view.xml) content/calendar/calendar-decorated-day-view.xml (content/calendar-decorated-day-view.xml) @@ -62,8 +63,6 @@ calendar.jar: content/calendar/sun-calendar-event-dialog-freebusy.xml (/calendar/prototypes/wcap/sun-calendar-event-dialog-freebusy.xml) content/calendar/sun-calendar-event-dialog-recurrence.xul (/calendar/prototypes/wcap/sun-calendar-event-dialog-recurrence.xul) content/calendar/sun-calendar-event-dialog-recurrence.js (/calendar/prototypes/wcap/sun-calendar-event-dialog-recurrence.js) - content/calendar/sun-calendar-event-dialog-recurrence-daypicker.css (/calendar/prototypes/wcap/sun-calendar-event-dialog-recurrence-daypicker.css) - content/calendar/sun-calendar-event-dialog-recurrence-daypicker.xml (/calendar/prototypes/wcap/sun-calendar-event-dialog-recurrence-daypicker.xml) content/calendar/sun-calendar-event-dialog-recurrence-preview.xml (/calendar/prototypes/wcap/sun-calendar-event-dialog-recurrence-preview.xml) content/calendar/sun-calendar-event-dialog-reminder.js (/calendar/prototypes/wcap/sun-calendar-event-dialog-reminder.js) content/calendar/sun-calendar-event-dialog-reminder.xul (/calendar/prototypes/wcap/sun-calendar-event-dialog-reminder.xul) @@ -74,6 +73,7 @@ calendar.jar: % skin calendar classic/1.0 %skin/classic/calendar/ skin/classic/calendar/abcard.png (themes/common/abcard.png) #expand skin/classic/calendar/cal-icon32.png (themes/__THEME__/cal-icon32.png) +#expand skin/classic/calendar/daypicker-background.png (/calendar/base/themes/common/daypicker-background.png) #expand skin/classic/calendar/calendar-toolbar.css (themes/__THEME__/calendar-toolbar.css) #expand skin/classic/calendar/today-pane.css (themes/__THEME__/today-pane.css) #expand skin/classic/calendar/calendar-event-dialog.css (themes/__THEME__/calendar-event-dialog.css) @@ -83,6 +83,7 @@ calendar.jar: #expand skin/classic/calendar/toolbar-small.png (themes/__THEME__/toolbar-small.png) #expand skin/classic/calendar/mode-switch-icons.png (themes/__THEME__/mode-switch-icons.png) #expand skin/classic/calendar/calendar-management.css (themes/__THEME__/calendar-management.css) +#expand skin/classic/calendar/calendar-daypicker.css (themes/__THEME__/calendar-daypicker.css) skin/classic/calendar/event-grippy-bottom.png (themes/common/event-grippy-bottom.png) skin/classic/calendar/event-grippy-left.png (themes/common/event-grippy-left.png) skin/classic/calendar/event-grippy-right.png (themes/common/event-grippy-right.png) diff --git a/mozilla/calendar/prototypes/wcap/sun-calendar-event-dialog-recurrence-daypicker.css b/mozilla/calendar/prototypes/wcap/sun-calendar-event-dialog-recurrence-daypicker.css deleted file mode 100644 index 259ebd62d59..00000000000 --- a/mozilla/calendar/prototypes/wcap/sun-calendar-event-dialog-recurrence-daypicker.css +++ /dev/null @@ -1,80 +0,0 @@ -/* ***** BEGIN LICENSE BLOCK ***** - * Version: MPL 1.1/GPL 2.0/LGPL 2.1 - * - * The contents of this file are subject to the Mozilla Public License Version - * 1.1 (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * http://www.mozilla.org/MPL/ - * - * Software distributed under the License is distributed on an "AS IS" basis, - * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License - * for the specific language governing rights and limitations under the - * License. - * - * The Original Code is Sun Microsystems code. - * - * The Initial Developer of the Original Code is Sun Microsystems - * Portions created by the Initial Developer are Copyright (C) 2001 - * the Initial Developer. All Rights Reserved. - * - * Contributor(s): - * Michael Buettner - * - * Alternatively, the contents of this file may be used under the terms of - * either the GNU General Public License Version 2 or later (the "GPL"), or - * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), - * in which case the provisions of the GPL or the LGPL are applicable instead - * of those above. If you wish to allow use of your version of this file only - * under the terms of either the GPL or the LGPL, and not to allow others to - * use your version of this file under the terms of the MPL, indicate your - * decision by deleting the provisions above and replace them with the notice - * and other provisions required by the GPL or the LGPL. If you do not delete - * the provisions above, a recipient may use your version of this file under - * the terms of any one of the MPL, the GPL or the LGPL. - * - * ***** END LICENSE BLOCK ***** */ - -.daypicker-weekday-mainbox { - background-color: #FFFFFF; - border: 1px outset #FFFFFF; - padding: 0px; -} - -.daypicker-monthday-mainbox { - background-color: #FFFFFF; - border: 1px outset #FFFFFF; - padding: 0px; -} - -.daypicker-box { - font-family: Arial; - border: 1px solid transparent; - text-align: center; - padding: 2px; -} - -.daypicker-box:hover { - cursor: pointer; - border: 1px solid Highlight; -} - -.daypicker-box[selected="true"] { - background-color: Highlight; - color: HighlightText; -} - -.daypicker-box[othermonth="true"] { - font-family: Arial; - border: 1px solid transparent; - text-align: center; - padding: 2px; -} - -.daypicker-box[disabled="true"] { - color: GrayText !important; - border: 1px solid transparent; - cursor: default; -} - -.daypicker-row { -} diff --git a/mozilla/calendar/prototypes/wcap/sun-calendar-event-dialog-recurrence-daypicker.xml b/mozilla/calendar/prototypes/wcap/sun-calendar-event-dialog-recurrence-daypicker.xml deleted file mode 100644 index bd20c3adc79..00000000000 --- a/mozilla/calendar/prototypes/wcap/sun-calendar-event-dialog-recurrence-daypicker.xml +++ /dev/null @@ -1,308 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - = 7) - index -= 7; - days.push(index + 1); - } - } - return days; - ]]> - - - = 7) { - dow -= 7; - } - var day = props.GetStringFromName("day." + (dow + 1) + ".Mmm"); - child.setAttribute("value", day); - child.calendar = this; - } - ]]> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/mozilla/calendar/prototypes/wcap/sun-calendar-event-dialog.css b/mozilla/calendar/prototypes/wcap/sun-calendar-event-dialog.css index db1fde6c38c..5e4ded765d3 100644 --- a/mozilla/calendar/prototypes/wcap/sun-calendar-event-dialog.css +++ b/mozilla/calendar/prototypes/wcap/sun-calendar-event-dialog.css @@ -53,17 +53,15 @@ label.label { /****************************************************************************************/ daypicker-weekday { - -moz-binding: url(chrome://calendar/content/sun-calendar-event-dialog-recurrence-daypicker.xml#daypicker-weekday); + -moz-binding: url(chrome://calendar/content/calendar-daypicker.xml#daypicker-weekday); -moz-user-focus: normal; + margin-top: 2px; } daypicker-monthday { - -moz-binding: url(chrome://calendar/content/sun-calendar-event-dialog-recurrence-daypicker.xml#daypicker-monthday); + -moz-binding: url(chrome://calendar/content/calendar-daypicker.xml#daypicker-monthday); -moz-user-focus: normal; -} - -.daypicker-box { - -moz-binding: url(chrome://calendar/content/sun-calendar-event-dialog-recurrence-daypicker.xml#daypicker-box); + margin-top: 2px; } recurrence-preview {