Closed Bug 1064471 Opened 10 years ago Closed 9 years ago

Storage inspector theme refresh

Categories

(DevTools :: Storage Inspector, defect)

defect
Not set
normal

Tracking

(firefox42 verified)

VERIFIED FIXED
Firefox 42
Tracking Status
firefox42 --- verified

People

(Reporter: ntim, Assigned: ntim)

References

(Blocks 1 open bug)

Details

Attachments

(2 files, 2 obsolete files)

The mockups shows a borderless, darker style for the table rows.

The table headers are being updated in other bugs.
Assignee: ntim007 → nobody
Status: ASSIGNED → NEW
Blocks: 1163191
See Also: → 951714
Summary: Update DevTools table rows design according to shorlander's mockup → Storage inspector theme refresh
Attached patch Patch (obsolete) — Splinter Review
Assignee: nobody → ntim.bugs
Status: NEW → ASSIGNED
Attachment #8616406 - Flags: review?(bgrinstead)
Attached patch Patch v2 (obsolete) — Splinter Review
Bunch of additional changes
Attachment #8616406 - Attachment is obsolete: true
Attachment #8616406 - Flags: review?(bgrinstead)
Attachment #8616408 - Flags: review?(bgrinstead)
Component: Developer Tools → Developer Tools: Storage Inspector
Comment on attachment 8616408 [details] [diff] [review]
Patch v2

Review of attachment 8616408 [details] [diff] [review]:
-----------------------------------------------------------------

Thanks for the patch, and sorry for the delay on reviews.  I like the new look and have a few comments.

