mirror of
https://github.com/CorentinTh/it-tools.git
synced 2025-04-23 16:26:15 -04:00
feat(new tool): camera screenshot and recorder
This commit is contained in:
parent
8515c24264
commit
34d8e5ce2c
15 changed files with 448 additions and 10 deletions
|
@ -45,7 +45,7 @@
|
|||
import _ from 'lodash';
|
||||
|
||||
const buttonVariants = ['basic', 'text'] as const;
|
||||
const buttonTypes = ['default', 'primary', 'warning'] as const;
|
||||
const buttonTypes = ['default', 'primary', 'warning', 'error'] as const;
|
||||
const buttonSizes = ['small', 'medium', 'large'] as const;
|
||||
</script>
|
||||
|
||||
|
|
|
@ -61,6 +61,12 @@ const createTheme = ({ style }: { style: 'light' | 'dark' }) => {
|
|||
hoverBackground: lighten(theme.warning.colorFaded, 30),
|
||||
pressedBackground: darken(theme.warning.colorFaded, 30),
|
||||
}),
|
||||
error: createState({
|
||||
textColor: theme.error.color,
|
||||
backgroundColor: theme.error.colorFaded,
|
||||
hoverBackground: lighten(theme.error.colorFaded, 30),
|
||||
pressedBackground: darken(theme.error.colorFaded, 30),
|
||||
}),
|
||||
},
|
||||
text: {
|
||||
default: createState({
|
||||
|
@ -81,6 +87,12 @@ const createTheme = ({ style }: { style: 'light' | 'dark' }) => {
|
|||
hoverBackground: theme.warning.colorFaded,
|
||||
pressedBackground: darken(theme.warning.colorFaded, 30),
|
||||
}),
|
||||
error: createState({
|
||||
textColor: darken(theme.error.color, 20),
|
||||
backgroundColor: 'transparent',
|
||||
hoverBackground: theme.error.colorFaded,
|
||||
pressedBackground: darken(theme.error.colorFaded, 30),
|
||||
}),
|
||||
},
|
||||
};
|
||||
};
|
||||
|
|
|
@ -18,7 +18,7 @@ import { useAppTheme } from '../theme/themes';
|
|||
|
||||
const props = withDefaults(
|
||||
defineProps<{
|
||||
type?: 'default' | 'primary' | 'warning';
|
||||
type?: 'default' | 'primary' | 'warning' | 'error';
|
||||
variant?: 'basic' | 'text';
|
||||
disabled?: boolean;
|
||||
round?: boolean;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue