mirror of
https://github.com/cinnyapp/cinny.git
synced 2025-11-15 11:40:29 +03:00
Add toggle to use browser's preferred theme (#224)
* Add Auto theme that uses browser's preferred color scheme This will use dark mode automatically if the browser requests it. * fixup! Add Auto theme that uses browser's preferred color scheme * Use a toggle to use system theme
This commit is contained in:
parent
63a0adaa6e
commit
11f395f65f
5 changed files with 74 additions and 14 deletions
|
|
@ -1,6 +1,12 @@
|
|||
import appDispatcher from '../dispatcher';
|
||||
import cons from '../state/cons';
|
||||
|
||||
export function toggleSystemTheme() {
|
||||
appDispatcher.dispatch({
|
||||
type: cons.actions.settings.TOGGLE_SYSTEM_THEME,
|
||||
});
|
||||
}
|
||||
|
||||
export function toggleMarkdown() {
|
||||
appDispatcher.dispatch({
|
||||
type: cons.actions.settings.TOGGLE_MARKDOWN,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue