Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F99924543
palette.js
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Mon, Jan 27, 07:38
Size
637 B
Mime Type
text/x-java
Expires
Wed, Jan 29, 07:38 (1 d, 4 h)
Engine
blob
Format
Raw Data
Handle
23808651
Attached To
rOACCT Open Access Compliance Check Tool (OACCT)
palette.js
View Options
import style from './style';
import compose from './compose';
export function paletteTransform(value, userValue) {
if (userValue === 'grey') {
return userValue;
}
return value;
}
export const color = style({
prop: 'color',
themeKey: 'palette',
transform: paletteTransform
});
export const bgcolor = style({
prop: 'bgcolor',
cssProperty: 'backgroundColor',
themeKey: 'palette',
transform: paletteTransform
});
export const backgroundColor = style({
prop: 'backgroundColor',
themeKey: 'palette',
transform: paletteTransform
});
const palette = compose(color, bgcolor, backgroundColor);
export default palette;
Event Timeline
Log In to Comment