Closed Bug 377753 Opened 19 years ago Closed 18 years ago

Look and Feel of minimonths should be adapted

Categories

(Calendar :: Calendar Frontend, defect)

defect
Not set
normal

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: berend.cornelius09, Assigned: berend.cornelius09)

References

Details

Attachments

(3 files, 1 obsolete file)

According to the specification in http://wiki.mozilla.org/Calendar:Calendar_View#Month_View the minimonths should be adapted. In a first step this will be applied only to the minimonths within the recurrence dialog. In a later step these implementations will be consolidated with the other minimonth inplementations.
OS: Solaris → All
Hardware: Sun → All
Berend, I don't want to stop you, but the stuff on that page is just a bunch of ideas which might have to be finalized or completely revised. It is no spec.
Flags: wanted-calendar0.8?
Flags: wanted-calendar0.8? → wanted-calendar0.8+
When you are working on the minimonths, I think you should also change them to use platform fonts. Currently, their font is hardcoded as Arial (see calendar/resources/skin/classic/datetimepickers/minimonth.css). Or should I make this a new bug?
Not going to happen for 0.8.
Flags: wanted-calendar0.8+ → wanted-calendar0.8-
Flags: wanted-calendar0.9?
Flags: wanted-calendar0.9?
Flags: wanted-calendar0.9+
Flags: wanted-calendar0.8-
I consolidated all the sourcecode about the minimonth and adapted the look and feel according to Christian's proposal: My consolidate brought us the following additional files: calendar/base/themes/pinstripe/widgets/minimonth.css calendar/base/themes/winstripe/widgets/minimonth.css calendar/base/content/widgets/minimonth.xml calendar/base/themes/common/widgets/nav-buttons.png On the other hand I could remove the following files: calendar/base/themes/common/mini-day-nav-buttons.png calendar/sunbird/themes/winstripe/sunbird/datetimepickers/minimonth.css calendar/sunbird/themes/winstripe/sunbird/datetimepickersleft-arrow-hover.png calendar/sunbird/themes/winstripe/sunbird/datetimepickersleft-arrow.png calendar/sunbird/themes/winstripe/sunbird/datetimepickersright-arrow.png calendar/sunbird/themes/winstripe/sunbird/datetimepickersright-arrow-hover.png calendar/sunbird/themes/winstripe/sunbird/datetimepickers calendar/sunbird/themes/pinstripe/sunbird/datetimepickers/minimonth.css calendar/sunbird/themes/pinstripe/sunbird/datetimepickersleft-arrow-hover.png calendar/sunbird/themes/pinstripe/sunbird/datetimepickersleft-arrow.png calendar/sunbird/themes/pinstripe/sunbird/datetimepickersright-arrow.png calendar/sunbird/themes/pinstripe/sunbird/datetimepickersright-arrow-hover.png calendar/sunbird/themes/pinstripe/sunbird/datetimepickers resources/content/datetimepickers/minimonth.css resources/content/datetimepickers/minimonth.xml resources/skin/classic/datetimepickers/minimonth.css resources/skin/classic/datetimepickers/left-arrow.gif resources/skin/classic/datetimepickers/left-arrow-hover.gif resources/skin/classic/datetimepickers/right-arrow.gif resources/skin/classic/datetimepickers/right-arrow-hover.gif Christian wanted me to not further make the minimonth flexible in width. I applied this change also in Sunbird. I tried to make thee minimonths keyboard-accessible by using toolbarbuttons in the minimonth header. However I am not quite through with this but want to file a follow-up bug for it. When minimonths are readonly as in the recurrence-preview binding I use simple labels instead. One new functionality is the Today-button in the minimonth header with which it is possible to switch to today now. Before I am asking for review I would like Andreas (and anybody else) to test it as this has really become a big patch.
Attached patch patch v. #1 (obsolete) — Splinter Review
First version of the new minimonth
okay ... the screenshot is the answer. sorry.
Attachment #315127 - Flags: ui-review?(christian.jansen)
Status: NEW → ASSIGNED
The is the image to be displayed on the navigation buttons ("<o>") in the minimonth header. Please copy into calendar/base/common/widget folder
If you use the minimonth and navigation-buttons, is the dropdown underneath the minimonth still needed?
The dropdown is for easy typing a date. That's usually faster, if you know the date. The dropdown itself is not needed here, indeed. A single textbox would do. Less double options -> less confusion -> better. It might not need to be in the position it currently is. A popup of some sort might work.
Attachment #315127 - Attachment is obsolete: true
Attachment #316177 - Flags: ui-review?(christian.jansen)
Attachment #315127 - Flags: ui-review?(christian.jansen)
Comment on attachment 316177 [details] [diff] [review] patch v. #2 - unbitrotted Works good. Thanks for the patch. The only nit we should fix in a spin-off bug is the alignment for the "read only" version.
Attachment #316177 - Flags: ui-review?(christian.jansen) → ui-review+
Comment on attachment 316177 [details] [diff] [review] patch v. #2 - unbitrotted Now as Christian has approved the UI you can review the source code. In reply to comment #14: To align the header in the readonly mode is not quite that easy because the both labels -month and year - consume as much space as the longest possible value (string) requires.I could of course left-align the month label but then we would have a not so nice gap between the month and the year label.
Attachment #316177 - Flags: review?(philipp)
Comment on attachment 316177 [details] [diff] [review] patch v. #2 - unbitrotted >+ try { >+ var pref = Components.classes["@mozilla.org/preferences-service;1"] >+ .getService(Components.interfaces.nsIPrefBranch); >+ this.weekStart = pref.getIntPref("calendar.week.start"); >+ } catch (e) { >+ this.weekStart = 0; >+ } getPrefSafe("calendar.week.start", 0); >+ <!--Attention - duplicate!!!!--> ??? >+ <method name="fireEvent"> >+ <parameter name="aEventName"/> >+ <body><![CDATA[ >+ var event = document.createEvent('Events'); >+ event.initEvent(aEventName, true, true); >+ this.dispatchEvent(event); >+ ]]></body> >+ </method> >+.minimonth-year-name { >+ min-width: 4em; >+ font-weight: bold; >+ padding: 0px; >+ -moz-user-focus: normal; >+} >+ >+.minimonth-year-name-readonly { >+ min-width: 4em; >+ font-weight: bold; >+ -moz-padding-start: 4px; >+} ... >+ <xul:deck> >+ <xul:text anonid="yearcell" class="minimonth-year-name-readonly"/> >+ <xul:text class="minimonth-year-name-readonly"/> >+ </xul:deck> Why do we need two xul:text for this? wouldn't one xul:text with xbl:inherits="readonly" and rules with [readonly="true"] suffice? r=philipp with comments fixed.
Attachment #316177 - Flags: review?(philipp) → review+
Worked in philipp's comments and checked in patch on trunk and MOZILLA_1_8_BRANCH -> fixed
Status: ASSIGNED → RESOLVED
Closed: 18 years ago
Resolution: --- → FIXED
Target Milestone: --- → 0.9
Version: Lightning 0.3.1 → unspecified
Blocks: 403056
Blocks: 214853
Checked in lightning build 2008062218 and sunbird 20080622 -> VERIFIED
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: