mirror of
https://github.com/streetwriters/notesnook.git
synced 2025-12-16 19:57:52 +01:00
theme: support ARGB values in background
This commit is contained in:
@@ -186,8 +186,8 @@ export type Colors = {
|
||||
*/
|
||||
paragraph: string;
|
||||
/**
|
||||
* Only Hex RGB values are supported. No Alpha. (e.g. #f33ff3)
|
||||
* @pattern ^#(?:[0-9a-fA-F]{3}){1,2}$
|
||||
* Hex RGB & ARGB values both are supported. (e.g. #dbdbdb99)
|
||||
* @pattern ^#(?:(?:[\da-fA-F]{3}){1,2}|(?:[\da-fA-F]{4}){1,2})$
|
||||
*/
|
||||
background: string;
|
||||
/**
|
||||
@@ -310,7 +310,12 @@ export const COLORS: readonly (keyof Colors)[] = [
|
||||
"backdrop"
|
||||
];
|
||||
|
||||
export const ALPHA_COLORS: readonly (keyof Colors)[] = ["hover", "backdrop"];
|
||||
export const ALPHA_COLORS: readonly (keyof Colors)[] = [
|
||||
"hover",
|
||||
"backdrop",
|
||||
"background",
|
||||
"placeholder"
|
||||
];
|
||||
|
||||
export const Variants: readonly (keyof Variants)[] = [
|
||||
"primary",
|
||||
|
||||
@@ -218,8 +218,8 @@
|
||||
},
|
||||
"background": {
|
||||
"type": "string",
|
||||
"description": "Only Hex RGB values are supported. No Alpha. (e.g. #f33ff3)",
|
||||
"pattern": "^#(?:[0-9a-fA-F]{3}){1,2}$"
|
||||
"description": "Hex RGB & ARGB values both are supported. (e.g. #dbdbdb99)",
|
||||
"pattern": "^#(?:(?:[\\da-fA-F]{3}){1,2}|(?:[\\da-fA-F]{4}){1,2})$"
|
||||
},
|
||||
"border": {
|
||||
"type": "string",
|
||||
@@ -328,8 +328,8 @@
|
||||
},
|
||||
"background": {
|
||||
"type": "string",
|
||||
"description": "Only Hex RGB values are supported. No Alpha. (e.g. #f33ff3)",
|
||||
"pattern": "^#(?:[0-9a-fA-F]{3}){1,2}$"
|
||||
"description": "Hex RGB & ARGB values both are supported. (e.g. #dbdbdb99)",
|
||||
"pattern": "^#(?:(?:[\\da-fA-F]{3}){1,2}|(?:[\\da-fA-F]{4}){1,2})$"
|
||||
},
|
||||
"border": {
|
||||
"type": "string",
|
||||
|
||||
Reference in New Issue
Block a user