-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
129 additions
and
54 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,11 @@ | ||
/* import icons css file */ | ||
@import "../src/services/icons/icons.css"; | ||
|
||
.icon-zaken-widget { | ||
background-image: url("../img/app-dark.svg"); | ||
filter: var(--background-invert-if-dark); | ||
} | ||
|
||
body.theme--dark .icon-zaken-widget { | ||
background-image: url("../img/app.svg"); | ||
} | ||
|
||
background-image: url("../img/app-dark.svg"); | ||
filter: var(--background-invert-if-dark); | ||
} | ||
|
||
body.theme--dark .icon-zaken-widget { | ||
background-image: url("../img/app.svg"); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import { getTheme } from '../../getTheme.js' | ||
|
||
/** | ||
* Returns the correct 'pencil' icon based on the theme as a class name. | ||
* | ||
* this class name can be put into a component that accepts an 'icon' prop | ||
* @return {string} | ||
*/ | ||
export function iconPencil() { | ||
const theme = getTheme() | ||
|
||
return theme === 'light' ? 'icon-pencil-dark' : 'icon-pencil-light' | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import { getTheme } from '../../getTheme.js' | ||
|
||
/** | ||
* Returns the correct 'progress close' icon based on the theme as a class name. | ||
* | ||
* this class name can be put into a component that accepts an 'icon' prop | ||
* @return {string} | ||
*/ | ||
export function iconProgressClose() { | ||
const theme = getTheme() | ||
|
||
return theme === 'light' ? 'icon-progress-close-dark' : 'icon-progress-close-light' | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
import { iconProgressClose as _iconProgressClose } from './icon/icon-progress-close.js' | ||
import { iconPencil as _iconPencil } from './icon/icon-pencil.js' | ||
|
||
export const iconProgressClose = _iconProgressClose() | ||
export const iconPencil = _iconPencil() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters