Closed
Bug 577928
Opened 14 years ago
Closed 14 years ago
7/Vista specific styling of menu buttons in popup notifications
Categories
(Toolkit :: Themes, defect)
Tracking
()
RESOLVED
FIXED
Tracking | Status | |
---|---|---|
blocking2.0 | --- | betaN+ |
People
(Reporter: Terepin, Assigned: Margaret)
References
Details
Attachments
(2 files, 16 obsolete files)
55.04 KB,
image/png
|
Details | |
7.70 KB,
patch
|
Details | Diff | Splinter Review |
User-Agent: Mozilla/5.0 (Windows; Windows NT 6.1; WOW64; sk; rv:2.0b2pre) Gecko/20100710 Minefield/4.0b2pre
Build Identifier: Mozilla/5.0 (Windows; Windows NT 6.1; WOW64; sk; rv:2.0b2pre) Gecko/20100710 Minefield/4.0b2pre
Doorhanger is using Jumplists-like style.
Reproducible: Always
Reporter | ||
Updated•14 years ago
|
Version: unspecified → Trunk
Updated•14 years ago
|
Status: UNCONFIRMED → NEW
Ever confirmed: true
Reporter | ||
Updated•14 years ago
|
Summary: Windows specific styling of Doorhanger → 7/Vista (Aero Glass) specific styling of Doorhanger
Assignee | ||
Comment 1•14 years ago
|
||
Assignee: nobody → margaret.leibovic
Attachment #479912 -
Flags: feedback?(dao)
Assignee | ||
Comment 2•14 years ago
|
||
Attachment #479913 -
Flags: feedback?(shorlander)
Assignee | ||
Comment 3•14 years ago
|
||
Attachment #479915 -
Flags: feedback?(shorlander)
Assignee | ||
Comment 4•14 years ago
|
||
Dao, do you think I should factor out these button styles to a shared.inc file? If so, we can update the button styles in the edit bookmark panel. I can do that in a follow-up bug if we want.
Attachment #479912 -
Attachment is obsolete: true
Attachment #480276 -
Flags: review?(dao)
Attachment #479912 -
Flags: feedback?(dao)
Assignee | ||
Comment 5•14 years ago
|
||
Attachment #479913 -
Attachment is obsolete: true
Attachment #479915 -
Attachment is obsolete: true
Attachment #479913 -
Flags: feedback?(shorlander)
Attachment #479915 -
Flags: feedback?(shorlander)
Comment 6•14 years ago
|
||
Comment on attachment 480276 [details] [diff] [review]
patch
The bug summary seems to indicate that you should do this for aero glass (and basic, I suppose), but this patch applies the style everywhere (e.g. XP luna, classic, random third-party themes).
Attachment #480276 -
Flags: review?(dao) → review-
Reporter | ||
Comment 7•14 years ago
|
||
(In reply to comment #6)
> (and basic, I suppose)
Hmm, is this patch part of edge styling, or it only styles the pop-up itself?
Assignee | ||
Comment 8•14 years ago
|
||
I also made the dropmarker side of the button a little wider to better match the mock-ups.
Attachment #480276 -
Attachment is obsolete: true
Attachment #480707 -
Flags: review?(dao)
Assignee | ||
Updated•14 years ago
|
Whiteboard: [needs review dao]
Assignee | ||
Comment 9•14 years ago
|
||
Updated patch to deal with https://bugzilla.mozilla.org/show_bug.cgi?id=554937#c51.
Attachment #480707 -
Attachment is obsolete: true
Attachment #483297 -
Flags: review?(dao)
Attachment #480707 -
Flags: review?(dao)
Assignee | ||
Comment 10•14 years ago
|
||
Attachment #480277 -
Attachment is obsolete: true
Comment 11•14 years ago
|
||
Comment on attachment 483297 [details] [diff] [review]
patch v3
>--- a/browser/themes/winstripe/browser/browser.css
>+++ b/browser/themes/winstripe/browser/browser.css
>@@ -1855,31 +1855,32 @@ toolbarbutton.bookmark-item[dragover="tr
> background-color: #fffcd6;
> border: 1px solid #dad8b6;
> padding: 5px 5px 5px 5px;
> font-weight: bold;
> }
>
> /* Notification popup */
> #notification-popup {
>- padding: 10px;
>+ margin-left: -17px;
>+ margin-right: -17px;
> }
This belongs in toolkit.
Attachment #483297 -
Flags: review?(dao) → review-
Reporter | ||
Comment 12•14 years ago
|
||
Couldn't DH use reall Glass efect instead of fake one?
Comment 13•14 years ago
|
||
Fwiw, I think the code (popup.xml#arrowpanel) that deals with the positioning should really deal with doing it right (iow, decide exactly where to position the panel based on the position attribute or argument passed to openPopup). Setting the position with margins and css is a) hacky and b) not consistent with how panels are supposed to work.
If we just want to enforce one type of positioning for arrow panels (which actually may make perfect sense) then I guess it would be fine to do it this way.
Reporter | ||
Comment 14•14 years ago
|
||
(In reply to comment #12)
> Couldn't DH use reall Glass efect instead of fake one?
A little correction: Aero Glass contains these three efects:
1. Transparency
2. Blur
3. Stripes
This implementation is using only transparency. What about the rest two?
Assignee | ||
Comment 15•14 years ago
|
||
(In reply to comment #13)
> Fwiw, I think the code (popup.xml#arrowpanel) that deals with the positioning
> should really deal with doing it right (iow, decide exactly where to position
> the panel based on the position attribute or argument passed to openPopup).
> Setting the position with margins and css is a) hacky and b) not consistent
> with how panels are supposed to work.
>
> If we just want to enforce one type of positioning for arrow panels (which
> actually may make perfect sense) then I guess it would be fine to do it this
> way.
If we put the positioning css in toolkit, won't it fix the issue for all arrow panels? The styles in popup.css and popup-aero.css are already doing arrow panel positioning, so I don't think it would be too hacky to put the fix in there.
Comment 16•14 years ago
|
||
They position the arrow on the panel, not the panel itself. If just repositioning the arrow itself (without touching the actual panel) is enough, then yeah, the css is perfect. I just assumed the panel itself would need repositioning, but this makes more sense actually.
So what will end up happening (and what happens now, only a little off) is that the panel will continue to appear wherever the position attibute (or argument) specifies and the arrow will adjust according to the panel position to be directly pointed at the anchorNode. That would be the best option IMO.
Assignee | ||
Comment 17•14 years ago
|
||
Moved the css to toolkit. I just added it to popup-aero.css, since the positioning for the non-aero themes can be resolved in the different theme bugs.
Attachment #483297 -
Attachment is obsolete: true
Attachment #483640 -
Flags: review?(dao)
Updated•14 years ago
|
Summary: 7/Vista (Aero Glass) specific styling of Doorhanger → 7/Vista specific styling of Doorhanger
Comment 18•14 years ago
|
||
Comment on attachment 483640 [details] [diff] [review]
patch v4
>--- a/browser/themes/winstripe/browser/browser-aero.css
>+++ b/browser/themes/winstripe/browser/browser-aero.css
>+ .popup-notification-menubutton > .button-menubutton-button,
>+ .popup-notification-menubutton > .button-menubutton-dropmarker {
>+ -moz-appearance: none;
>+ margin: 0;
>+ background-image: -moz-linear-gradient(top, rgba(250,250,250,.6), rgba(175,175,175,.25) 49%, rgba(0,0,0,.12) 51%, rgba(0,0,0,.09) 60%, rgba(0,0,0,.05));
>+ box-shadow: 0 0 1px 1px rgba(255,255,255,.75) inset;
>+ -moz-border-end: 1px solid rgba(0,0,0,.35);
>+ }
>+
>+ .popup-notification-menubutton > .button-menubutton-button {
>+ padding: 0;
>+ -moz-padding-start: 8px;
>+ -moz-padding-end: 5px;
>+ -moz-border-end: 1px solid rgba(0,0,0,.35);
>+ }
-moz-border-end: 1px solid rgba(0,0,0,.35); is duplicated in the above blocks -- I assume only the latter is wanted?
>+ .popup-notification-menubutton > .button-menubutton-button:hover,
>+ .popup-notification-menubutton > .button-menubutton-dropmarker:hover {
>+ background-image: -moz-linear-gradient(top, rgba(250,250,250,.9), rgba(200,200,200,.6) 49%, rgba(0,0,0,.23) 51%, rgba(0,0,0,.17) 60%, rgba(0,0,0,.05));
>+ box-shadow: 0 0 0 1px rgba(255,255,255,1) inset,
>+ 0 0 2px 1px rgba(255,255,255,.75) inset;
nit: use 'white' instead of 'rgba(255,255,255,1)'
>--- a/browser/themes/winstripe/browser/browser.css
>+++ b/browser/themes/winstripe/browser/browser.css
> .geolocation-text-link {
>- padding-top: 5px;
>+ margin-top: 17px;
> }
Shouldn't the buttons margin be 17px as well regardless of the Vista/7 theme?
Comment 19•14 years ago
|
||
Comment on attachment 483640 [details] [diff] [review]
patch v4
>--- a/toolkit/themes/winstripe/global/popup-aero.css
>+++ b/toolkit/themes/winstripe/global/popup-aero.css
>@@ -62,16 +62,18 @@ menupopup > menu > menupopup {
> margin-top: -3px;
> }
>
> panel[type="arrow"] {
> -moz-appearance: none;
> background: transparent;
> border: none;
> -moz-transition: opacity 300ms;
>+ margin-left: -17px;
>+ margin-right: -17px;
> }
>
> .panel-arrowcontent {
> border-radius: 6px;
> background-color: rgba(179,230,255,.35);
> background-image: -moz-linear-gradient(rgba(250,253,255,.9), rgba(250,253,255,.75) 20px, rgba(250,253,255,.70) 39px, rgba(250,253,255,0) 41px, rgba(250,253,255,0));
> margin: 5px;
> box-shadow: 0 0 0 1px rgba(255,255,255,.65) inset,
>@@ -85,17 +87,17 @@ panel[type="arrow"] {
> background-clip: padding-box;
> margin: 4px;
> border: 2px solid;
> -moz-border-radius: 2px;
> -moz-border-top-colors: rgba(255,255,255,.6) rgba(0,0,0,.7);
> -moz-border-left-colors: rgba(255,255,255,.6) rgba(0,0,0,.7);
> -moz-border-bottom-colors: rgba(255,255,255,.6) rgba(0,0,0,.7);
> -moz-border-right-colors: rgba(255,255,255,.6) rgba(0,0,0,.7);
>- padding: 6px;
>+ padding: 14px;
> }
>
> .panel-arrow[side="top"] {
> list-style-image: url("chrome://global/skin/arrow/panelarrow-up.png");
> margin-bottom: -5px;
> }
>
> .panel-arrow[side="bottom"] {
Is this really Aero specific?
Does margin-left: -17px; margin-right: -17px; work for RTL? How does it behave if there's not enough room for the popup at the right or bottom?
Updated•14 years ago
|
blocking2.0: --- → ?
Assignee | ||
Comment 20•14 years ago
|
||
(In reply to comment #19)
> Comment on attachment 483640 [details] [diff] [review]
> patch v4
>
> >--- a/toolkit/themes/winstripe/global/popup-aero.css
> >+++ b/toolkit/themes/winstripe/global/popup-aero.css
> >@@ -62,16 +62,18 @@ menupopup > menu > menupopup {
> > margin-top: -3px;
> > }
> >
> > panel[type="arrow"] {
> > -moz-appearance: none;
> > background: transparent;
> > border: none;
> > -moz-transition: opacity 300ms;
> >+ margin-left: -17px;
> >+ margin-right: -17px;
> > }
This probably isn't aero-specific, since the same thing fixed the OSX positioning. I just assumed we would fix the positioning for non-aero arrow panels in bug 590072. Are styles in popup.css picked up in aero builds? I thought I had tried changing that file and didn't notice the changes in my build.
> >@@ -85,17 +87,17 @@ panel[type="arrow"] {
> > background-clip: padding-box;
> > margin: 4px;
> > border: 2px solid;
> > -moz-border-radius: 2px;
> > -moz-border-top-colors: rgba(255,255,255,.6) rgba(0,0,0,.7);
> > -moz-border-left-colors: rgba(255,255,255,.6) rgba(0,0,0,.7);
> > -moz-border-bottom-colors: rgba(255,255,255,.6) rgba(0,0,0,.7);
> > -moz-border-right-colors: rgba(255,255,255,.6) rgba(0,0,0,.7);
> >- padding: 6px;
> >+ padding: 14px;
> > }
This is aero specific because non-aero styles don't have .panel-inner-arrowcontent styles, since they don't have the glass border.
> > .panel-arrow[side="top"] {
> > list-style-image: url("chrome://global/skin/arrow/panelarrow-up.png");
> Does margin-left: -17px; margin-right: -17px; work for RTL? How does it behave
> if there's not enough room for the popup at the right or bottom?
It works for RTL and when there's not enough room for the popup at the bottom, but there are problems when there isn't enough room for the popup at the right. I will work on fixing this now.
Assignee | ||
Comment 21•14 years ago
|
||
(In reply to comment #20)
> It works for RTL and when there's not enough room for the popup at the bottom,
> but there are problems when there isn't enough room for the popup at the right.
> I will work on fixing this now.
The margin fix works properly when applied to the non-aero theme, and I'm having trouble figuring out what's causing the problem on the aero themes. I assume it has to do with the fact that there are different margins on the arrow and content elements in the aero theme.
Enn, do you have any thoughts about how to fix this?
Assignee | ||
Comment 22•14 years ago
|
||
Actually, I just kept removing styles from my patch to see what changed the behavior, and I eventually removed my patch altogether, but the horizontal positioning of the doorhanger is still different than in the nightlies. I think my build may have somehow become broken, so I will rebuild and hopefully the problem will go away.
Assignee | ||
Comment 23•14 years ago
|
||
(In reply to comment #22)
> Actually, I just kept removing styles from my patch to see what changed the
> behavior, and I eventually removed my patch altogether, but the horizontal
> positioning of the doorhanger is still different than in the nightlies. I think
> my build may have somehow become broken, so I will rebuild and hopefully the
> problem will go away.
I don't know what went wrong, but a clobber build fixed the problem.
Dão, the positioning works correctly with this patch. However, the patch will have to be updated when bug 605332 lands (thanks for filing that and writing a patch, btw!).
Assignee | ||
Comment 24•14 years ago
|
||
Updated to apply after bug 605332 landed.
Attachment #483640 -
Attachment is obsolete: true
Attachment #484719 -
Flags: review?(dao)
Attachment #483640 -
Flags: review?(dao)
Comment 25•14 years ago
|
||
Attachment #484719 -
Flags: review?(dao) → review-
Assignee | ||
Comment 26•14 years ago
|
||
Sorry I missed those comments! Should be addressed now.
Attachment #484719 -
Attachment is obsolete: true
Attachment #485072 -
Flags: review?(dao)
Comment 27•14 years ago
|
||
Comment on attachment 485072 [details] [diff] [review]
patch v6
> panel[type="arrow"] {
> -moz-appearance: none;
> background: transparent;
> border: none;
> -moz-transition: opacity 300ms;
>+ margin-left: -17px;
>+ margin-right: -17px;
> }
This will break arrow popups that appear to the left or right of the anchor.
What are you trying to accomplish here? Are you trying to move the arrow so that it appears to point to something? Why 17 pixels? 17 pixels may be suitable for the notification popup but would be wrong for other popups, where the anchor is much larger. It seems that this should belong in browser.css or somesuch.
In the long run it would be better if the arrow popup determined the margins itself based on the position and size of the arrow and its image, such that the arrow was always centered on the anchor. But this can be a different bug.
Assignee | ||
Comment 28•14 years ago
|
||
(In reply to comment #27)
> What are you trying to accomplish here? Are you trying to move the arrow so
> that it appears to point to something? Why 17 pixels? 17 pixels may be suitable
> for the notification popup but would be wrong for other popups, where the
> anchor is much larger. It seems that this should belong in browser.css or
> somesuch.
Yes, we want the arrow to point the the icon that anchors it. Right now it's misaligned (https://bugzilla.mozilla.org/show_bug.cgi?id=554937#c51). I dont't know how the arrow panels behave for other types of notifications, since they're not used elsewhere right now, but I agree that this fix probably won't generalize well. So maybe we should just move the fix to browser.css for now and apply it only to #notification-popup? Dão, what do you think?
> In the long run it would be better if the arrow popup determined the margins
> itself based on the position and size of the arrow and its image, such that the
> arrow was always centered on the anchor. But this can be a different bug.
Yes, I agree. There should probably be a follow-up to bug 554937 for this.
Assignee | ||
Comment 29•14 years ago
|
||
I noticed that test_arrowpanel.xul is failing with the current patch. I tried programatically setting the margin in popup.xul (in this method http://mxr.mozilla.org/mozilla-central/source/toolkit/content/widgets/popup.xml#298), but the tests still fail with that margin. I think it has to do with the use of the panel bounding box to check its position. I propose sorting this out in another bug.
The tests don't fail if we set the margin on #noficiation-popup in browser.css, so maybe we should just do that for this patch until we get an arrowpanel fix.
Comment 30•14 years ago
|
||
Can we keep this bug focused on just the button?
Assignee | ||
Comment 31•14 years ago
|
||
Here's a patch that makes no attempt to fix the positioning of the arrow panel. I will file a new bug for that.
Attachment #485072 -
Attachment is obsolete: true
Attachment #485163 -
Flags: review?(dao)
Attachment #485072 -
Flags: review?(dao)
Assignee | ||
Comment 32•14 years ago
|
||
(In reply to comment #31)
> Created attachment 485163 [details] [diff] [review]
> patch v7
>
> Here's a patch that makes no attempt to fix the positioning of the arrow panel.
> I will file a new bug for that.
Filed bug 606343.
Comment 33•14 years ago
|
||
Comment on attachment 485163 [details] [diff] [review]
patch v7
>--- a/browser/themes/winstripe/browser/browser.css
>+++ b/browser/themes/winstripe/browser/browser.css
>@@ -1828,32 +1828,32 @@ toolbarbutton.bookmark-item[dragover="tr
> -moz-appearance: none;
> background-color: #fffcd6;
> border: 1px solid #dad8b6;
> padding: 5px 5px 5px 5px;
> font-weight: bold;
> }
>
> /* Notification popup */
>-#notification-popup {
>- padding: 10px;
>-}
This change seems to cut off the shadow at least on XP. Not sure why this code exists here in the first place, though. Looks like it belongs in popup.css...
Assignee | ||
Comment 34•14 years ago
|
||
(In reply to comment #33)
> Comment on attachment 485163 [details] [diff] [review]
> patch v7
>
> >--- a/browser/themes/winstripe/browser/browser.css
> >+++ b/browser/themes/winstripe/browser/browser.css
> >@@ -1828,32 +1828,32 @@ toolbarbutton.bookmark-item[dragover="tr
> > -moz-appearance: none;
> > background-color: #fffcd6;
> > border: 1px solid #dad8b6;
> > padding: 5px 5px 5px 5px;
> > font-weight: bold;
> > }
> >
> > /* Notification popup */
> >-#notification-popup {
> >- padding: 10px;
> >-}
>
> This change seems to cut off the shadow at least on XP. Not sure why this code
> exists here in the first place, though. Looks like it belongs in popup.css...
I can't see any difference on Windows 7, except for the fact that the padding moves the arrow panel farther away from the anchor.
Adding it to popup.css causes test_arrowpanel.xul to fail :(
Comment 35•14 years ago
|
||
(In reply to comment #34)
> Adding it to popup.css causes test_arrowpanel.xul to fail :(
That doesn't sound like a good reason to keep it out of popup.css but to fix the test ;-)
Comment 36•14 years ago
|
||
This is what I see with the padding removed on XP.
Assignee | ||
Comment 37•14 years ago
|
||
(In reply to comment #35)
> (In reply to comment #34)
> > Adding it to popup.css causes test_arrowpanel.xul to fail :(
>
> That doesn't sound like a good reason to keep it out of popup.css but to fix
> the test ;-)
I'm having a tough time figuring out what I would need to fix in the test. I think the problem may be rooted in the popupshowing handler popup.xml. Can we just leave the padding in browser.css for now, then fix it when we fix bug 606343?
Comment 38•14 years ago
|
||
(In reply to comment #37)
> Can we just leave the padding in browser.css for now, then fix it when we
> fix bug 606343?
Yes.
Comment 39•14 years ago
|
||
Comment on attachment 485163 [details] [diff] [review]
patch v7
>--- a/browser/themes/winstripe/browser/browser.css
>+++ b/browser/themes/winstripe/browser/browser.css
>+.popup-notification-menubutton {
>+ margin-top: 17px;
>+}
It looks like this belongs in toolkit. I don't think we have a popup-notification specific stylesheet, so maybe global.css.
I'm not sure whether the browser-aero.css changes belong there as well -- depends on whether we expect that other apps will want the same button styling.
Comment 40•14 years ago
|
||
> >+.popup-notification-menubutton {
> >+ margin-top: 17px;
> >+}
>
> It looks like this belongs in toolkit. I don't think we have a
> popup-notification specific stylesheet, so maybe global.css.
I don't see how such a large margin would apply to all notifications or all menu buttons.
Comment 41•14 years ago
|
||
If it doesn't apply to notifications in general then it shouldn't be applied to all notifications in browser.xul either, as opposed to what the current patch is doing.
Comment 42•14 years ago
|
||
I meant to say 'all arrow panels', not 'all notifications'. For instance, the bookmarks panel or a similar more complex UI might be in a arrow panel, and a large margin on any menu-buttons would be inappropriate there.
I'm not familiar enough with what is possible with the notifications (those created with the PopupNotification script), but I could imagine the margin would apply to all of those.
Comment 43•14 years ago
|
||
popup-notification-menubutton is a notification-specific class, so it wouldn't apply to all arrow panels.
Comment 44•14 years ago
|
||
OK, I misunderstood when you mentioned putting this into global.css.
Assignee | ||
Comment 45•14 years ago
|
||
(In reply to comment #39)
> Comment on attachment 485163 [details] [diff] [review]
> patch v7
>
> >--- a/browser/themes/winstripe/browser/browser.css
> >+++ b/browser/themes/winstripe/browser/browser.css
>
> >+.popup-notification-menubutton {
> >+ margin-top: 17px;
> >+}
>
> It looks like this belongs in toolkit. I don't think we have a
> popup-notification specific stylesheet, so maybe global.css.
>
> I'm not sure whether the browser-aero.css changes belong there as well --
> depends on whether we expect that other apps will want the same button styling.
If we're factoring some styles out to toolkit in this patch, should I just factor out the button styles as well? I filed bug 601719 about this, but now that arrow panels landed I can just take care of it here. I feel like other apps would want button styling that fits in with the rest of the arrow panel styling, since arrow panels do have their own style.
Comment 46•14 years ago
|
||
(In reply to comment #45)
> (In reply to comment #39)
> > Comment on attachment 485163 [details] [diff] [review] [details]
> > patch v7
> >
> > >--- a/browser/themes/winstripe/browser/browser.css
> > >+++ b/browser/themes/winstripe/browser/browser.css
> >
> > >+.popup-notification-menubutton {
> > >+ margin-top: 17px;
> > >+}
> >
> > It looks like this belongs in toolkit. I don't think we have a
> > popup-notification specific stylesheet, so maybe global.css.
> >
> > I'm not sure whether the browser-aero.css changes belong there as well --
> > depends on whether we expect that other apps will want the same button styling.
>
> If we're factoring some styles out to toolkit in this patch, should I just
> factor out the button styles as well? I filed bug 601719 about this, but now
> that arrow panels landed I can just take care of it here. I feel like other
> apps would want button styling that fits in with the rest of the arrow panel
> styling, since arrow panels do have their own style.
Yes, the button styling is what I meant when I said "the browser-aero.css changes".
Assignee | ||
Comment 47•14 years ago
|
||
(In reply to comment #39)
> Comment on attachment 485163 [details] [diff] [review]
> patch v7
>
> >--- a/browser/themes/winstripe/browser/browser.css
> >+++ b/browser/themes/winstripe/browser/browser.css
>
> >+.popup-notification-menubutton {
> >+ margin-top: 17px;
> >+}
>
> It looks like this belongs in toolkit. I don't think we have a
> popup-notification specific stylesheet, so maybe global.css.
What about notification.css?
Comment 48•14 years ago
|
||
We could use notification.css for the popup-notification binding, yes.
Comment 49•14 years ago
|
||
(In reply to comment #47)
> What about notification.css?
Probably a good idea, even more so if Firefox wants to go in the direction of bug 595810 at some point as well.
Updated•14 years ago
|
Attachment #485163 -
Flags: review?(dao)
Comment 50•14 years ago
|
||
This patch simply sets the 'side' on the panel which can be used to adjust the margin.
Assignee: margaret.leibovic → enndeakin
Status: NEW → ASSIGNED
Assignee | ||
Comment 51•14 years ago
|
||
(In reply to comment #50)
> Created attachment 487369 [details] [diff] [review]
> simple implementation
>
> This patch simply sets the 'side' on the panel which can be used to adjust the
> margin.
I think this patch belongs in bug 606343. I think we decided we were just going to work on the styling of the inside of the notifications in this bug, mainly the button styling.
Assignee | ||
Comment 52•14 years ago
|
||
I moved the button styling into toolkit. I also got rid of any styling that changes the position of the panel, since that will be worked on in bug 606343.
Assignee: enndeakin → margaret.leibovic
Attachment #485163 -
Attachment is obsolete: true
Attachment #487400 -
Flags: review?(dao)
Comment 53•14 years ago
|
||
> I think this patch belongs in bug 606343.
Bah, that's what I had intended to do.
Comment 54•14 years ago
|
||
You seem to have lost the windows-default-theme dependency when moving the code to toolkit.
Updated•14 years ago
|
Summary: 7/Vista specific styling of Doorhanger → 7/Vista specific styling of menu buttons in popup notifications
Updated•14 years ago
|
blocking2.0: ? → betaN+
Assignee | ||
Comment 55•14 years ago
|
||
Is this how I should be incorporating -moz-windows-default-theme? I was thinking we would want to use some of the button styles for the non-aero patch since I believe their shape and size should be the same, but I don't know how that would work if we need to declare the aero styles inside the default theme selector. I guess that can just be a problem for the patch in bug 590072?
Attachment #487400 -
Attachment is obsolete: true
Attachment #487613 -
Flags: review?(dao)
Attachment #487400 -
Flags: review?(dao)
Updated•14 years ago
|
Attachment #487369 -
Attachment is obsolete: true
Updated•14 years ago
|
Attachment #485173 -
Attachment is obsolete: true
Comment 56•14 years ago
|
||
Comment on attachment 487613 [details] [diff] [review]
patch v9
>+ .popup-notification-menubutton {
>+ -moz-appearance: none;
>+ border: 1px solid rgba(0,0,0,.35);
>+ border-radius: 3px;
>+ padding: 0;
>+ }
>+
>+ .popup-notification-menubutton:hover:active {
>+ border: 1px solid rgba(0,0,0,.5);
nit:
border-color: rgba(0,0,0,.5);
Attachment #487613 -
Flags: review?(dao) → review+
Assignee | ||
Comment 57•14 years ago
|
||
Attachment #487613 -
Attachment is obsolete: true
Assignee | ||
Updated•14 years ago
|
Whiteboard: [needs review dao] → [can land]
Assignee | ||
Comment 58•14 years ago
|
||
I forgot a "*" in the jar file.
Attachment #487654 -
Attachment is obsolete: true
Updated•14 years ago
|
Component: Theme → Themes
Product: Firefox → Toolkit
QA Contact: theme → themes
Assignee | ||
Comment 59•14 years ago
|
||
Whiteboard: [can land]
Assignee | ||
Updated•14 years ago
|
Status: ASSIGNED → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Comment 60•14 years ago
|
||
Sigh. You added notification-areo.css with DOS line endings, which breaks cross-compiles, since the host python won't strip the CR and ends up trying to include "notification.css\r" instead.
Comment 61•14 years ago
|
||
(In reply to comment #60)
> Sigh. You added notification-areo.css with DOS line endings, which breaks
> cross-compiles, since the host python won't strip the CR and ends up trying to
> include "notification.css\r" instead.
fixed:
http://hg.mozilla.org/mozilla-central/rev/10ff849f3fdb
Comment 62•14 years ago
|
||
This looks good, except the hover effect doesn't work on the dropmarker. It only does on the left part of the button. This isn't caused by faulty css, but somehow the hover doesn't register. This might be bug 390984 ? I can't open the xul file to see if it is a similar problem. I guess I should file a new bug on this, since it isn't caused by bad styling.
btw, this line does seem to have no function (since the dropdown menu is always open when it is in this state):
.popup-notification-menubutton > .button-menubutton-dropmarker:hover:active,
You need to log in
before you can comment on or make changes to this bug.
Description
•