Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FEAT: STYLIZE function and STYLES keyword for VID #2300

Closed
wants to merge 0 commits into from

Conversation

rebolek
Copy link
Contributor

@rebolek rebolek commented Nov 3, 2016

No description provided.

'else [
either face/text [
size: size-text face
if find [button radio check] face/type [size/x: size/x + size/y]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is this line for?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

IIRC this is leftover from some older View version on which I based this PR.

rate: font: flags: options: para: data: extra: actors: draw: now?: none
]


Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You moved opts object out of the function. Where are the object words reset to none now?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You're right, they aren't. I have a fix in my branch (2109e7 from 2016-11-03), but it is missing from this PR. I am not very familiar with PRs, can I fix it here or should I make a new PR?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can fix it with an additional commit to this PR.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, I'll try.

master (system/view/VID/styles)
styles (copy css)
true (make map! 2)
]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why using parens for actions in case instead of the more standard blocks? It confused me as I was searching for a related compose...

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am not sure why I am using parens in case, I've been doing this for many years. I will change it (and try to rewire myself to blocks here :) )

@rebolek
Copy link
Contributor Author

rebolek commented Mar 21, 2017

I've tried to fix all things mentioned in review and also base it on latest VID version. Hopefully it is OK now.

@@ -184,7 +176,7 @@ system/view/VID: context [
| 'font (opts/font: make any [opts/font font!] fetch-argument obj-spec! spec)
| 'para (opts/para: make any [opts/para para!] fetch-argument obj-spec! spec)
| 'wrap (opt?: add-flag opts 'para 'wrap? yes)
| 'no-wrap (opt?: add-flag opts 'para 'wrap? no)
| 'no-wrap (add-flag opts 'para 'wrap? no opt?: yes)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit pick: I don't know why you did this but it doesn't this make sense?
After looking at the code for a while, it still didn't.. so I may be wrong about it..

@greggirwin
Copy link
Contributor

@rebolek, can this be dusted off, fixed, and updated to merge? Seems like @dockimbel only had issues with some code constructs, not design.

@rebolek
Copy link
Contributor Author

rebolek commented Jan 11, 2019

@greggirwin I need to check it against newest Red, I believe that there are some merge conflicts now. I'll take a look at it and let you know.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants