Commit e98ee9e0 authored by Robbie Gibson's avatar Robbie Gibson Committed by Commit Bot

Update chrome://credits styling for dark mode

This makes a few changes to update colors to material colors as well as
adding the dark mode support, with the input of a designer.

The biggest are:
 - changing the background color of an item to google-blue-50/
   google-grey-900 (dark mode)
 - removing the background for the license section, so it's the same
   background color as the overall item
 - making the title and license text color dark blue in light mode
   instead of black (it's still light grey in dark mode)

The bug has some screenshots.

Bug: 1006216
Change-Id: I870609d48f52a617533f4191840cc4daa8be4f19
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1824089Reviewed-by: default avatarDan Beam <dbeam@chromium.org>
Commit-Queue: Robbie Gibson <rkgibson@google.com>
Cr-Commit-Position: refs/heads/master@{#700172}
parent 60ff7073
...@@ -3,20 +3,55 @@ ...@@ -3,20 +3,55 @@
<head> <head>
<meta charset="utf-8"> <meta charset="utf-8">
<meta name="viewport" content="width=device-width"> <meta name="viewport" content="width=device-width">
<meta name="color-scheme" content="light dark">
<title>Credits</title> <title>Credits</title>
<link rel="stylesheet" href="chrome://resources/css/text_defaults.css"> <link rel="stylesheet" href="chrome://resources/css/text_defaults.css">
<style> <style>
html {
--google-blue-50: rgb(232, 240, 254);
--google-blue-300: rgb(138, 180, 248);
--google-blue-600: rgb(26, 115, 232);
--google-blue-900: rgb(23, 78, 166);
--google-grey-200: rgb(232, 234, 237);
--google-grey-800: rgb(60, 64, 67);
--google-grey-900: rgb(32, 33, 36);
--interactive-color: var(--google-blue-600);
--primary-color: var(--google-grey-900);
--product-background: var(--google-blue-50);
--product-text-color: var(--google-blue-900);
background: white;
}
@media (prefers-color-scheme: dark) {
html {
--interactive-color: var(--google-blue-300);
--primary-color: var(--google-grey-200);
--product-background: var(--google-grey-800);
--product-text-color: var(--google-grey-200);
background: var(--google-grey-900);
}
}
body { body {
background-color: white; color: var(--primary-color);
font-size: 84%; font-size: 84%;
max-width: 1020px; max-width: 1020px;
} }
a {
color: var(--interactive-color);
}
.page-title { .page-title {
font-size: 164%; font-size: 164%;
font-weight: bold; font-weight: bold;
} }
.product { .product {
background-color: #c3d9ff; background-color: var(--product-background);
color: var(--product-text-color);
border-radius: 5px; border-radius: 5px;
margin-top: 16px; margin-top: 16px;
overflow: auto; overflow: auto;
...@@ -29,7 +64,7 @@ body { ...@@ -29,7 +64,7 @@ body {
margin: 3px; margin: 3px;
} }
.product .homepage { .product .homepage {
color: blue; color: var(--interactive-color);
float: right; float: right;
margin: 3px; margin: 3px;
text-align: right; text-align: right;
...@@ -38,14 +73,13 @@ body { ...@@ -38,14 +73,13 @@ body {
content: " - "; content: " - ";
} }
.product .show { .product .show {
color: blue; color: var(--interactive-color);
float: right; float: right;
margin: 3px; margin: 3px;
text-align: right; text-align: right;
text-decoration: underline; text-decoration: underline;
} }
.licence { .licence {
background-color: #e8eef7;
border-radius: 3px; border-radius: 3px;
clear: both; clear: both;
display: none; display: none;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment