<feed xmlns='http://www.w3.org/2005/Atom'>
<title>rust/src/test/rustdoc-gui/font-weight.goml, branch master</title>
<subtitle>https://github.com/rust-lang/rust
</subtitle>
<id>http://git.dreamy.place/mirrors/rust/atom?h=master</id>
<link rel='self' href='http://git.dreamy.place/mirrors/rust/atom?h=master'/>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/'/>
<updated>2023-01-11T09:32:08+00:00</updated>
<entry>
<title>Move /src/test to /tests</title>
<updated>2023-01-11T09:32:08+00:00</updated>
<author>
<name>Albert Larsan</name>
<email>74931857+albertlarsan68@users.noreply.github.com</email>
</author>
<published>2023-01-05T08:13:28+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=cf2dff2b1e3fa55fa5415d524200070d0d7aacfe'/>
<id>urn:sha1:cf2dff2b1e3fa55fa5415d524200070d0d7aacfe</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Update rustdoc-gui test to new browser-ui-test version</title>
<updated>2022-10-07T18:17:22+00:00</updated>
<author>
<name>Guillaume Gomez</name>
<email>guillaume.gomez@huawei.com</email>
</author>
<published>2022-10-07T18:17:05+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=8d19d53c60bcebf81030058b0b61f9a286a9c2d6'/>
<id>urn:sha1:8d19d53c60bcebf81030058b0b61f9a286a9c2d6</id>
<content type='text'>
</content>
</entry>
<entry>
<title>rustdoc: remove bad CSS font-weight on `.impl`, `.method`, etc</title>
<updated>2022-09-28T23:18:12+00:00</updated>
<author>
<name>Michael Howell</name>
<email>michael@notriddle.com</email>
</author>
<published>2022-09-28T21:47:56+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=3f21f07e72eeb8dabdcf76bfda00028d607632d5'/>
<id>urn:sha1:3f21f07e72eeb8dabdcf76bfda00028d607632d5</id>
<content type='text'>
This line was added in c494a06064017f307a8d9dc4797e614d2ed99143, because at
the time, the headers had these classes on them. Now, the headers are
children of the `&lt;section&gt;` with the class on it.

This commit also adds a test case, to make sure the srclink font weight does
not regress again.
</content>
</entry>
<entry>
<title>rustdoc: update test cases for changed item-decl HTML</title>
<updated>2022-09-19T20:39:31+00:00</updated>
<author>
<name>Michael Howell</name>
<email>michael@notriddle.com</email>
</author>
<published>2022-09-19T19:17:05+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=8e6cf7d84089862aad9711792ccbbe58cab28395'/>
<id>urn:sha1:8e6cf7d84089862aad9711792ccbbe58cab28395</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Add missing GUI test explanations</title>
<updated>2022-01-21T19:41:47+00:00</updated>
<author>
<name>Guillaume Gomez</name>
<email>guillaume.gomez@huawei.com</email>
</author>
<published>2022-01-21T19:41:47+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=78cee22fb4c6c4b57a7e96b25e90ca50d67a3c3a'/>
<id>urn:sha1:78cee22fb4c6c4b57a7e96b25e90ca50d67a3c3a</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Rollup merge of #91480 - jsha:fewer-colors, r=GuillaumeGomez</title>
<updated>2021-12-31T22:14:45+00:00</updated>
<author>
<name>Matthias Krüger</name>
<email>matthias.krueger@famsik.de</email>
</author>
<published>2021-12-31T22:14:45+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=72e36d47e830a175815aba937d8a669d72d028fd'/>
<id>urn:sha1:72e36d47e830a175815aba937d8a669d72d028fd</id>
<content type='text'>
rustdoc: use smaller number of colors to distinguish items

This reduces visual distractions when reading method signatures.

As discussed in https://github.com/rust-lang/rust/issues/59845#issuecomment-974757191, this categorizes items into one of six colors (down from thirteen):

 - method, function (ochre `#AD7C37`)
 - trait, trait alias (dark slate blue `#6E4FC9`)
 - enum, struct, type alias, union, primitive (maroon `#AD378A`)
 - static, module, keyword, associated type, foreign type (steel blue `#3873AD`)
 - macro (green `#068000`)
 - generic params, self, Self (unmarked black `#000000`)

I slightly tweaked the actual color values so they'd have the same lightness (previously the trait color stood out much more than the others). And I made the color for links in general consistently use steel blue (previously there was a slightly different color for "search-failed").

The ayu and dark themes have been updated according to the same logic. I haven't changed any of the color values in those themes, just their assignment to types.

Demo:

https://rustdoc.crud.net/jsha/fewer-colors/std/string/struct.String.html
https://rustdoc.crud.net/jsha/fewer-colors/std/vec/struct.Vec.html
https://rustdoc.crud.net/jsha/fewer-colors/std/io/trait.Read.html
https://rustdoc.crud.net/jsha/fewer-colors/std/iter/trait.Iterator.html
</content>
</entry>
<entry>
<title>Update browser-ui-test version and improve rustdoc-gui tests readability</title>
<updated>2021-12-12T17:28:58+00:00</updated>
<author>
<name>Guillaume Gomez</name>
<email>guillaume.gomez@huawei.com</email>
</author>
<published>2021-12-12T17:28:58+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=632508698a175d0d1cadfa8ad0f64462efdcf9f1'/>
<id>urn:sha1:632508698a175d0d1cadfa8ad0f64462efdcf9f1</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Split CSS classes for "typedef" vs "associatedtype".</title>
<updated>2021-12-11T06:25:43+00:00</updated>
<author>
<name>Jacob Hoffman-Andrews</name>
<email>github@hoffman-andrews.com</email>
</author>
<published>2021-12-10T19:35:26+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=3f517fb1ae1af9f10e0e7492f725b729202499cf'/>
<id>urn:sha1:3f517fb1ae1af9f10e0e7492f725b729202499cf</id>
<content type='text'>
</content>
</entry>
<entry>
<title>* Remove left margin on items declaration at the top of their documentation page</title>
<updated>2021-10-18T13:06:38+00:00</updated>
<author>
<name>Guillaume Gomez</name>
<email>guillaume.gomez@huawei.com</email>
</author>
<published>2021-10-18T12:49:25+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=8b7a2dd4626acf164e1ce8397878b3f5af83d585'/>
<id>urn:sha1:8b7a2dd4626acf164e1ce8397878b3f5af83d585</id>
<content type='text'>
* Rename "type-decl" into "item-decl" to reflect the change of usage
</content>
</entry>
<entry>
<title>Remove bolding on associated constants</title>
<updated>2021-08-31T16:53:21+00:00</updated>
<author>
<name>Noah Lev</name>
<email>camelidcamel@gmail.com</email>
</author>
<published>2021-08-23T17:49:56+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=87e39ac1ec0df8c45a4441cf6bb905d7fd282354'/>
<id>urn:sha1:87e39ac1ec0df8c45a4441cf6bb905d7fd282354</id>
<content type='text'>
Associated types don't get bolded, so it looks off to have one kind
bolded and one not.
</content>
</entry>
</feed>
