summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <remi@verschelde.fr>2022-11-23 23:12:22 +0100
committerGitHub <noreply@github.com>2022-11-23 23:12:22 +0100
commitfa270c2456df5ad12f51584c4ff891e2cf728cec (patch)
tree0fe5d372a3abdb2d7601f11cd1cbe45b4d2cd5f5
parent73dc0fd73e67a0a937267e0a9e4871bf90fb5228 (diff)
parent125d7deaff1641d118943f56ef1a2a5b3cd34327 (diff)
Merge pull request #69070 from Piralein/bg-color-cell
RichTextLabel Cell Option "bg" - add possibility to use only one color
-rw-r--r--scene/gui/rich_text_label.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/scene/gui/rich_text_label.cpp b/scene/gui/rich_text_label.cpp
index 889610e071..a54805ce56 100644
--- a/scene/gui/rich_text_label.cpp
+++ b/scene/gui/rich_text_label.cpp
@@ -3860,6 +3860,10 @@ void RichTextLabel::append_text(const String &p_bbcode) {
Color color2 = Color::from_string(subtag_b[1], fallback_color);
set_cell_row_background_color(color1, color2);
}
+ if (subtag_b.size() == 1) {
+ Color color1 = Color::from_string(subtag_a[1], fallback_color);
+ set_cell_row_background_color(color1, color1);
+ }
}
}
}