Skip to content

Commit fdd3618

Browse files
authored
Improve interactivity indicators of theme button (#3637)
1 parent 0f13e64 commit fdd3618

File tree

3 files changed

+14
-6
lines changed

3 files changed

+14
-6
lines changed

lib/resources/styles.css

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,10 @@
9696
cursor: pointer;
9797
}
9898

99+
#theme-button .material-symbols-outlined:hover {
100+
color: var(--main-hyperlinks-color);
101+
}
102+
99103
li .material-symbols-outlined, dt .material-symbols-outlined {
100104
font-size: 1em;
101105
vertical-align: text-bottom;
@@ -870,6 +874,10 @@ button {
870874
cursor: pointer;
871875
}
872876

877+
#sidenav-left-toggle:hover {
878+
color: var(--main-hyperlinks-color);
879+
}
880+
873881
/* left-nav disappears, and can transition in from the left */
874882
@media screen and (max-width:840px) {
875883
#sidenav-left-toggle {

lib/src/generator/templates.aot_renderers_for_html.dart

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3642,14 +3642,14 @@ String _deduplicated_lib_templates_html__head_html(TemplateDataBase context0) {
36423642
<form class="search navbar-right" role="search">
36433643
<input type="text" id="search-box" autocomplete="off" disabled class="form-control typeahead" placeholder="Loading search...">
36443644
</form>
3645-
<div class="toggle" id="theme-button">
3645+
<div class="toggle" id="theme-button" title="Toggle brightness">
36463646
<label for="theme">
36473647
<input type="checkbox" id="theme" value="light-theme">
36483648
<span id="dark-theme-button" class="material-symbols-outlined">
3649-
brightness_4
3649+
dark_mode
36503650
</span>
36513651
<span id="light-theme-button" class="material-symbols-outlined">
3652-
brightness_5
3652+
light_mode
36533653
</span>
36543654
</label>
36553655
</div>

lib/templates/html/_head.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,14 +54,14 @@
5454
<form class="search navbar-right" role="search">
5555
<input type="text" id="search-box" autocomplete="off" disabled class="form-control typeahead" placeholder="Loading search...">
5656
</form>
57-
<div class="toggle" id="theme-button">
57+
<div class="toggle" id="theme-button" title="Toggle brightness">
5858
<label for="theme">
5959
<input type="checkbox" id="theme" value="light-theme">
6060
<span id="dark-theme-button" class="material-symbols-outlined">
61-
brightness_4
61+
dark_mode
6262
</span>
6363
<span id="light-theme-button" class="material-symbols-outlined">
64-
brightness_5
64+
light_mode
6565
</span>
6666
</label>
6767
</div>

0 commit comments

Comments
 (0)