Fork me on GitHub
#hoplon
<
2016-10-12
>
flyboarder03:10:31

@vigilancetech: you can prototype your UI using regular CSS and convert it after?

jumblerg12:10:57

@vigilancetech: in ui, the spacing of elems is always controlled by the parent, using the gutter :g and the padding :p attributes. the gutter adds spaces between the child elems, while the padding adds space between the edges. in this case, it sounds like you want :g, :gh, or :gv.

vigilancetech18:10:25

@jumblerg I did try and do that, but I couldn't add enough to push the icons out to the edge. Its like it had padding, but I set the ":p" to zero. Also, when you use a number, what are you specifying exactly? Pixels? I tried it with the size attrib and it seemed to max out at around 1100 is what made me think that.

jumblerg18:10:31

pixels are the default unit, yes.

vigilancetech18:10:32

Do you have an example of how the :inherit and :initial attribs work? They don't seem to do anything

jumblerg18:10:21

they correspond 1:1 with certain css properties, but i never use them with ui.

jumblerg18:10:51

do you have a project i can clone quickly to see the issue you’re having with the icons?

vigilancetech18:10:52

ok, gimme a min to set it up

vigilancetech18:10:23

oh, here's another question while its pushing. On the (image) constructor, how can I get it to use local images (like in the "assets" directory)? The ":src" tag doesn't work. I had to push all my images to dropbox and use ":url". Sorry, I haven't looked extensively at the source code yet to figure it out. Its a bit confusing to me as I'm fairly new to clojure

vigilancetech19:10:14

you can see in the assets folder, the CPU Monitoring1.svg is how its supposed to look

vigilancetech19:10:04

probably best to look at the testing branch

jjttjj19:10:03

@vigilancetech for the image/assets thing, you need to specifcy the :resource-path in build.boot, ie :resource-paths #{"resources"}

jjttjj19:10:52

(image :url "blah.gif") works for me if blah.gif is in the "resources" directory with this setup

vigilancetech20:10:39

@jjttjj ok, I think I tried that but I'll make sure I got it right and try again.

adamfrey21:10:29

Are there any known issues with including core.async in a castra-based backend? I’m finding that -just- by adding [clojure.core.async] to my ns form I get errors on all my castra calls. And I’m getting weird non-deterministic errors too, like

clojure.lang.Compiler$CompilerException: java.lang.IllegalAccessError: prewalk is not public, compiling:(clojure/tools/analyzer/passes.clj:1:1)