mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-02-03 20:40:48 +08:00
added commands for the timer color
This commit is contained in:
parent
3d57e1c23b
commit
de4ad79304
1 changed files with 43 additions and 0 deletions
|
@ -164,6 +164,15 @@ let commands = {
|
|||
showCommandLine();
|
||||
},
|
||||
},
|
||||
{
|
||||
id: "changeTimerColor",
|
||||
display: "Change timer color...",
|
||||
subgroup: true,
|
||||
exec: () => {
|
||||
currentCommands.push(commandsTimerColor);
|
||||
showCommandLine();
|
||||
},
|
||||
},
|
||||
{
|
||||
id: "changeTheme",
|
||||
display: "Change theme...",
|
||||
|
@ -291,6 +300,40 @@ let commandsTimerStyle = {
|
|||
],
|
||||
};
|
||||
|
||||
let commandsTimerColor = {
|
||||
title: "Change timer color...",
|
||||
list: [
|
||||
{
|
||||
id: "setTimerColorBlack",
|
||||
display: "black",
|
||||
exec: () => {
|
||||
setTimerColor("bar");
|
||||
},
|
||||
},
|
||||
{
|
||||
id: "setTimerColorSub",
|
||||
display: "sub",
|
||||
exec: () => {
|
||||
setTimerColor("sub");
|
||||
},
|
||||
},
|
||||
{
|
||||
id: "setTimerColorText",
|
||||
display: "text",
|
||||
exec: () => {
|
||||
setTimerColor("text");
|
||||
},
|
||||
},
|
||||
{
|
||||
id: "setTimerColorMain",
|
||||
display: "main",
|
||||
exec: () => {
|
||||
setTimerColor("main");
|
||||
},
|
||||
},
|
||||
],
|
||||
};
|
||||
|
||||
let commandsWordCount = {
|
||||
title: "Change word count...",
|
||||
list: [
|
||||
|
|
Loading…
Reference in a new issue