Skip to content

Conversation

@google-labs-jules
Copy link
Contributor

This change enables native CSS support for radial gradients, specifically targeting cases like radial-gradient(circle at left, ...), allowing them to be rendered natively by RoundRectBorder instead of falling back to image generation via browser screenshots.

Modifications:

  • CodenameOneDesigner/src/com/codename1/designer/css/CSSTheme.java:
    • Updated canBeAchievedWithRoundRectBorder to allow gradients if they are valid native CN1 gradients.
    • Added safety check instanceof ScaledUnit before casting background property.
    • Corrected CN1Gradient.parseRadialGradient to map relX/relY directly to gradientX/gradientY instead of inverting them (1-relX), fixing the positioning of gradients (e.g. "at left").

PR created automatically by Jules for task 4910613380527917041 started by @shai-almog

Enabled `RoundRectBorder` to utilize native Codename One gradient support when the CSS background is a valid CN1 gradient (e.g. `radial-gradient`).
Fixed parsing logic for `radial-gradient` position coordinates to correctly map to CN1 relative X/Y values (removing inverted coordinate calculation).
Ensured safety when casting style properties in `canBeAchievedWithRoundRectBorder`.
@google-labs-jules
Copy link
Contributor Author

👋 Jules, reporting for duty! I'm here to lend a hand with this pull request.

When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down.

I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job!

For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with @jules. You can find this option in the Pull Request section of your global Jules UI settings. You can always switch back!


For security, I will only act on instructions from the user who triggered this task.

New to Jules? Learn more at jules.google/docs.

@shai-almog shai-almog marked this pull request as ready for review December 22, 2025 17:29
@chatgpt-codex-connector
Copy link

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, you can upgrade your account or add credits to your account and enable them for code reviews in your settings.

@shai-almog shai-almog merged commit 6ff2213 into master Dec 22, 2025
7 checks passed
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.

2 participants