Theme changes
This commit is contained in:
@@ -72,15 +72,6 @@ export function useCommonHooks() {
|
||||
},
|
||||
});
|
||||
|
||||
const modalStyle = {
|
||||
'--color-text-pri': theme?.primaryColor,
|
||||
'--color-text-acc': theme?.accentColor,
|
||||
'--color-background': theme?.backgroundColor,
|
||||
'--color-border': theme?.borderColor,
|
||||
'--color-search-background': theme?.searchColor,
|
||||
'--image-background': `url(${theme?.backgroundImage})`,
|
||||
};
|
||||
|
||||
const urlPattern = new RegExp(
|
||||
'^(https?:\\/\\/)?' + // protocol
|
||||
'((([a-z\\d]([a-z\\d-]*[a-z\\d])*)\\.)+[a-z]{2,}|' + // domain name
|
||||
@@ -131,7 +122,6 @@ export function useCommonHooks() {
|
||||
isMobile,
|
||||
theme,
|
||||
setTheme,
|
||||
modalStyle,
|
||||
urlPattern,
|
||||
fixDigits,
|
||||
reorder,
|
||||
|
||||
Reference in New Issue
Block a user