Skip to content

Commit

Permalink
kup-theme-application : iconLayerDemo
Browse files Browse the repository at this point in the history
  • Loading branch information
Leonardo-Signorelli committed May 9, 2024
1 parent d0f7a26 commit 697981b
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 1 deletion.
10 changes: 10 additions & 0 deletions packages/ketchup/src/components.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2807,6 +2807,11 @@ export namespace Components {
* This method is used to trigger a new render of the component.
*/
"refresh": () => Promise<void>;
/**
* Credentials sending along with request
* @default true
*/
"sendCredentials": boolean;
/**
* Sets the props to the component.
* @param props - Object containing props that will be set to the component.
Expand Down Expand Up @@ -7447,6 +7452,11 @@ declare namespace LocalJSX {
* @default null
*/
"pdfPath"?: string;
/**
* Credentials sending along with request
* @default true
*/
"sendCredentials"?: boolean;
}
interface KupPhotoFrame {
/**
Expand Down
4 changes: 3 additions & 1 deletion packages/ketchup/src/f-components/f-image/f-image.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,9 @@ function createIcon(props: FImageProps): HTMLDivElement {
'f-image__icon': true,
};
const style: GenericObject = {
background: props.color ? props.color : `var(--kup-gray-color-70)`,
background: props.color
? props.color
: `var(--kup-icon-layer, var(--kup-gray-color-70))`,
};
if (props.resource.indexOf('--kup') > -1) {
let themeIcon: string = props.resource.replace('--', '');
Expand Down
21 changes: 21 additions & 0 deletions packages/ketchup/src/managers/kup-theme/kup-theme-application.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,24 @@
/*-------------------------------------------------*/
/* Custom CSS */
/*-------------------------------------------------*/

:root {
--kup-layer-0: var(--kup-gray-color-0);
--kup-layer-1: var(--kup-gray-color-10);
--kup-layer-2: var(--kup-gray-color-20);
--kup-layer-3: var(--kup-gray-color-30);
--kup-icon-layer: var(--kup-gray-color-70);
--kup-imagelist-item-background-color : var(--kup-gray-color-10);
}

:root[kup-theme='ocean'] {
--kup-icon-layer: var(--kup-primary-color-70);
}

:root[kup-theme='ketchup'] {
--kup-icon-layer: red;
}

/*-------------------------------------------------*/
/* E d i t o r */
/*-------------------------------------------------*/
Expand Down

0 comments on commit 697981b

Please sign in to comment.