added commands for the timer color

This commit is contained in:
Jack 2020-07-12 00:45:52 +01:00
parent 3d57e1c23b
commit de4ad79304

View file

@ -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: [