mirror of
https://github.com/stoatchat/for-legacy-web.git
synced 2026-03-07 09:25:27 +00:00
feat: add focus mode
This commit is contained in:
@@ -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]};`;
|
||||
});
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user