WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
140385
Web Inspector: Make message selection in the console more readable
https://bugs.webkit.org/show_bug.cgi?id=140385
Summary
Web Inspector: Make message selection in the console more readable
Nikita Vasilyev
Reported
2015-01-13 01:33:19 PST
Problem description and proposed solutions:
http://trac.webkit.org/wiki/InspectorConsoleSelection
(Since Bugzilla can’t display images inline, I used a wiki instead)
Attachments
[VIDEO] highlighting concept.
(1.52 MB, video/quicktime)
2015-01-13 16:13 PST
,
Jonathan Wells
no flags
Details
Patch
(2.62 KB, patch)
2015-01-13 19:24 PST
,
Nikita Vasilyev
no flags
Details
Formatted Diff
Diff
Animated GIF with the patch applied
(846.38 KB, image/gif)
2015-01-13 19:25 PST
,
Nikita Vasilyev
no flags
Details
View All
Add attachment
proposed patch, testcase, etc.
Radar WebKit Bug Importer
Comment 1
2015-01-13 01:34:26 PST
<
rdar://problem/19454992
>
Jonathan Wells
Comment 2
2015-01-13 16:07:57 PST
I like proposed solution 2. You could also have a lighter highlight behind the full text, as if to indicate that cmd-c will copy the text. Then if the user selects a subset of the full text, only that text has that lighter color highlight behind it. If the user deselects that text, say by single clicking within the same error, the highlight expands back to the full text. The sidebar highlight (darker) remains the same the whole time.
Jonathan Wells
Comment 3
2015-01-13 16:13:31 PST
Created
attachment 244561
[details]
[VIDEO] highlighting concept. [VIDEO] highlighting concept. Here is a video with something along the lines of what I'm suggesting.
Timothy Hatcher
Comment 4
2015-01-13 16:25:29 PST
I like that.
Nikita Vasilyev
Comment 5
2015-01-13 18:26:53 PST
Jonathan, I agree on the highlight behind the full text. If we ever decide to color code different messages types using background color (e.g. slightly yellow for console.warm) it would compete with the selection message background, but until when it’s fine.
Nikita Vasilyev
Comment 6
2015-01-13 19:24:39 PST
Created
attachment 244570
[details]
Patch
Nikita Vasilyev
Comment 7
2015-01-13 19:25:46 PST
Created
attachment 244571
[details]
Animated GIF with the patch applied
Nikita Vasilyev
Comment 8
2015-01-13 19:29:59 PST
Tim and I liked the solution 1 a little bit more so I went with that approach. Although, I added a slight background and source link highlight.
Nikita Vasilyev
Comment 9
2015-01-13 19:31:39 PST
(In reply to
comment #2
)
> You could also have a lighter highlight behind the full text, as if to > indicate that cmd-c will copy the text. Then if the user selects a subset of > the full text, only that text has that lighter color highlight behind it. If > the user deselects that text, say by single clicking within the same error, > the highlight expands back to the full text. > > The sidebar highlight (darker) remains the same the whole time.
This sounds like a good idea. It requires changes in JS and I’d prefer doing it as a separate patch.
Timothy Hatcher
Comment 10
2015-01-14 00:07:09 PST
Comment on
attachment 244570
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=244570&action=review
> Source/WebInspectorUI/UserInterface/Views/LogContentView.css:70 > + background: hsl(0, 0%, 60%);
Maybe we should use hsl more for gray colors elsewhere.
> Source/WebInspectorUI/UserInterface/Views/LogContentView.css:75 > + background: hsl(210, 100%, 49%);
Why not 50%?
Timothy Hatcher
Comment 11
2015-01-14 10:15:21 PST
Comment on
attachment 244570
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=244570&action=review
>> Source/WebInspectorUI/UserInterface/Views/LogContentView.css:70 >> + background: hsl(0, 0%, 60%); > > Maybe we should use hsl more for gray colors elsewhere.
Or more colors in general, not just gray.
Timothy Hatcher
Comment 12
2015-01-14 10:17:03 PST
(In reply to
comment #9
)
> (In reply to
comment #2
) > > You could also have a lighter highlight behind the full text, as if to > > indicate that cmd-c will copy the text. Then if the user selects a subset of > > the full text, only that text has that lighter color highlight behind it. If > > the user deselects that text, say by single clicking within the same error, > > the highlight expands back to the full text. > > > > The sidebar highlight (darker) remains the same the whole time. > > This sounds like a good idea. It requires changes in JS and I’d prefer doing > it as a separate patch.
We already hide the background selection color if you make a text selection. I think the only change would be to keep the dark sidebar color.
Nikita Vasilyev
Comment 13
2015-01-14 17:27:36 PST
(In reply to
comment #10
)
> Comment on
attachment 244570
[details]
> Patch > > View in context: >
https://bugs.webkit.org/attachment.cgi?id=244570&action=review
> > > Source/WebInspectorUI/UserInterface/Views/LogContentView.css:70 > > + background: hsl(0, 0%, 60%); > > Maybe we should use hsl more for gray colors elsewhere. > > > Source/WebInspectorUI/UserInterface/Views/LogContentView.css:75 > > + background: hsl(210, 100%, 49%); > > Why not 50%?
I used the exact same color as in DOM tree selection but converted it from RGB to HSL: .dom-tree-outline:focus li.selected .selection { background-color: rgb(0, 128, 252); }
Nikita Vasilyev
Comment 14
2015-01-14 17:37:46 PST
(In reply to
comment #12
)
> (In reply to
comment #9
) > > (In reply to
comment #2
) > > > You could also have a lighter highlight behind the full text, as if to > > > indicate that cmd-c will copy the text. Then if the user selects a subset of > > > the full text, only that text has that lighter color highlight behind it. If > > > the user deselects that text, say by single clicking within the same error, > > > the highlight expands back to the full text. > > > > > > The sidebar highlight (darker) remains the same the whole time. > > > > This sounds like a good idea. It requires changes in JS and I’d prefer doing > > it as a separate patch. > > We already hide the background selection color if you make a text selection. > I think the only change would be to keep the dark sidebar color.
Yes. Currently, when we select a portion of a console message, CSS class that is responsible for the border gets removed. So we need two different CSS classes. One for dark blue sidebar and another one for selected console message background.
WebKit Commit Bot
Comment 15
2015-01-16 18:26:27 PST
Comment on
attachment 244570
[details]
Patch Clearing flags on attachment: 244570 Committed
r178620
: <
http://trac.webkit.org/changeset/178620
>
WebKit Commit Bot
Comment 16
2015-01-16 18:26:31 PST
All reviewed patches have been landed. Closing bug.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug