Closed Bug 973691 Opened 11 years ago Closed 11 years ago

DevTools themes - Make the code mirror find/go to line match the devtools theme

Categories

(DevTools :: Source Editor, defect)

30 Branch
defect
Not set
normal

Tracking

(firefox31 verified, firefox32 verified)

VERIFIED FIXED
Firefox 32
Tracking Status
firefox31 --- verified
firefox32 --- verified

People

(Reporter: ntim, Assigned: ntim)

References

Details

Attachments

(2 files, 3 obsolete files)

Bug 919703 made the code mirror find/go to line more firefox-ey, but doesn't match the devtools theme.
Flags: needinfo?(bgrinstead)
In dark theme, you can notice that the toolbar height next to it isn't the same as the code mirror find bar height
(In reply to Tim Nguyen [:ntim] from comment #1) > Created attachment 8377258 [details] > Screenshot of inconsistency in dark theme > > In dark theme, you can notice that the toolbar height next to it isn't the > same as the code mirror find bar height Note that the toolbars are going to be thinned by quite a bit in Bug 942292. Such that we may actually need to shrink the height of the CM find/replace to match.
Depends on: 942292
Flags: needinfo?(bgrinstead)
(In reply to Brian Grinstead [:bgrins] from comment #2) > (In reply to Tim Nguyen [:ntim] from comment #1) > > Created attachment 8377258 [details] > > Screenshot of inconsistency in dark theme > > > > In dark theme, you can notice that the toolbar height next to it isn't the > > same as the code mirror find bar height > > Note that the toolbars are going to be thinned by quite a bit in Bug 942292. > Such that we may actually need to shrink the height of the CM find/replace > to match. Yep, also, the light theme look should be fixed too. The CM find/replace looks dark in light theme. Maybe it should also have the .devtools-toolbar class.
Status: UNCONFIRMED → NEW
Ever confirmed: true
Assignee: nobody → ntim007
Status: NEW → ASSIGNED
Attached patch Patch v1 (obsolete) (deleted) — Splinter Review
This fixes the issue. Although, I'm not sure if I'm allowed to touch to CodeMirror files.
Attachment #8423334 - Flags: review?(bgrinstead)
Attached patch Patch v1.1 (obsolete) (deleted) — Splinter Review
Now with r=bgrins. Also, the toolbar heights don't match, but since we're gonna change it soon, I don't think it's worth it.
Attachment #8423334 - Attachment is obsolete: true
Attachment #8423334 - Flags: review?(bgrinstead)
Attachment #8423338 - Flags: review?(bgrinstead)
Comment on attachment 8423338 [details] [diff] [review] Patch v1.1 Review of attachment 8423338 [details] [diff] [review]: ----------------------------------------------------------------- Yeah, we want to avoid touching dialog.css and dialog.js if at all possible. I would keep any necessary .CodeMirror-dialog overrides in mozilla.css, and possibly even just add .CodeMirror-dialog into the list of selectors with devtools-toolbar in light-theme, dark-theme, and toolbars.inc.css (if needed). If there are only a couple of colors that we are wanting from the devtools-toolbar class (and don't care about padding and other props), I would probably just copy those in with theme-light and theme-dark overrides in mozilla.css.
Attachment #8423338 - Flags: review?(bgrinstead) → review-
Attached patch Patch v2 (obsolete) (deleted) — Splinter Review
Attachment #8423338 - Attachment is obsolete: true
Attachment #8424098 - Flags: review?(bgrinstead)
Comment on attachment 8424098 [details] [diff] [review] Patch v2 Review of attachment 8424098 [details] [diff] [review]: ----------------------------------------------------------------- ::: browser/themes/shared/devtools/toolbars.inc.css @@ +10,5 @@ > %define solidSeparatorLight linear-gradient(#aaa, #aaa) > > > +.devtools-toolbar, > +.CodeMirror-dialog { I'm thinking about this one some more. I'm happy with adding CodeMirror dialog to the list in the light and dark theme files. But I don't think it needs to track exactly with all the other settings (and this could make changes on the toolbar in the future harder). I would actually just copy the padding/border rules into mozilla.css in a .CodeMirror-dialog rule
Attachment #8424098 - Flags: review?(bgrinstead)
Attached patch Patch v2.1 (deleted) — Splinter Review
Put the padding change into a temporary CodeMirror-dialog rule. I suppose you'll remove it later when you'll thin out the toolbars.
Attachment #8424098 - Attachment is obsolete: true
Attachment #8424192 - Flags: review?(bgrinstead)
Comment on attachment 8424192 [details] [diff] [review] Patch v2.1 Review of attachment 8424192 [details] [diff] [review]: ----------------------------------------------------------------- Nice refactor
Attachment #8424192 - Flags: review?(bgrinstead) → review+
I don't think
Keywords: checkin-needed
(In reply to Tim Nguyen [:ntim] from comment #12) > I don't think *that a try push is needed, since this is just a small CSS fix.
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Whiteboard: [fixed-in-fx-team]
Target Milestone: --- → Firefox 32
Comment on attachment 8424192 [details] [diff] [review] Patch v2.1 [Approval Request Comment] Bug caused by (feature/regressing bug #): bug 919703 User impact if declined: Find/go to line in DevTools source editor looks bad Testing completed (on m-c, etc.): on m-c for a while Risk to taking this patch (and alternatives if risky): Very low, CSS only String or IDL/UUID changes made by this patch: None
Attachment #8424192 - Flags: approval-mozilla-aurora?
Attachment #8424192 - Flags: approval-mozilla-aurora? → approval-mozilla-aurora+
Keywords: checkin-needed
(not required for uplifts)
Keywords: checkin-needed
Hi, I was able to reproduce it in Nightly 30.0a1 2014-03-05 in both Linux x86_64 and Windows 7 x86_64 and can confirm that this is fixed in the latest Aurora (31.0a2 2014-06-04) and latest Nightly (32.0a1 2014-06-04) on both platforms. Having verified it on two platforms out of three, I'm changing the status to Verified. Cheers, Francesca
Status: RESOLVED → VERIFIED
QA Whiteboard: [bugday-20140604]
Product: Firefox → DevTools
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: