Open Bug 404259 Opened 19 years ago Updated 4 years ago

Make "Today" button look toggled when today is selected in the views

Categories

(Calendar :: Calendar Frontend, enhancement)

enhancement

Tracking

(Not tracked)

People

(Reporter: noname5927, Unassigned)

Details

(Keywords: good-first-bug)

Attachments

(5 files)

User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.9) Gecko/20071025 Firefox/2.0.0.9 Build Identifier: "Today" button on toolbar could become selected (sunken) after click and remain selected while today is shown in Day view or is selected in Week/Month view. I think this will ease up navigation, and also look nicer. This idea was implemented in the now discontinued Ecco Pro Reproducible: Always
Cc'ing Christian for an UI expert opinion.
Should be quite easy to fix, also cc'ing bryan for an opinion.
Status: UNCONFIRMED → NEW
Component: General → Calendar Views
Ever confirmed: true
QA Contact: general → views
Summary: Make "Today" button on toolbar toggleable → Make "Today" button look toggled when today is selected in the views
Whiteboard: [good first bug]
yeah this sounds good
But it's been 20 months since my post... should these messages be reviewed more often?
Attached patch [short] patch — — Splinter Review
In this patch I've added a method in calendar-base-view.xml that changes the today button state. The method is called from goToDay() methods for each view. As far as I can see, every time a different view has to be generated, the code always executes the goToDay() method, therefore I put the call in that point. Hope I haven't missed something. For the look of the button, at the beginnig I had used the "checked" state but IMO the "open" state is better (for the background color different from that one of the navigation bar). In the "checked" state, the label "today" is misplaced to the right, like every button in checked state, but the look seems ... too flat, it doesn't seem a checked button apart from the misplacement of the label. Moreover the button is smaller and moves the right arrow button some pixels to the left, so it would need some css properties adjustment. I've attached a screenshot with both "open" and "checked" state of the button. Does it need an UI review?
Assignee: nobody → bv1578
Status: NEW → ASSIGNED
Attachment #418026 - Flags: review?(philipp)
Attachment #418026 - Attachment description: patch → [short] patch
Comment on attachment 418026 [details] [diff] [review] [short] patch >+ <method name="updateTodayButton"> >+ <body><![CDATA[ >+ let todaybutton = document.getElementById("today-view-button"); >+ if () { >+ todaybutton.setAttribute("open", "true"); >+ } else { >+ todaybutton.removeAttribute("open"); >+ } let curDate = cal.now(); setElementValue("today-view-button", (this.mStartDate.compare(curDate) <= 0 && this.mEndDate.compare(curDate) >= 0) && "true", "open"); Otherwise this looks fine. I'll fix this before push.
Attachment #418026 - Flags: review?(philipp) → review+
Attached image Linux Screenshot —
Not sure I like the looks of this on linux. It kind of makes the button look like you can uncheck it. Bryan, do you have a different suggestion maybe?
Attachment #427459 - Flags: ui-review?(clarkbw)
Attachment #427459 - Flags: ui-review?(clarkbw) → ui-review+
Comment on attachment 427459 [details] Linux Screenshot We could try to style it better than it appears now though I'm not sure about making it look different than other buttons of that type. But I think the effect is correct in general.
Bryan, I'm fine with still making it look like a button, do you have a suggestion how it could be better styled?
Comment on attachment 427459 [details] Linux Screenshot The feedback request was rather meant for comment 10.
Comment on attachment 427459 [details] Linux Screenshot handing this over to andreas, see comment 10
Attachment #427459 - Flags: feedback?(clarkbw) → feedback?(nisses.mail)
Having it look pressed is ok behavior consistency-wise, as this kind of navigation UI can be seen in Nautilus (GNOME default file manager) and the GTK+ filechooser among others. There is always the risk of confusing it with a toggle button (buttons are always funny), but the GTK+ toolkit don't make any visual difference between those, so we're not a worse than anyone else.
Attachment #427459 - Flags: feedback?(nisses.mail) → feedback+
Decathlon, is this patch ready for checkin (with the nit fixed)?
(In reply to comment #14) > Decathlon, is this patch ready for checkin (with the nit fixed)? AFAICS, there is a feedback+ (comment 13) about the screenshot attachment 427459 [details] which is from the patch (comment 8 and comment 9) but, maybe, the question in comment 10 has not had an explicit answer, so I think Philipp should answer to your question. Let me know if I have to change something.
Andreas, could you tell us your opinion on comment 10? From comment 13 I understand you're ok with making it look like a standard toggle button, but do you think it could be styled a bit differently?
In the past I had tried to give to the button some styles just to see a different look. In this screenshot there is also a comparison with Google calendar's buttons.
Another open UI decision! How can this bug be moved forward?
This has my vote - anything that makes the Today button stand out is a plus for me. At the moment, without an exension tweaking it (and even with) the current day is almost impossible to distinguish from the rest. Considering this is the most prominent piece of information in the calendar for typical use, this *should* stand out very easily.
Keywords: good-first-bug
Whiteboard: [good first bug]
Assignee: bv1578 → nobody
Status: ASSIGNED → NEW
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: