Closed Bug 1006875 Opened 11 years ago Closed 11 years ago

Styling graph for web audio editor

Categories

(DevTools Graveyard :: Web Audio Editor, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
Firefox 32

People

(Reporter: vporof, Assigned: jsantell)

References

Details

Attachments

(4 files, 1 obsolete file)

See screenshot.
Let's be honest here -- looks really bad. Also, the SVG arrows are missing on light theme, as those can't be styled (afaik in my limited svg knowledge) by css, but must be done dynamically
Summary: The web audio editor looks bad on light theme → Styling graph for web audio editor
Changing this to be a bug for styling graphs in both light and dark theme as they both need it badly. Pinging Darrin!
Flags: needinfo?(dhenein)
Blocks: 994256
Added some new styles to the graph, as well as added a handler for changing the marker styling (the arrows in the graph) when the theme changes, as that cannot be currently done with styles (although spec'd for svg2).
Assignee: nobody → jsantell
Attachment #8425111 - Flags: review?(vporof)
Attachment #8425111 - Flags: feedback?(dhenein)
Flags: needinfo?(dhenein)
Attached image Light Theme
Attached image dark theme
Comment on attachment 8425111 [details] [diff] [review] 1006875-graph-styling-web-audio-editor.patch Review of attachment 8425111 [details] [diff] [review]: ----------------------------------------------------------------- Pretty code, pretty nodes. ::: browser/themes/shared/devtools/webaudioeditor.inc.css @@ +50,5 @@ > fill: none; > } > > +.theme-dark .edgePath path { stroke: #CED3D9; } > +.theme-light .edgePath path { stroke: #AAA; } Assuming you're using the standard palette, can you please document the color names? It'll be helpful when we switch to CSS vars. @@ +60,5 @@ > } > > .theme-dark .nodes rect { > + stroke: #252C33; > + fill: #343C45; Ditto here and everywhere else. @@ +65,4 @@ > } > > .theme-light .nodes rect { > + fill: #F0F1F2; Also, nit: the prevailing hex color format in the devtools codebase is #lowercase #chars. Not feeling strongly about it though.
Attachment #8425111 - Flags: review?(vporof) → review+
Updated to using dev tools colors, and using comments on their variable names, with lowercase hex values
Attachment #8425111 - Attachment is obsolete: true
Attachment #8425111 - Flags: feedback?(dhenein)
Attachment #8425726 - Flags: review+
Status: NEW → ASSIGNED
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Whiteboard: [fixed-in-fx-team]
Target Milestone: --- → Firefox 32
Product: Firefox → DevTools
Product: DevTools → DevTools Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: