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

LineEdit in mode: editable = false, - translucent text #29814

Closed
DimitriyPS opened this issue Jun 15, 2019 · 1 comment · Fixed by #30002
Closed

LineEdit in mode: editable = false, - translucent text #29814

DimitriyPS opened this issue Jun 15, 2019 · 1 comment · Fixed by #30002

Comments

@DimitriyPS
Copy link

Godot version: 3.1.1

I need not editable LineEdit:

MyLineEdit.editable = false

And I see that the text in LineEdit is translucent in this mode. This is not what was expected. But most importantly, I didn’t find a parameter to change it.

@Calinou
Copy link
Member

Calinou commented Jun 15, 2019

This is currently hardcoded here:

float disabled_alpha = 1.0; // used to set the disabled input text color
if (!is_editable()) {
style = get_stylebox("read_only");
disabled_alpha = .5;
draw_caret = false;
}

It probably should be turned into a custom color, like for other text colors.

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

Successfully merging a pull request may close this issue.

3 participants