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

textarea rounded corners #757

Closed
Frank-99 opened this issue Oct 30, 2023 · 2 comments
Closed

textarea rounded corners #757

Frank-99 opened this issue Oct 30, 2023 · 2 comments

Comments

@Frank-99
Copy link

Hi, is there a way to achieve something similar to this?
image

I can't find a way to round the corners on a scrollview... it comes out squared while all the other components are rounded.
image

I've found some hacky solutions but are not perfect... is there a built in way to do this or do I just need to make my own "FlatScrollPaneBorder" implementation, which sounds like a bit of a pain?
I've tried in vain to use this code below

	FlatTextBorder border = new FlatTextBorder();
	border.applyStyleProperty("arc", 12);
	
	//test 1
	noteScrollPane.putClientProperty("ScrollPane.viewportBorder", border);
	
	//test 2
	noteScrollPane.putClientProperty("ScrollPane.border", border);
	
	//test 3
	noteScrollPane.setBorder(border);

But at best it comes out like this
image

@DevCharly
Copy link
Collaborator

See PR #713

@Frank-99
Copy link
Author

Frank-99 commented Nov 6, 2023

Ah yes, this is what I was looking for!
And sorry, I'll have to look better in the closed issues next time...

@Frank-99 Frank-99 closed this as completed Nov 6, 2023
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

No branches or pull requests

2 participants