diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2019-12-20 10:21:16 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-12-20 10:21:16 +0100 |
commit | 9abbf517ffd6358e3ea79a6be46a0dd979115a0b (patch) | |
tree | 7050f9cf6a4b09aec948a6549817c9d60c918b9c | |
parent | d1a6b394d7b88b61630859c60b83f4a7c5a4c53a (diff) | |
parent | 1acbbfc3f1f22a17f2712dc6dd93906997e55750 (diff) |
Merge pull request #34479 from volzhs/filedialog-icon
Set proper icons for FileDialog in editor theme
-rw-r--r-- | editor/editor_themes.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/editor/editor_themes.cpp b/editor/editor_themes.cpp index 6b71ee14d5..a38d6d1f21 100644 --- a/editor/editor_themes.cpp +++ b/editor/editor_themes.cpp @@ -1106,6 +1106,9 @@ Ref<Theme> create_editor_theme(const Ref<Theme> p_theme) { // FileDialog theme->set_icon("folder", "FileDialog", theme->get_icon("Folder", "EditorIcons")); + theme->set_icon("parent_folder", "FileDialog", theme->get_icon("ArrowUp", "EditorIcons")); + theme->set_icon("reload", "FileDialog", theme->get_icon("Reload", "EditorIcons")); + theme->set_icon("toggle_hidden", "FileDialog", theme->get_icon("GuiVisibilityVisible", "EditorIcons")); // Use a different color for folder icons to make them easier to distinguish from files. // On a light theme, the icon will be dark, so we need to lighten it before blending it with the accent color. theme->set_color("folder_icon_modulate", "FileDialog", (dark_theme ? Color(1, 1, 1) : Color(4.25, 4.25, 4.25)).linear_interpolate(accent_color, 0.7)); |