summaryrefslogtreecommitdiffstats
path: root/scene/resources/theme.cpp
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2017-08-16 18:15:04 +0200
committerGitHub <noreply@github.com>2017-08-16 18:15:04 +0200
commita8a6082dc07e8a00c8a546abf121d82599b1c39a (patch)
treedfddd90190a2e1f3171e97ac0a9e488af1d68ecd /scene/resources/theme.cpp
parent5485233549c97c7128fc2026bc2c01d3c1c5b48d (diff)
parent701fb55a108bd83d9a1e6c6bc4bfe61539df333d (diff)
downloadredot-engine-a8a6082dc07e8a00c8a546abf121d82599b1c39a.tar.gz
Merge pull request #8899 from toger5/BetterFlatStylebox
Better flat stylebox with rounded corners
Diffstat (limited to 'scene/resources/theme.cpp')
-rw-r--r--scene/resources/theme.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/scene/resources/theme.cpp b/scene/resources/theme.cpp
index 1d5aed0444..ac1bb105ac 100644
--- a/scene/resources/theme.cpp
+++ b/scene/resources/theme.cpp
@@ -883,7 +883,7 @@ RES ResourceFormatLoaderTheme::load(const String &p_path, const String &p_origin
ERR_FAIL_V(RES());
}
- sbflat->set_border_size(params[0].to_int());
+ sbflat->set_border_width_all(params[0].to_int());
if (!params[0].is_valid_integer()) {
@@ -929,8 +929,8 @@ RES ResourceFormatLoaderTheme::load(const String &p_path, const String &p_origin
dark = Color::html(params[3]);
}
- sbflat->set_dark_color(dark);
- sbflat->set_light_color(bright);
+ sbflat->set_border_color_all(bright);
+ // sbflat->set_dark_color(dark);
sbflat->set_bg_color(normal);
if (params.size() == ccodes + 5) {