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

Move placeholder colour to theme item #57456

Merged
merged 1 commit into from
Jan 31, 2022

Conversation

Paulb23
Copy link
Member

@Paulb23 Paulb23 commented Jan 30, 2022

As mentioned in #57100, moved TextEdit and LineEdit placeholder alpha to a colour in the theme.

@Paulb23 Paulb23 added this to the 4.0 milestone Jan 30, 2022
@Paulb23 Paulb23 requested review from a team as code owners January 30, 2022 18:01
@@ -656,14 +656,18 @@ void ScriptCreateDialog::_update_dialog() {
if (is_new_script_created) {
class_name->set_editable(true);
class_name->set_placeholder(TTR("Allowed: a-z, A-Z, 0-9, _ and ."));
class_name->set_placeholder_alpha(0.3);
Color placeholder_color = class_name->get_theme_color("font_placeholder_color");
placeholder_color.a = 0.3;
Copy link
Contributor

Choose a reason for hiding this comment

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

It's not too important right now, as we have plenty of cases where this happens, but eventually everything like that should be defined as a custom property on the editor theme instead of hardcoding adjustments in place.

@akien-mga akien-mga merged commit 7cb25c2 into godotengine:master Jan 31, 2022
@akien-mga
Copy link
Member

Thanks!

@Paulb23 Paulb23 deleted the placeholder-color branch January 31, 2022 17:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants