feat: add focus mode

This commit is contained in:
Paul Makles
2022-09-18 12:05:48 +01:00
parent 47bfaad508
commit e6ad6a552e
10 changed files with 40 additions and 12 deletions

View File

@@ -31,6 +31,7 @@ export type Variables =
| "tooltip"
| "status-online"
| "status-away"
| "status-focus"
| "status-busy"
| "status-streaming"
| "status-invisible";
@@ -283,6 +284,7 @@ export const PRESETS: Record<string, Theme> = {
"tertiary-foreground": "#3a3a3a",
"status-online": "#3ABF7E",
"status-away": "#F39F00",
"status-focus": "#4799F0",
"status-busy": "#F84848",
"status-streaming": "#977EFF",
"status-invisible": "#A5A5A5",
@@ -310,6 +312,7 @@ export const PRESETS: Record<string, Theme> = {
"tertiary-foreground": "#848484",
"status-online": "#3ABF7E",
"status-away": "#F39F00",
"status-focus": "#4799F0",
"status-busy": "#F84848",
"status-streaming": "#977EFF",
"status-invisible": "#A5A5A5",
@@ -336,9 +339,8 @@ export const generateVariables = (theme: Theme) => {
if (colour) {
const [r, g, b] = colour;
return `--${key}: ${theme[key]}; --${key}-rgb: ${r}, ${g}, ${b};`;
}
return `--${key}: ${theme[key]};`;
}
return `--${key}: ${theme[key]};`;
});
};