Closed
Bug 298111
Opened 19 years ago
Closed 17 years ago
Improve appearance of form widgets in Camino (fitting of scrollbar to box, drawing glitches in selects)
Categories
(Camino Graveyard :: Page Layout, defect)
Tracking
(Not tracked)
RESOLVED
WORKSFORME
Camino2.0
People
(Reporter: sfraser_bugs, Unassigned)
References
()
Details
Attachments
(10 files)
(deleted),
text/html
|
Details | |
(deleted),
patch
|
mikepinkerton
:
review+
|
Details | Diff | Splinter Review |
(deleted),
text/html
|
Details | |
(deleted),
image/png
|
Details | |
(deleted),
image/png
|
Details | |
(deleted),
text/html
|
Details | |
(deleted),
image/png
|
Details | |
(deleted),
image/png
|
Details | |
(deleted),
image/png
|
Details | |
(deleted),
text/html
|
Details |
The <select> widgets in camino look a bit crappy because the box surrounding
them seems like a pixel too far out. There's a white gap between that box and
the scrollbar, and sometimes the box fails to refresh correctly.
See also bug 293343 about the refresh issue (possibly).
Comment 2•19 years ago
|
||
It's also 1px thick instead of being the former (IIRC) OS X-ish bevel.
Reporter | ||
Comment 3•19 years ago
|
||
Reporter | ||
Comment 4•19 years ago
|
||
This patch tweaks the #if MOZ_DEFAULT_TOOLKIT=="cocoa" part of forms.css, in
the following way:
textarea outlines are 1 pixel thick, and use hard-coded colors (since the theme
drawing stuff draws textfield-style bevels).
listbox outlines changed to use hard-coded colors, because
DrawThemeListBoxFrame() seems to have issues with clipping (bug 293343)
margins and padding tweaked on textareas and list boxes.
Reporter | ||
Updated•19 years ago
|
Attachment #186718 -
Flags: superreview?(bryner)
Attachment #186718 -
Flags: review?(pinkerton)
I initiall looked and made some fixes to this code, I tested this patch and I
didn't come accross any strange stuff just some nice tweaks so R+ from me :D
Comment 6•19 years ago
|
||
Comment on attachment 186718 [details] [diff] [review]
Tweak the cocoa part of forms.css
if jasper's happy, r=pink
Attachment #186718 -
Flags: review?(pinkerton) → review+
Reporter | ||
Comment 7•19 years ago
|
||
Comment on attachment 186718 [details] [diff] [review]
Tweak the cocoa part of forms.css
Camino-only, so checked in.
Attachment #186718 -
Flags: superreview?(bryner)
Reporter | ||
Comment 8•19 years ago
|
||
Checked in (with some minor tweaks).
Status: NEW → RESOLVED
Closed: 19 years ago
Resolution: --- → FIXED
After spending a while in Bugzilla with a build that has these changes (on
10.3.9), I have three comments:
1. This may have fixed bug 293343; at least the steps in bug 293343 comment 7
no longer cause it reliably;
2. The top and right margins (or padding in a CSS sense) of the textareas are
very tight, which makes the top line hard to read IMO and textareas somewhat
unattractive;
3. Inputs are still "beveled" while textareas are not, which is odd-looking
when they're on the same page.
"Annotated" testcase and screenshots for comparison coming up....
I don't know if these issues are even fixable, or if I'm just being picky, or
whatever....
Comment 13•19 years ago
|
||
(In reply to comment #9)
> 3. Inputs are still "beveled" while textareas are not, which is odd-looking
> when they're on the same page.
I believe this was intentional; if you look at OS X's text fields vs. text
views, you'll notice that the text fields have a much deeper bevel than the text
views do.
Reporter | ||
Comment 14•19 years ago
|
||
(In reply to comment #9)
> After spending a while in Bugzilla with a build that has these
> changes (on 10.3.9), I have three comments:
>
> 1. This may have fixed bug 293343; at least the steps in bug 293343
> comment 7 no longer cause it reliably;
Yes, it did (as noted in comment 4).
> 2. The top and right margins (or padding in a CSS sense) of the
> textareas are very tight, which makes the top line hard to read IMO
> and textareas somewhat unattractive;
I agree; I was trying to make them match Cocoa. I can tweak this.
> 3. Inputs are still "beveled" while textareas are not, which is
> odd-looking when they're on the same page.
This was a deliberate decision, to match Cocoa (and Safari).
Reporter | ||
Comment 15•19 years ago
|
||
Reopen for tweakage.
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Reporter | ||
Updated•19 years ago
|
Status: REOPENED → ASSIGNED
I spent some time in Safari and see the bevels on inputs there, too. Fair
enough.
Did you also tweak buttons to allow more styles through? The buttons on the MZ
forums, for instance, seem "much" larger and not as well-aligned to their
matching inputs as they used to be. If I disable the style rules for the
buttons they come back down in size and align almost as before, but are still
some pixels too high.
Reporter | ||
Comment 20•19 years ago
|
||
I did tweak the padding on buttons to get close to system appearance for buttons
of natural height. Maybe this needs to be undone.
Assignee: pinkerton → sfraser_bugs
Status: ASSIGNED → NEW
(In reply to comment #20)
> I did tweak the padding on buttons to get close to system appearance for
buttons
> of natural height. Maybe this needs to be undone.
Strangely enough, your sample buttons (and those throughout bugzilla) don't
seem to have changed perceptibly, but those on the MZ fora do (which is why I
asked if more style elements were being honored).
Also, I noticed on the reply page of the MZ fora (hit quote rather than using
the quick reply) there's a pop-up select next to a button (attached), and that
also seems out of alignment now by some pixels.
Depends on: 311454
(In reply to comment #20)
> I did tweak the padding on buttons to get close to system appearance for buttons
> of natural height. Maybe this needs to be undone.
There have been a few complaints about this in the MZ forum, wondering why we
have big fat buttons now instead of the small ones like in Safari. Like I said
in comment 21, only some buttons (with styles already applied?) seemed to have
changed.
Reporter | ||
Comment 23•19 years ago
|
||
So one probem here that causes some buttons (e.g. on Yahoo groups) to look bad is that our css has:
input[type="button"] {
border-width: 3px 8px 2px 8px;
...
but the site is doing something like;
input[type="button"] {
border: 1px solid blue;
so we end up with 1-pixel borders. So maybe our border rules should be !important (although this might break site layouts)?
Depends on: 315203
Simon, are you planning on doing anything more here for 1.0 (aside from bug 315203, which has the separate patch waiting for r/sr/a)?
We could do more with comment 9 point 2 (text too tight to edges of textarea) if we take the patch Uri mentions in bug 304609 comment 14, but I *think* it's safe to increase the top padding a few px without consequences regardless.
I'm a little surprised we've not seen complaints about bug 311454; I think we should go with the small scrollbars, but it's not a big deal.
I'm not sure what to do about the button issues, though. I wonder if reverting to the old (small buttons everywhere, and fewer styles honored) buttons fixes the issues in bug 310266?
Flags: camino1.0?
Reporter | ||
Comment 25•19 years ago
|
||
I haven't had time to look more at this, and it is time-consuming.
Comment 26•19 years ago
|
||
Something odd I've noticed about the button styles: I usually run with browser.display.focus_ring_width set to 0 (to get rid of that dotted line when you click on links), and setting that back to 1 returns some buttons (e.g. news.google.com) to normal size, but leaves others (mz forums) large.
Updated•19 years ago
|
Flags: camino1.0? → camino1.0-
Target Milestone: --- → Camino1.1
Depends on: 327412
philippe has some nice testcases for some of the issues I raised in comment 16/comment 21 and related issues; see http://dev.l-c-n.com/camino/forms.php
QA Contact: page.layout
Summary: Improve appearance of select widgets in Camino (fitting of scrollbar to box, drawing glitches) → Improve appearance of form widgets in Camino (fitting of scrollbar to box, drawing glitches in selects)
Comment 28•18 years ago
|
||
Philippe, is this something you'd like to look at?
Assignee: sfraser_bugs → nobody
Target Milestone: Camino1.1 → Camino1.2
Comment 29•18 years ago
|
||
(In reply to comment #28)
> Philippe, is this something you'd like to look at?
>
Specifically for the vertical alignment of the input[type="submit"] widgets (as noted in comment #27), I had opened bug 344483, where I also propose some changes to forms.css.
Depends on: 344483
Updated•18 years ago
|
Target Milestone: Camino1.6 → Camino2.0
Comment 30•17 years ago
|
||
Since all of the discussion here is pretty much about forms.css that we no longer use, and all the future work here will be in another component, I'm going to close this as WFM. Remaining issues should be filed as individual bugs in Widget:Cocoa.
Status: NEW → RESOLVED
Closed: 19 years ago → 17 years ago
Resolution: --- → WORKSFORME
You need to log in
before you can comment on or make changes to this bug.
Description
•