There is a missing bottom border on the table now (I'll add a screenshot showing this)

::: browser/themes/shared/devtools/widgets.inc.css
@@ +9,5 @@
>  %define smw_itemDarkTopBorder rgba(0,0,0,0.2)
>  %define smw_itemDarkBottomBorder rgba(128,128,128,0.15)
>  %define smw_itemLightTopBorder rgba(128,128,128,0.15)
>  %define smw_itemLightBottomBorder transparent
> +:root.theme-dark {

In other places, I've just used .theme-dark / .theme-light as the selector for setting variables.  Let's keep that in use to stay consistent

@@ +1222,5 @@
>  /* Column Headers */
>  
> +.table-widget-column-header,
> +.table-widget-cell {
> +  -moz-border-end: 1px solid var(--table-splitter-color) !important;

Is the new !important here necessary?

@@ +1491,5 @@
>  }
>  
> +.theme-light .tree-widget-item.theme-selected[type]::after,
> +.theme-dark .tree-widget-item[type]::after {
> +  filter: invert(1);

Can we use this?  In toolbars.inc.css we are using `filter: url(filters.svg#invert);` and I thought we had to do that using the external file for some reason.

https://dxr.mozilla.org/mozilla-central/source/browser/themes/shared/devtools/toolbars.inc.css#623
Attachment #8616408 - Flags: review?(bgrinstead) → feedback+
(In reply to Brian Grinstead [:bgrins] from comment #3)
> Comment on attachment 8616408 [details] [diff] [review]
> Patch v2
> 
> Review of attachment 8616408 [details] [diff] [review]:
> -----------------------------------------------------------------
> 
> Thanks for the patch, and sorry for the delay on reviews.  I like the new
> look and have a few comments.
> 
> There is a missing bottom border on the table now (I'll add a screenshot
> showing this)
> 
> ::: browser/themes/shared/devtools/widgets.inc.css
> @@ +9,5 @@
> >  %define smw_itemDarkTopBorder rgba(0,0,0,0.2)
> >  %define smw_itemDarkBottomBorder rgba(128,128,128,0.15)
> >  %define smw_itemLightTopBorder rgba(128,128,128,0.15)
> >  %define smw_itemLightBottomBorder transparent
> > +:root.theme-dark {
> 
> In other places, I've just used .theme-dark / .theme-light as the selector
> for setting variables.  Let's keep that in use to stay consistent
Will do.

> @@ +1222,5 @@
> >  /* Column Headers */
> >  
> > +.table-widget-column-header,
> > +.table-widget-cell {
> > +  -moz-border-end: 1px solid var(--table-splitter-color) !important;
> 
> Is the new !important here necessary?
The rule didn't apply without it. I couldn't find what was overriding this, so I used important.

> @@ +1491,5 @@
> >  }
> >  
> > +.theme-light .tree-widget-item.theme-selected[type]::after,
> > +.theme-dark .tree-widget-item[type]::after {
> > +  filter: invert(1);
> 
> Can we use this?  In toolbars.inc.css we are using `filter:
> url(filters.svg#invert);` and I thought we had to do that using the external
> file for some reason.
> 
> https://dxr.mozilla.org/mozilla-central/source/browser/themes/shared/
> devtools/toolbars.inc.css#623
CSS filters were not implemented yet at the time we introduced the light theme. Also, the SVG filter won't work in this case, since it only supports white to black inversion (not the other way).
(In reply to Tim Nguyen [:ntim] from comment #4)
> > > +.theme-light .tree-widget-item.theme-selected[type]::after,
> > > +.theme-dark .tree-widget-item[type]::after {
> > > +  filter: invert(1);
> > 
> > Can we use this?  In toolbars.inc.css we are using `filter:
> > url(filters.svg#invert);` and I thought we had to do that using the external
> > file for some reason.
> > 
> > https://dxr.mozilla.org/mozilla-central/source/browser/themes/shared/
> > devtools/toolbars.inc.css#623
> CSS filters were not implemented yet at the time we introduced the light
> theme. Also, the SVG filter won't work in this case, since it only supports
> white to black inversion (not the other way).

Should we switch the toolbars.inc reference to use this new method or is it somehow different?
Attached image border-bottom.png
screenshot of missing border
Attached patch Patch v3Splinter Review
(In reply to Brian Grinstead [:bgrins] from comment #3)
> @@ +1222,5 @@
> >  /* Column Headers */
> >  
> > +.table-widget-column-header,
> > +.table-widget-cell {
> > +  -moz-border-end: 1px solid var(--table-splitter-color) !important;
> 
> Is the new !important here necessary?
Took a look again, and yes, it is necessary, we apply the .plain class on each cell, which sets a border: none; with higher priority.
Attachment #8616408 - Attachment is obsolete: true
Attachment #8627057 - Flags: review?(bgrinstead)
Comment on attachment 8627057 [details] [diff] [review]
Patch v3

Review of attachment 8627057 [details] [diff] [review]:
-----------------------------------------------------------------

Nice, thanks!

::: browser/themes/shared/devtools/widgets.inc.css
@@ -9,5 @@
>  %define smw_itemDarkTopBorder rgba(0,0,0,0.2)
>  %define smw_itemDarkBottomBorder rgba(128,128,128,0.15)
>  %define smw_itemLightTopBorder rgba(128,128,128,0.15)
>  %define smw_itemLightBottomBorder transparent
> -%define table_itemDarkStartBorder rgba(0,0,0,0.2)

Great to see more preprocessor defines going away
Attachment #8627057 - Flags: review?(bgrinstead) → review+
Keywords: checkin-needed
https://hg.mozilla.org/mozilla-central/rev/620febe27492
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 42
Depends on: 1194190
Blocks: 1194190
No longer depends on: 1194190
I have successfully reproduce this bug on firefox nightly 35.0a1 (2014-09-08)
with windows 10 (32 bit)
Mozilla/5.0 (Windows NT 6.3; rv:35.0) Gecko/20100101 Firefox/35.0

I found this fix on latest beta  42.0b4

Mozilla/5.0 (Windows NT 10.0; rv:42.0) Gecko/20100101 Firefox/42.0
Build ID : 20151005144425
Status: RESOLVED → VERIFIED
Product: Firefox → DevTools
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: