chore: 🤖 apply a section title to theme toggle dropdown

This commit is contained in:
Randall Morey committed 2020-11-04 16:28:07 -05:00
1 parent 8df002a73b
commit 2b4f5dbe16
2 files changed
+20 -17

No files matched your search

+19 -17
View File
@@ -32,23 +32,25 @@
<dropdown.separator />
<Rose::Form as |form|>
<form.radioGroup
@name="theme"
@selectedValue={{this.session.data.theme}}
@changed={{route-action "toggleTheme"}}
as |radioGroup|>
<dropdown.item>
<radioGroup.radio @label={{t "themes.system"}} />
</dropdown.item>
<dropdown.item>
<radioGroup.radio @label={{t "themes.light"}} @value="light" />
</dropdown.item>
<dropdown.item>
<radioGroup.radio @label={{t "themes.dark"}} @value="dark" />
</dropdown.item>
</form.radioGroup>
</Rose::Form>
<dropdown.section @title={{t "titles.toggle-color-theme"}}>
<Rose::Form as |form|>
<form.radioGroup
@name="theme"
@selectedValue={{this.session.data.theme}}
@changed={{route-action "toggleTheme"}}
as |radioGroup|>
<dropdown.item>
<radioGroup.radio @label={{t "themes.system"}} />
</dropdown.item>
<dropdown.item>
<radioGroup.radio @label={{t "themes.light"}} @value="light" />
</dropdown.item>
<dropdown.item>
<radioGroup.radio @label={{t "themes.dark"}} @value="dark" />
</dropdown.item>
</form.radioGroup>
</Rose::Form>
</dropdown.section>
</utilities.dropdown>
</header.utilities>
+1
View File
@@ -19,6 +19,7 @@ titles:
actions: Actions
documentation: Documentation
abandon-confirm: Discard unsaved changes?
toggle-color-theme: Toggle Color Theme
descriptions:
empty-set: There are no items to display yet. You may be able to add items or try back later.
questions: