Closed Bug 305808 Opened 19 years ago Closed 4 years ago

XUL popups without native themes look broken

Categories

(Toolkit :: Themes, defect)

x86
All
defect
Not set
normal

Tracking

()

RESOLVED INCOMPLETE

People

(Reporter: vlad, Unassigned)

Details

Attachments

(1 file)

With Native Themes being somewhat broken atm with Thebes-backed GFX,
non-native-theme looks pretty bad.  In particular, menus and tooltips don't set
a background color, so they never get cleared when opened -- under X, this means
they just retain whatever was underneath them on open.  The attached patch fixes
this; I'm pretty sure it shouldn't affect anything when native themes are in use.
Add some good defaults to XUL menu/popup CSS
Assignee: nobody → vladimir
Status: NEW → ASSIGNED
Attachment #193737 - Flags: review?(bzbarsky)
What about platforms or widget sets on which we don't do native theming?  We
have quite a number of these around, no?
Right, I don't think this breaks anything on those platforms (and might even
make things better).
On second thought, I think that this is really only an xlib issue, and other
platforms won't notice; this only shows up because new xlib windows aren't
cleared when created.  (Just to make clear, I'm seeing this on a gtk2 build when
native theme stuff is disabled.)
Why?  For example, it styles active menuitems red.  This not only affects
platforms with no native theming but any theme which doesn't explicitly style
said menuitems (eg qute and winstripe; they style only menuitems that are kids
of specific other XUL tags).

I guess what I want is an explanation of each of those changes -- why it's
needed and why that value was selected -- in comment form next to the change.  I
assume you checked the IsWidgetStyled code to make sure that these changes won't
impact it?
Comment on attachment 193737 [details] [diff] [review]
thebes-xul-css.patch

Per comment 5.
Attachment #193737 - Flags: review?(bzbarsky) → review-
Assignee: vladimir → nobody
Status: ASSIGNED → NEW
Product: Core → SeaMonkey
Product: SeaMonkey → Toolkit
QA Contact: themes
Status: NEW → RESOLVED
Closed: 4 years ago
Resolution: --- → INCOMPLETE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: