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;
|
paragraph: string;
|
||||||
/**
|
/**
|
||||||
* Only Hex RGB values are supported. No Alpha. (e.g. #f33ff3)
|
* Hex RGB & ARGB values both are supported. (e.g. #dbdbdb99)
|
||||||
* @pattern ^#(?:[0-9a-fA-F]{3}){1,2}$
|
* @pattern ^#(?:(?:[\da-fA-F]{3}){1,2}|(?:[\da-fA-F]{4}){1,2})$
|
||||||
*/
|
*/
|
||||||
background: string;
|
background: string;
|
||||||
/**
|
/**
|
||||||
@@ -310,7 +310,12 @@ export const COLORS: readonly (keyof Colors)[] = [
|
|||||||
"backdrop"
|
"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)[] = [
|
export const Variants: readonly (keyof Variants)[] = [
|
||||||
"primary",
|
"primary",
|
||||||
|
|||||||
@@ -218,8 +218,8 @@
|
|||||||
},
|
},
|
||||||
"background": {
|
"background": {
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"description": "Only Hex RGB values are supported. No Alpha. (e.g. #f33ff3)",
|
"description": "Hex RGB & ARGB values both are supported. (e.g. #dbdbdb99)",
|
||||||
"pattern": "^#(?:[0-9a-fA-F]{3}){1,2}$"
|
"pattern": "^#(?:(?:[\\da-fA-F]{3}){1,2}|(?:[\\da-fA-F]{4}){1,2})$"
|
||||||
},
|
},
|
||||||
"border": {
|
"border": {
|
||||||
"type": "string",
|
"type": "string",
|
||||||
@@ -328,8 +328,8 @@
|
|||||||
},
|
},
|
||||||
"background": {
|
"background": {
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"description": "Only Hex RGB values are supported. No Alpha. (e.g. #f33ff3)",
|
"description": "Hex RGB & ARGB values both are supported. (e.g. #dbdbdb99)",
|
||||||
"pattern": "^#(?:[0-9a-fA-F]{3}){1,2}$"
|
"pattern": "^#(?:(?:[\\da-fA-F]{3}){1,2}|(?:[\\da-fA-F]{4}){1,2})$"
|
||||||
},
|
},
|
||||||
"border": {
|
"border": {
|
||||||
"type": "string",
|
"type": "string",
|
||||||
|
|||||||
Reference in New Issue
Block a user