Closed
Bug 418090
Opened 17 years ago
Closed 16 years ago
"Halo"/Extended border around buttons on modern theme
Categories
(SeaMonkey :: General, defect)
SeaMonkey
General
Tracking
(Not tracked)
RESOLVED
FIXED
seamonkey2.0a1
People
(Reporter: standard8, Assigned: neil)
References
Details
(Keywords: helpwanted, regression)
Attachments
(6 files)
(deleted),
image/png
|
Details | |
(deleted),
patch
|
Details | Diff | Splinter Review | |
(deleted),
patch
|
iannbugzilla
:
review+
|
Details | Diff | Splinter Review |
(deleted),
patch
|
iannbugzilla
:
review+
|
Details | Diff | Splinter Review |
(deleted),
patch
|
iannbugzilla
:
review+
|
Details | Diff | Splinter Review |
(deleted),
patch
|
iannbugzilla
:
review+
|
Details | Diff | Splinter Review |
Using the current modern theme, I'm getting a "halo"/extended border around any button - see attached image for before & after. Started sometime after 2008020101, but probably more than a few days ago.
Its very annoying and looks rubbish. I couldn't see anything obvious in DOMI to be able to track down the problem.
Assignee | ||
Comment 1•17 years ago
|
||
I know why this is.
-moz-border-XXX-colors: transparent used to be really transparent. Now it shows the element's background colour instead (by comparison border-color: transparent already shows the background colour).
What we have to do now is to turn the transparent border into extra margin and use an outline instead. Fortunately this will actually end up simplifying some of the rules a bit.
Keywords: helpwanted
Assignee | ||
Comment 2•16 years ago
|
||
OK, so this turned out to be slightly more complicated.
The original border was six pixels wide. For the top and left borders:
The inner pixel is #B1BBC9 for normal buttons and #899AAC for active buttons.
The second pixel is #BBC6D1 for normal buttons and #8290A5 for active buttons.
The third pixel is black. For default buttons, the fourth pixel is black too.
The next two pixels are transparent, or #98A5B2 if the button is focused.
Except for default buttons, the last pixel is transparent.
The focus is easily translated into an outline, however dealing with default buttons is trickier. There appear to be two alternatives:
1. Replace transparent with #C7D0D9 (default window background).
2. Add an extra pixel of padding to all non-default buttons.
Assignee | ||
Comment 3•16 years ago
|
||
Oh, and the problem with varying the margin is the min-width.
Assignee | ||
Comment 4•16 years ago
|
||
This makes non-default buttons slightly bigger, so that there's no size change when you add or remove the default attribute (<dialog>s do this). (Very narrow buttons will still be a few pixels wider still because the margin is larger.)
Assignee | ||
Comment 5•16 years ago
|
||
This version changes the min-width to 60px so that I can keep the behaviour of default buttons being slightly larger than non-default buttons.
Attachment #328660 -
Flags: review?(iann_bugzilla)
Comment on attachment 328660 [details] [diff] [review]
Change minimum width unit to pixels
I prefer the look of this option
Attachment #328660 -
Flags: review?(iann_bugzilla) → review+
Attachment #328659 -
Flags: review?(iann_bugzilla)
Assignee | ||
Comment 7•16 years ago
|
||
Fix checked in.
Status: ASSIGNED → RESOLVED
Closed: 16 years ago
Resolution: --- → FIXED
Assignee | ||
Comment 8•16 years ago
|
||
Attachment #331071 -
Flags: review?(iann_bugzilla)
Attachment #331071 -
Flags: review?(iann_bugzilla) → review+
Comment 9•16 years ago
|
||
I'm repoening this since attachment #331071 [details] [diff] [review] hasn't landed on comm-central.
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Target Milestone: --- → seamonkey2.0alpha
Assignee | ||
Comment 10•16 years ago
|
||
Pushed changeset 970adc6fbada to comm-central.
Status: REOPENED → RESOLVED
Closed: 16 years ago → 16 years ago
Resolution: --- → FIXED
Assignee | ||
Comment 11•16 years ago
|
||
Another disabled button with a custom margin...
Attachment #335049 -
Flags: review?(iann_bugzilla)
Attachment #335049 -
Flags: review?(iann_bugzilla) → review+
Assignee | ||
Comment 12•16 years ago
|
||
Pushed changeset ac884f31493e to comm-central.
Assignee | ||
Comment 13•16 years ago
|
||
Found some more buttons with width/margin overrides...
Attachment #363087 -
Flags: review?(iann_bugzilla)
Attachment #363087 -
Flags: review?(iann_bugzilla) → review+
Assignee | ||
Comment 14•16 years ago
|
||
Comment on attachment 363087 [details] [diff] [review]
Fix search/filter dialogs
Pushed changeset 2bf5d08d96b4 to comm-central.
You need to log in
before you can comment on or make changes to this bug.
Description
•