|
@@ -1626,7 +1626,7 @@ void EditorPropertyVector2::_notification(int p_what) {
|
|
case NOTIFICATION_THEME_CHANGED: {
|
|
case NOTIFICATION_THEME_CHANGED: {
|
|
const Color *colors = _get_property_colors();
|
|
const Color *colors = _get_property_colors();
|
|
for (int i = 0; i < 2; i++) {
|
|
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;
|
|
} break;
|
|
}
|
|
}
|
|
@@ -1720,7 +1720,7 @@ void EditorPropertyRect2::_notification(int p_what) {
|
|
case NOTIFICATION_THEME_CHANGED: {
|
|
case NOTIFICATION_THEME_CHANGED: {
|
|
const Color *colors = _get_property_colors();
|
|
const Color *colors = _get_property_colors();
|
|
for (int i = 0; i < 4; i++) {
|
|
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;
|
|
} break;
|
|
}
|
|
}
|
|
@@ -1849,7 +1849,7 @@ void EditorPropertyVector3::_notification(int p_what) {
|
|
case NOTIFICATION_THEME_CHANGED: {
|
|
case NOTIFICATION_THEME_CHANGED: {
|
|
const Color *colors = _get_property_colors();
|
|
const Color *colors = _get_property_colors();
|
|
for (int i = 0; i < 3; i++) {
|
|
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;
|
|
} break;
|
|
}
|
|
}
|
|
@@ -1939,7 +1939,7 @@ void EditorPropertyVector2i::_notification(int p_what) {
|
|
case NOTIFICATION_THEME_CHANGED: {
|
|
case NOTIFICATION_THEME_CHANGED: {
|
|
const Color *colors = _get_property_colors();
|
|
const Color *colors = _get_property_colors();
|
|
for (int i = 0; i < 2; i++) {
|
|
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;
|
|
} break;
|
|
}
|
|
}
|
|
@@ -2033,7 +2033,7 @@ void EditorPropertyRect2i::_notification(int p_what) {
|
|
case NOTIFICATION_THEME_CHANGED: {
|
|
case NOTIFICATION_THEME_CHANGED: {
|
|
const Color *colors = _get_property_colors();
|
|
const Color *colors = _get_property_colors();
|
|
for (int i = 0; i < 4; i++) {
|
|
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;
|
|
} break;
|
|
}
|
|
}
|
|
@@ -2135,7 +2135,7 @@ void EditorPropertyVector3i::_notification(int p_what) {
|
|
case NOTIFICATION_THEME_CHANGED: {
|
|
case NOTIFICATION_THEME_CHANGED: {
|
|
const Color *colors = _get_property_colors();
|
|
const Color *colors = _get_property_colors();
|
|
for (int i = 0; i < 3; i++) {
|
|
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;
|
|
} break;
|
|
}
|
|
}
|
|
@@ -2228,7 +2228,7 @@ void EditorPropertyPlane::_notification(int p_what) {
|
|
case NOTIFICATION_THEME_CHANGED: {
|
|
case NOTIFICATION_THEME_CHANGED: {
|
|
const Color *colors = _get_property_colors();
|
|
const Color *colors = _get_property_colors();
|
|
for (int i = 0; i < 4; i++) {
|
|
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;
|
|
} break;
|
|
}
|
|
}
|
|
@@ -2322,7 +2322,7 @@ void EditorPropertyQuaternion::_notification(int p_what) {
|
|
case NOTIFICATION_THEME_CHANGED: {
|
|
case NOTIFICATION_THEME_CHANGED: {
|
|
const Color *colors = _get_property_colors();
|
|
const Color *colors = _get_property_colors();
|
|
for (int i = 0; i < 4; i++) {
|
|
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;
|
|
} break;
|
|
}
|
|
}
|
|
@@ -2419,7 +2419,7 @@ void EditorPropertyAABB::_notification(int p_what) {
|
|
case NOTIFICATION_THEME_CHANGED: {
|
|
case NOTIFICATION_THEME_CHANGED: {
|
|
const Color *colors = _get_property_colors();
|
|
const Color *colors = _get_property_colors();
|
|
for (int i = 0; i < 6; i++) {
|
|
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;
|
|
} break;
|
|
}
|
|
}
|
|
@@ -2505,9 +2505,9 @@ void EditorPropertyTransform2D::_notification(int p_what) {
|
|
for (int i = 0; i < 6; i++) {
|
|
for (int i = 0; i < 6; i++) {
|
|
// For Transform2D, use the 4th color (cyan) for the origin vector.
|
|
// For Transform2D, use the 4th color (cyan) for the origin vector.
|
|
if (i % 3 == 2) {
|
|
if (i % 3 == 2) {
|
|
- spin[i]->set_custom_label_color(true, colors[3]);
|
|
|
|
|
|
+ spin[i]->add_theme_color_override("label_color", colors[3]);
|
|
} else {
|
|
} else {
|
|
- spin[i]->set_custom_label_color(true, colors[i % 3]);
|
|
|
|
|
|
+ spin[i]->add_theme_color_override("label_color", colors[i % 3]);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
} break;
|
|
} break;
|
|
@@ -2599,7 +2599,7 @@ void EditorPropertyBasis::_notification(int p_what) {
|
|
case NOTIFICATION_THEME_CHANGED: {
|
|
case NOTIFICATION_THEME_CHANGED: {
|
|
const Color *colors = _get_property_colors();
|
|
const Color *colors = _get_property_colors();
|
|
for (int i = 0; i < 9; i++) {
|
|
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;
|
|
} break;
|
|
}
|
|
}
|
|
@@ -2696,7 +2696,7 @@ void EditorPropertyTransform3D::_notification(int p_what) {
|
|
case NOTIFICATION_THEME_CHANGED: {
|
|
case NOTIFICATION_THEME_CHANGED: {
|
|
const Color *colors = _get_property_colors();
|
|
const Color *colors = _get_property_colors();
|
|
for (int i = 0; i < 12; i++) {
|
|
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;
|
|
} break;
|
|
}
|
|
}
|