Closed passenger94 closed 7 years ago
It's still true -- Nobody knows Shoes~
The manual for this one will be pretty short as it only supports one option :onedot. Is there a way to see what options are available for styles? for example
para "Shoes", align: "center"
align can also be "left" and "right" but how do I find this (except from the manual)? Is there a command to see all available options for shoes elements styles and options?
One funny thing is that besides the shapes above :onedot is also available for arrow. The difference is almost unnoticeable. Probably because the arrow length/thick ratio is too small. Unless there is a way to set arrow length independently of the width, :onedot is useless for that element.
P.S. My bad it works for arrow and rectangle. You just need to set the fill to a colour different than black.
Shoes.app do
arrow(40, 40, 60)
arrow(40, 120, 60,dash: :onedot, fill: green)
end
The manual for this one will be pretty short as it only supports one option :onedot.
:onedot
and :nodot
are supported according to the C source code.
Is there a way to see what options are available for styles? align can also be "left" and "right" but how do I find this (except from the manual)? Is there a command to see all available options for shoes elements styles and options?
This is the purpose of the manual, amongst other things.
Styles are defined at C level without Ruby/Shoes counterpart. Shoes has no way to know about styles. They are literally parsed as you can see here: https://github.com/Shoes3/shoes3/blob/master/shoes/ruby.c#L2776
One funny thing is that besides the shapes above :onedot is also available for arrow. The difference is almost unnoticeable.
This is a good catch. One would wonder why arrow cannot be of different length. Perhaps opening an issue about arrow length would be advisable.
Pushed the final version of Dash to the master. Let me know if anything should be changed. Otherwise we can close this one.
Sorry for the formatting errors :(
No worries, @dredknight! Your help is very much appreciated. :)
:)
!!!
Probably WIP as there is only one variant :onedot if i don't miss something ...