More icon updates on theme change

This commit is contained in:
Haoyu Qiu 2022-03-15 23:05:12 +08:00
parent 51bbcbdec2
commit 0ac6e6acbe
5 changed files with 24 additions and 11 deletions

View file

@ -426,6 +426,7 @@ void EditorVisualProfiler::_notification(int p_what) {
switch (p_what) {
case NOTIFICATION_ENTER_TREE:
case NOTIFICATION_LAYOUT_DIRECTION_CHANGED:
case NOTIFICATION_THEME_CHANGED:
case NOTIFICATION_TRANSLATION_CHANGED: {
if (is_layout_rtl()) {
activate->set_icon(get_theme_icon(SNAME("PlayBackwards"), SNAME("EditorIcons")));