Skip to content

Commit

Permalink
Selection is blue on Windows and Mac, orange on Linux
Browse files Browse the repository at this point in the history
  • Loading branch information
paulrouget committed Mar 28, 2016
1 parent b97ffff commit 63a0851
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions components/layout/display_list_builder.rs
Expand Up @@ -106,7 +106,10 @@ const INSERTION_POINT_LOGICAL_WIDTH: Au = Au(1 * AU_PER_PX);

// Colors for selected text. TODO (#8077): Use the ::selection pseudo-element to set these.
const SELECTION_FOREGROUND_COLOR: RGBA = RGBA { red: 1.0, green: 1.0, blue: 1.0, alpha: 1.0 };
#[cfg(target_os="linux")]
const SELECTION_BACKGROUND_COLOR: RGBA = RGBA { red: 1.0, green: 0.5, blue: 0.0, alpha: 1.0 };
#[cfg(not(target_os="linux"))]
const SELECTION_BACKGROUND_COLOR: RGBA = RGBA { red: 0.69, green: 0.84, blue: 1.0, alpha: 1.0 };

// TODO(gw): The transforms spec says that perspective length must
// be positive. However, there is some confusion between the spec
Expand Down

0 comments on commit 63a0851

Please sign in to comment.