summaryrefslogtreecommitdiffstats
path: root/editor/history_dock.cpp
diff options
context:
space:
mode:
authorkobewi <kobewi4e@gmail.com>2023-08-13 02:33:39 +0200
committerkobewi <kobewi4e@gmail.com>2023-09-03 19:58:18 +0200
commit6de34fde27f650f738a1e46992f1b783f2cf9e76 (patch)
treea1c1785f2c20e8874d622aae75ff70be43192ece /editor/history_dock.cpp
parentfa3428ff25bc577d2a3433090478a6d615567056 (diff)
downloadredot-engine-6de34fde27f650f738a1e46992f1b783f2cf9e76.tar.gz
Add EditorStringNames singleton
Diffstat (limited to 'editor/history_dock.cpp')
-rw-r--r--editor/history_dock.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/editor/history_dock.cpp b/editor/history_dock.cpp
index 41ca519400..0ec840b8f1 100644
--- a/editor/history_dock.cpp
+++ b/editor/history_dock.cpp
@@ -31,6 +31,7 @@
#include "history_dock.h"
#include "editor/editor_node.h"
+#include "editor/editor_string_names.h"
#include "editor/editor_undo_redo_manager.h"
#include "scene/gui/check_box.h"
#include "scene/gui/item_list.h"
@@ -100,7 +101,7 @@ void HistoryDock::refresh_history() {
for (const EditorUndoRedoManager::Action &E : full_history) {
action_list->add_item(E.action_name);
if (E.history_id == EditorUndoRedoManager::GLOBAL_HISTORY) {
- action_list->set_item_custom_fg_color(-1, get_theme_color(SNAME("accent_color"), SNAME("Editor")));
+ action_list->set_item_custom_fg_color(-1, get_theme_color(SNAME("accent_color"), EditorStringName(Editor)));
}
}