[3.x] Fix visibility issue with zoom label
This commit is contained in:
parent
ed28ce53bf
commit
36ca3fea96
@ -51,6 +51,7 @@
|
|||||||
#include "scene/gui/viewport_container.h"
|
#include "scene/gui/viewport_container.h"
|
||||||
#include "scene/main/canvas_layer.h"
|
#include "scene/main/canvas_layer.h"
|
||||||
#include "scene/main/viewport.h"
|
#include "scene/main/viewport.h"
|
||||||
|
#include "scene/resources/dynamic_font.h"
|
||||||
#include "scene/resources/packed_scene.h"
|
#include "scene/resources/packed_scene.h"
|
||||||
|
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
@ -4109,6 +4110,12 @@ void CanvasItemEditor::_notification(int p_what) {
|
|||||||
anchors_popup->add_icon_item(get_icon("ControlAlignWide", "EditorIcons"), TTR("Full Rect"), ANCHORS_PRESET_WIDE);
|
anchors_popup->add_icon_item(get_icon("ControlAlignWide", "EditorIcons"), TTR("Full Rect"), ANCHORS_PRESET_WIDE);
|
||||||
|
|
||||||
anchor_mode_button->set_icon(get_icon("Anchor", "EditorIcons"));
|
anchor_mode_button->set_icon(get_icon("Anchor", "EditorIcons"));
|
||||||
|
|
||||||
|
Ref<DynamicFont> font = zoom_reset->get_font("font")->duplicate(false);
|
||||||
|
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));
|
||||||
}
|
}
|
||||||
|
|
||||||
if (p_what == NOTIFICATION_VISIBILITY_CHANGED) {
|
if (p_what == NOTIFICATION_VISIBILITY_CHANGED) {
|
||||||
|
Loading…
Reference in New Issue
Block a user