ambitious-knife-25690
07/10/2020, 1:54 PMambitious-knife-25690
07/10/2020, 1:55 PMbackgroundColor: 'fade(theme.palette.common.white, 0.15)',
not work as well?user
07/10/2020, 1:55 PMuser
07/10/2020, 1:56 PMuser
07/10/2020, 1:57 PMuser
07/10/2020, 1:57 PMfade
.. maybe they're somewhere x)ambitious-knife-25690
07/10/2020, 1:58 PMambitious-knife-25690
07/10/2020, 1:58 PMuser
07/10/2020, 1:58 PMuser
07/10/2020, 1:58 PMuser
07/10/2020, 2:00 PMambitious-knife-25690
07/10/2020, 2:00 PMambitious-knife-25690
07/10/2020, 2:01 PMuser
07/10/2020, 2:02 PM[theme.breakpoints.up('sm')]: { ...
syntax is annoying..
I could somehow support it in haxe but that's not as easy as string interpolation since it wants a real array, not a string representation of an array (so I cannot just tell haxe to do string interpolation there)user
07/10/2020, 2:03 PM'${theme.breakpoints.up('sm')}': { ... }
, '${theme.breakpoints.up('sm')}, ${theme.breakpoints.up('md')}': { ... }
, etc.user
07/10/2020, 2:04 PMambitious-knife-25690
07/10/2020, 2:05 PMambitious-knife-25690
07/10/2020, 2:05 PMfade
? I'm not familiar with macros but I have a bit of spare time that I could maybe go fiddlingambitious-knife-25690
07/10/2020, 2:06 PMuser
07/10/2020, 2:06 PMfade
should just be an extern to fade
in '@material-ui/core/styles'ambitious-knife-25690
07/10/2020, 2:08 PMambitious-knife-25690
07/10/2020, 2:08 PMuser
07/10/2020, 2:09 PMuser
07/10/2020, 2:09 PMuser
07/10/2020, 2:11 PM@:jsRequire('@material-ui/core/styles', 'fade')
extern class Fade {
// Note: using T instead of real color type because I don't remember where
// it is (or if it exists) x)
@:selfCall
public static function fade<T>(color:T, amount:Float):T;
}
No idea about actual arguments, etc. thoughuser
07/10/2020, 2:13 PMT
seems to be just String
user
07/10/2020, 2:13 PMColorString
from mui.Colors
I guessambitious-knife-25690
07/10/2020, 2:13 PMambitious-knife-25690
07/10/2020, 2:13 PMuser
07/10/2020, 2:14 PM