summaryrefslogtreecommitdiff
path: root/editor/editor_properties.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'editor/editor_properties.cpp')
-rw-r--r--editor/editor_properties.cpp26
1 files changed, 13 insertions, 13 deletions
diff --git a/editor/editor_properties.cpp b/editor/editor_properties.cpp
index 68a3fabe1e..e0ef592ce7 100644
--- a/editor/editor_properties.cpp
+++ b/editor/editor_properties.cpp
@@ -1626,7 +1626,7 @@ void EditorPropertyVector2::_notification(int p_what) {
case NOTIFICATION_THEME_CHANGED: {
const Color *colors = _get_property_colors();
for (int i = 0; i < 2; i++) {
- spin[i]->set_custom_label_color(true, colors[i]);
+ spin[i]->add_theme_color_override("label_color", colors[i]);
}
} break;
}
@@ -1720,7 +1720,7 @@ void EditorPropertyRect2::_notification(int p_what) {
case NOTIFICATION_THEME_CHANGED: {
const Color *colors = _get_property_colors();
for (int i = 0; i < 4; i++) {
- spin[i]->set_custom_label_color(true, colors[i % 2]);
+ spin[i]->add_theme_color_override("label_color", colors[i % 2]);
}
} break;
}
@@ -1849,7 +1849,7 @@ void EditorPropertyVector3::_notification(int p_what) {
case NOTIFICATION_THEME_CHANGED: {
const Color *colors = _get_property_colors();
for (int i = 0; i < 3; i++) {
- spin[i]->set_custom_label_color(true, colors[i]);
+ spin[i]->add_theme_color_override("label_color", colors[i]);
}
} break;
}
@@ -1939,7 +1939,7 @@ void EditorPropertyVector2i::_notification(int p_what) {
case NOTIFICATION_THEME_CHANGED: {
const Color *colors = _get_property_colors();
for (int i = 0; i < 2; i++) {
- spin[i]->set_custom_label_color(true, colors[i]);
+ spin[i]->add_theme_color_override("label_color", colors[i]);
}
} break;
}
@@ -2033,7 +2033,7 @@ void EditorPropertyRect2i::_notification(int p_what) {
case NOTIFICATION_THEME_CHANGED: {
const Color *colors = _get_property_colors();
for (int i = 0; i < 4; i++) {
- spin[i]->set_custom_label_color(true, colors[i % 2]);
+ spin[i]->add_theme_color_override("label_color", colors[i % 2]);
}
} break;
}
@@ -2135,7 +2135,7 @@ void EditorPropertyVector3i::_notification(int p_what) {
case NOTIFICATION_THEME_CHANGED: {
const Color *colors = _get_property_colors();
for (int i = 0; i < 3; i++) {
- spin[i]->set_custom_label_color(true, colors[i]);
+ spin[i]->add_theme_color_override("label_color", colors[i]);
}
} break;
}
@@ -2228,7 +2228,7 @@ void EditorPropertyPlane::_notification(int p_what) {
case NOTIFICATION_THEME_CHANGED: {
const Color *colors = _get_property_colors();
for (int i = 0; i < 4; i++) {
- spin[i]->set_custom_label_color(true, colors[i]);
+ spin[i]->add_theme_color_override("label_color", colors[i]);
}
} break;
}
@@ -2322,7 +2322,7 @@ void EditorPropertyQuaternion::_notification(int p_what) {
case NOTIFICATION_THEME_CHANGED: {
const Color *colors = _get_property_colors();
for (int i = 0; i < 4; i++) {
- spin[i]->set_custom_label_color(true, colors[i]);
+ spin[i]->add_theme_color_override("label_color", colors[i]);
}
} break;
}
@@ -2419,7 +2419,7 @@ void EditorPropertyAABB::_notification(int p_what) {
case NOTIFICATION_THEME_CHANGED: {
const Color *colors = _get_property_colors();
for (int i = 0; i < 6; i++) {
- spin[i]->set_custom_label_color(true, colors[i % 3]);
+ spin[i]->add_theme_color_override("label_color", colors[i % 3]);
}
} break;
}
@@ -2505,9 +2505,9 @@ void EditorPropertyTransform2D::_notification(int p_what) {
for (int i = 0; i < 6; i++) {
// For Transform2D, use the 4th color (cyan) for the origin vector.
if (i % 3 == 2) {
- spin[i]->set_custom_label_color(true, colors[3]);
+ spin[i]->add_theme_color_override("label_color", colors[3]);
} else {
- spin[i]->set_custom_label_color(true, colors[i % 3]);
+ spin[i]->add_theme_color_override("label_color", colors[i % 3]);
}
}
} break;
@@ -2599,7 +2599,7 @@ void EditorPropertyBasis::_notification(int p_what) {
case NOTIFICATION_THEME_CHANGED: {
const Color *colors = _get_property_colors();
for (int i = 0; i < 9; i++) {
- spin[i]->set_custom_label_color(true, colors[i % 3]);
+ spin[i]->add_theme_color_override("label_color", colors[i % 3]);
}
} break;
}
@@ -2696,7 +2696,7 @@ void EditorPropertyTransform3D::_notification(int p_what) {
case NOTIFICATION_THEME_CHANGED: {
const Color *colors = _get_property_colors();
for (int i = 0; i < 12; i++) {
- spin[i]->set_custom_label_color(true, colors[i % 4]);
+ spin[i]->add_theme_color_override("label_color", colors[i % 4]);
}
} break;
}