Closed Bug 583168 Opened 14 years ago Closed 14 years ago

In icons only mode, not all buttons get UI

Categories

(Firefox :: Theme, defect)

x86
macOS
defect
Not set
normal

Tracking

()

RESOLVED INVALID

People

(Reporter: mkaply, Unassigned)

Details

Attachments

(3 files)

We have a toolbar with menu-buttons.

On a Mac when we switch to icon only mode, they get extra stuff painted around them that wasn't there in 3.6 and isn't there in text or icon/text mode.

Image attached.
Attached image Picture of problem
The button affordance is intentional, bug 559033.
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → INVALID
I read through that bug and saw no referfence to menu-button specifically.

The issue here is that we now get incorrectly incosistent display of buttons on Mac. To be blunt, it looks like crap. Attaching images.
Status: RESOLVED → UNCONFIRMED
Ever confirmed: false
Resolution: INVALID → ---
OK, I guess I understand now. So the problem here is actually the opposite of what I described.

The problem is that the other icons on my toolbar should be getting borders around them similar to the Firefox UI.

We're only putting UI around menu-buttons.
Summary: Menu buttons don't display correctly in icon only mode (Mac) → In icons only mode, not all buttons get UI
(In reply to comment #6)
> The problem is that the other icons on my toolbar should be getting borders
> around them similar to the Firefox UI.

These buttons need the toolbarbutton-1 class.
Status: UNCONFIRMED → RESOLVED
Closed: 14 years ago14 years ago
Resolution: --- → INVALID
Interesting.

I think we might want to evangelize this again for FF4.

While it's in the docs, I did a quick glance at some common toolbar addons and noone seems to include this because it never did anything before...
I still think it's a FF bug. Any <toolbarbutton> on <toolbar> should just work. The class should not be necessary, it's implicit. And it worked in FF3.
Status: RESOLVED → REOPENED
Ever confirmed: true
Resolution: INVALID → ---
> While it's in the docs

It's not, <https://developer.mozilla.org/en/XUL/toolbarbutton> didn't say anything about it. <https://developer.mozilla.org/en/creating_toolbar_buttons>, but that's an informal howto, not a proper official doc.
(In reply to comment #10)
> It's not, <https://developer.mozilla.org/en/XUL/toolbarbutton> didn't say
> anything about it.

That's the general toolkit documentation. This is app specific code, there's nothing wrong with requiring add-ons to use app specific hooks on top of the toolkit APIs.

.toolbarbutton-1 isn't new either, it was used before, even in Firefox 3. The only change on trunk is that the default theme changes the style more radically.
Status: REOPENED → RESOLVED
Closed: 14 years ago14 years ago
Resolution: --- → INVALID
> there's nothing wrong with requiring add-ons to use app specific hooks
> on top of the toolkit APIs.

There very much is, if it's unnecessary. It is here. If all <toolbarbutton>s on <toolbar> need it, then make it implicit.

You must not break extensions unless it's really necessary, and the new change is then pretty sure to not break again in the future. It's not necessary here. You can't break all extensions just because of the style of the day, be it 18x18 icons or arbitrary style changes (*especially* if they appear on one platform only, so the developer might not even notice!) or whatever.
Status: RESOLVED → REOPENED
Resolution: INVALID → ---
We don't want to apply the style on all toolbarbuttons on toolbars.
Status: REOPENED → RESOLVED
Closed: 14 years ago14 years ago
Resolution: --- → INVALID
> We don't want to apply the style on all toolbarbuttons on toolbars.

Can you be any more vague?

Seems like it doesn't work without them, you told us to add that style, we felt forced to do just that, and the informal "documentation" quoted does read like that.
And that class breaks something else, see bug 583231. It also broke/changed the padding in FF3, which worked fine before.
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: