From ac801494a3bf0275372f1087b6c01b9a5810059e Mon Sep 17 00:00:00 2001
From: bruvzg <7645683+bruvzg@users.noreply.github.com>
Date: Mon, 1 Aug 2022 12:41:56 +0300
Subject: [PATCH] Change LabelSettings default values to match default theme.
---
doc/classes/LabelSettings.xml | 8 ++++----
scene/resources/label_settings.h | 8 ++++----
2 files changed, 8 insertions(+), 8 deletions(-)
diff --git a/doc/classes/LabelSettings.xml b/doc/classes/LabelSettings.xml
index 227313d3b3a..aa972f2cf31 100644
--- a/doc/classes/LabelSettings.xml
+++ b/doc/classes/LabelSettings.xml
@@ -9,21 +9,21 @@
-
+
-
+
-
+
-
+
diff --git a/scene/resources/label_settings.h b/scene/resources/label_settings.h
index d2644a7484c..062d499d50b 100644
--- a/scene/resources/label_settings.h
+++ b/scene/resources/label_settings.h
@@ -39,17 +39,17 @@
class LabelSettings : public Resource {
GDCLASS(LabelSettings, Resource);
- real_t line_spacing = 0;
+ real_t line_spacing = 3;
Ref font;
int font_size = Font::DEFAULT_FONT_SIZE;
- Color font_color = Color(0.875, 0.875, 0.875);
+ Color font_color = Color(1, 1, 1);
int outline_size = 0;
Color outline_color = Color(1, 1, 1);
- int shadow_size = 0;
- Color shadow_color = Color(1, 1, 1);
+ int shadow_size = 1;
+ Color shadow_color = Color(0, 0, 0, 0);
Vector2 shadow_offset = Vector2(1, 1);
void _font_changed();