Closed
Bug 371080
Opened 18 years ago
Closed 18 years ago
fix XUL button height, other CSS cleanup
Categories
(SeaMonkey :: Themes, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: jaas, Assigned: jaas)
References
Details
Attachments
(4 files, 10 obsolete files)
(deleted),
text/plain
|
Details | |
(deleted),
patch
|
asaf
:
review+
vlad
:
superreview+
|
Details | Diff | Splinter Review |
(deleted),
application/vnd.mozilla.xul+xml
|
Details | |
(deleted),
patch
|
sayrer
:
review+
|
Details | Diff | Splinter Review |
This removes some unnecessary CSS and fixes XUL button height and width.
Attachment #255840 -
Flags: review?(mano)
I'm not 100% sure about the change to button.plain in the theme, I just removed that because I don't know why we'd need it.
Updated•18 years ago
|
Flags: in-testsuite?
Attachment #255840 -
Attachment is obsolete: true
Attachment #255852 -
Flags: review?(mano)
Attachment #255840 -
Flags: review?(mano)
Attachment #255852 -
Attachment is obsolete: true
Attachment #255923 -
Flags: review?(mano)
Attachment #255852 -
Flags: review?(mano)
Attachment #255923 -
Flags: review?(mano)
This Mac OS X native button should be 66 pixels wide from the dark border line on the left to the dark border line on the right. It should be 21 pixels tall from the dark border line on the top to the dark border line on the bottom.
The only thing the toolkit part of this patch does is enforce the correct height and width. Without this patch the width is incorrect in this XUL example.
The problem with button heights is really an issue with mozilla/browser pref CSS. This fixes that, but I will be posting another patch to this bug to fix the mozilla/browser CSS in a better way.
Attachment #255923 -
Flags: review?(mano)
Attachment #255923 -
Flags: review?(mano)
This patch does more size enforcement via nsITheme.
Attachment #255923 -
Attachment is obsolete: true
Also fixes buttons in Firefox prefs.
Attachment #255961 -
Attachment is obsolete: true
Attachment #256035 -
Flags: review?(mano)
Attachment #255929 -
Attachment is obsolete: true
Updated•18 years ago
|
Attachment #256035 -
Flags: review?(mano)
Adds some comments, uses constants instead of literals for some things, makes buttons regular size in FF prefs.
Attachment #256035 -
Attachment is obsolete: true
Attachment #256124 -
Flags: review?(mano)
Comment 9•18 years ago
|
||
Comment on attachment 256124 [details] [diff] [review]
fix v2.2
r=mano if you restore the rules for .button-text
Attachment #256124 -
Flags: review?(mano) → review+
Attachment #256124 -
Flags: superreview?(dbaron)
Attachment #256124 -
Flags: superreview?(dbaron) → superreview?(pavlov)
Comment 10•18 years ago
|
||
Comment on attachment 256124 [details] [diff] [review]
fix v2.2
vlad should take a look at this and/or dbaron?
Attachment #256124 -
Flags: superreview?(pavlov) → superreview?(vladimir)
Assignee | ||
Comment 11•18 years ago
|
||
This addresses Mano's comment about .button-text rules, also fixes a problem with add-on enabled button color in selected add-on.
Attachment #256124 -
Attachment is obsolete: true
Attachment #256491 -
Flags: review?(mano)
Attachment #256124 -
Flags: superreview?(vladimir)
Assignee | ||
Comment 12•18 years ago
|
||
Comment on attachment 256491 [details] [diff] [review]
fix v2.3
Obsolete, better fix coming up. I shouldn't have originally removed the color for the "button" selector in buttons.css
Attachment #256491 -
Attachment is obsolete: true
Attachment #256491 -
Flags: review?(mano)
Assignee | ||
Comment 13•18 years ago
|
||
Attachment #256519 -
Flags: review?(mano)
Comment 14•18 years ago
|
||
Comment on attachment 256519 [details] [diff] [review]
fix v2.4
>
> /* :::::::::: button :::::::::: */
>
> button {
> -moz-appearance: button;
>+ /* The margin used here come from the Aqua Human Interface Guidelines,
>+ there should be 12 pixels between two buttons. */
> margin: 6px;
>- min-width: 6.3em;
>- -moz-appearance: button;
>- padding: 0;
>- color: #000000;
>+ color: -moz-DialogText;
use ButtonText.
r=mano otherwise.
Attachment #256519 -
Flags: review?(mano) → review+
Attachment #256519 -
Flags: superreview?(vladimir)
Comment 15•18 years ago
|
||
this should pass w/ your patch applied. to land in the tree, remove the people.mozilla.com stuff from the test file links, and make them relative to base, e.g. /MochiKit/packed.js.
Comment 16•18 years ago
|
||
Attachment #256531 -
Attachment is obsolete: true
Comment on attachment 256519 [details] [diff] [review]
fix v2.4
sr=me
Attachment #256519 -
Flags: superreview?(vladimir) → superreview+
Assignee | ||
Comment 18•18 years ago
|
||
fix v2.4 landed, unit test landing next
Assignee | ||
Comment 19•18 years ago
|
||
Attachment #256705 -
Flags: review?(sayrer)
Comment 20•18 years ago
|
||
Comment on attachment 256705 [details] [diff] [review]
unit test patch v1.0
please add ifdef MOZ_MOCHITEST in the pinstripe Makefile like this one does:
http://lxr.mozilla.org/mozilla/source/toolkit/content/tests/Makefile.in
(you would do DIRS +=, obviously)
r=sayrer with that
Attachment #256705 -
Flags: review?(sayrer) → review+
Assignee | ||
Comment 21•18 years ago
|
||
Attachment #256709 -
Flags: review?(sayrer)
Attachment #256705 -
Attachment is obsolete: true
Updated•18 years ago
|
Attachment #256709 -
Flags: review?(sayrer) → review+
Assignee | ||
Comment 22•18 years ago
|
||
test landed
Status: NEW → RESOLVED
Closed: 18 years ago
Resolution: --- → FIXED
Comment 23•18 years ago
|
||
Will this test remain valid if the next OS version slightly changes the look of buttons so they have a different size? (For how many previous versions of Mac OS was it valid?)
It seems like we could really use a GetPreferredWidgetSize as well, since you're hard-coding into themes something that nsNativeThemeCocoa could provide, no? (Windows would benefit from such a function as well.)
Comment 24•18 years ago
|
||
OK, I see in the patch that you're actually not getting this from the OS, so never mind, I suppose.
Comment 25•18 years ago
|
||
(In reply to comment #23)
> Will this test remain valid if the next OS version slightly changes the look of
> buttons so they have a different size? (For how many previous versions of Mac
> OS was it valid?)
It may not remain valid. We want to know about that, though. This is the best way to find out. If test maintenance turns out to be a large burden as we gather more of tests, we can revisit test guidelines at that time.
>
> It seems like we could really use a GetPreferredWidgetSize as well,
This might be true, even though it may not apply to this test. Should we file that bug?
Updated•16 years ago
|
Product: Core → SeaMonkey
You need to log in
before you can comment on or make changes to this bug.
Description
•