feat: keyboard shortcuts for themes

This commit is contained in:
liyasthomas
2022-01-01 19:32:34 +05:30
parent 1baf73a710
commit bb5acf97c6
35 changed files with 359 additions and 98 deletions

View File

@@ -280,4 +280,32 @@ export const fuse = [
icon: "gift",
tags: ["invite", "share", "app", "friends", "people", "social"],
},
{
keys: [getPlatformAlternateKey(), "0"],
label: "shortcut.theme.system",
action: "settings.theme.system",
icon: "monitor",
tags: ["theme", "system"],
},
{
keys: [getPlatformAlternateKey(), "1"],
label: "shortcut.theme.light",
action: "settings.theme.light",
icon: "sun",
tags: ["theme", "light"],
},
{
keys: [getPlatformAlternateKey(), "2"],
label: "shortcut.theme.dark",
action: "settings.theme.dark",
icon: "cloud",
tags: ["theme", "dark"],
},
{
keys: [getPlatformAlternateKey(), "3"],
label: "shortcut.theme.black",
action: "settings.theme.black",
icon: "moon",
tags: ["theme", "black"],
},
]