Merge pull request #53410 from pycbouh/editor-theme-guard-bitmap-fonts-3.x

This commit is contained in:
Rémi Verschelde 2021-10-05 11:09:07 +02:00 committed by GitHub
commit d16d35e260
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -4218,8 +4218,10 @@ void CanvasItemEditor::_notification(int p_what) {
anchor_mode_button->set_icon(get_icon("Anchor", "EditorIcons"));
Ref<DynamicFont> font = zoom_reset->get_font("font")->duplicate(false);
if (font.is_valid()) {
font->set_outline_size(1);
font->set_outline_color(Color(0, 0, 0));
}
zoom_reset->add_font_override("font", font);
zoom_reset->add_color_override("font_color", Color(1, 1, 1));