Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upMake selection blue instead of orange #10231
Conversation
highfive
commented
Mar 28, 2016
|
(need to update the test) |
|
So, native widget selection colors are:
And for browserhtml, we need black on light blue. Until we get some support for querying the OS widget, let's go for what makes sense for browserhtml. |
Unless we have designers making sure everything works well in every possible configuration (which even Firefox apparently doesn’t), I’m strongly against querying the OS for colors. I use the "dark" variation of GNOME’s default theme (texts are white on dark grey backgrounds) but Firefox is utterly broken with that theme: many things end up with unreadable black text on dark background, and dark background buttons and input fields look very out of place in websites with otherwise light background. The 15-years-old bug on this is https://bugzilla.mozilla.org/show_bug.cgi?id=70315 , still relevant with the recent switch to GTK 3. To make Firefox usable I launch it with a script that sets an environment variable to select the light GTK theme. |
|
Agreed. |
|
@bors-servo r+ Reviewed 3 of 3 files at r2. Comments from the review on Reviewable.io |
|
|
|
Maybe make this a pref? (I don't object to the change in this PR though.) |
Make selection blue instead of orange PR #10176 add a background color for selected text. It uses a builtin color until `::selection` is supported. ~~Orange makes sense for Linux. Let's make it blue for windows and mac.~~ See #10231 (comment) <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/10231) <!-- Reviewable:end -->
|
|
We could add that to glutin, or have any widget code that would give us these colors for the 3 platforms. We will have similar issues for buttons, checkboxes, text input (etc) shapes and colors. I personally believe that content should not match the OS colors/shapes. Web developers fight against it all the time and browsers have inconsistent behaviors. |
|
Fair enough, thanks for the explanation |
…lrouget:selectionColor); r=mbrubeck PR servo/servo#10176 add a background color for selected text. It uses a builtin color until `::selection` is supported. ~~Orange makes sense for Linux. Let's make it blue for windows and mac.~~ See servo/servo#10231 (comment) Source-Repo: https://github.com/servo/servo Source-Revision: cf4fa0a9f463f9bdfc5daef7f6bf9d6e1d151aa6 UltraBlame original commit: 95ef72f1a6e7ee93eb4d6cc096da8fbf6a52d90a
…lrouget:selectionColor); r=mbrubeck PR servo/servo#10176 add a background color for selected text. It uses a builtin color until `::selection` is supported. ~~Orange makes sense for Linux. Let's make it blue for windows and mac.~~ See servo/servo#10231 (comment) Source-Repo: https://github.com/servo/servo Source-Revision: cf4fa0a9f463f9bdfc5daef7f6bf9d6e1d151aa6 UltraBlame original commit: 95ef72f1a6e7ee93eb4d6cc096da8fbf6a52d90a
…lrouget:selectionColor); r=mbrubeck PR servo/servo#10176 add a background color for selected text. It uses a builtin color until `::selection` is supported. ~~Orange makes sense for Linux. Let's make it blue for windows and mac.~~ See servo/servo#10231 (comment) Source-Repo: https://github.com/servo/servo Source-Revision: cf4fa0a9f463f9bdfc5daef7f6bf9d6e1d151aa6 UltraBlame original commit: 95ef72f1a6e7ee93eb4d6cc096da8fbf6a52d90a
paulrouget commentedMar 28, 2016
PR #10176 add a background color for selected text. It uses a builtin color until
::selectionis supported.Orange makes sense for Linux. Let's make it blue for windows and mac.See #10231 (comment)This change is