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

Button does not have option for custom color #4878

Closed
learncodingforweb opened this issue Mar 18, 2024 · 1 comment
Closed

Button does not have option for custom color #4878

learncodingforweb opened this issue Mar 18, 2024 · 1 comment

Comments

@learncodingforweb
Copy link

Button does not have option for custom color. Eleven i tried using
Rectangle

Rectangle {
        Text {text: title; color: white;}
        background: #047857;
    }

But it does not look like button as it does not have show elevated option

@ogoffart
Copy link
Member

Thanks for filling an issue.

There is no plan to add styling properties like brushes, font settings and spaces to the std-widgets. Instead two alternatives are planned to make widget customization easier: #4371 #4372

As of now, if you want a custom looking button, you can create a custom component for it.
There are example here: https://slint.dev/docs/slint/src/recipes/recipes#custom-button

@ogoffart ogoffart closed this as not planned Won't fix, can't repro, duplicate, stale Mar 18, 2024
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