Skip to content

Commit 3c52acd

Browse files
Change theme icon
1 parent aae6dc4 commit 3c52acd

File tree

4 files changed

+6
-1
lines changed

4 files changed

+6
-1
lines changed

src/librustdoc/html/layout.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,8 @@ r##"<!DOCTYPE html>
7070
{sidebar}
7171
</nav>
7272
73-
<div id="theme-picker">&#x1f58c;
73+
<div id="theme-picker">
74+
<img src="{root_path}brush.svg" width="18" alt="Pick another theme!">
7475
<div id="theme-choices"></div>
7576
</div>
7677
<script src="{root_path}theme.js"></script>

src/librustdoc/html/render.rs

+2
Original file line numberDiff line numberDiff line change
@@ -890,6 +890,8 @@ fn write_shared(cx: &Context,
890890
themes.insert(try_none!(try_none!(entry.file_stem(), &entry).to_str(), &entry).to_owned());
891891
}
892892

893+
write(cx.dst.join("brush.svg"),
894+
include_bytes!("static/brush.svg"))?;
893895
write(cx.dst.join("main.css"),
894896
include_bytes!("static/themes/main.css"))?;
895897
themes.insert("main".to_owned());

src/librustdoc/html/static/brush.svg

+1
Loading

src/librustdoc/html/static/themes/dark.css

+1
Original file line numberDiff line numberDiff line change
@@ -361,6 +361,7 @@ kbd {
361361

362362
#theme-picker {
363363
border-color: #e0e0e0;
364+
background: #f0f0f0;
364365
}
365366

366367
#theme-choices {

0 commit comments

Comments
 (0)