Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
godot
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
community
godot
Commits
1acbbfc3
Commit
1acbbfc3
authored
Dec 20, 2019
by
volzhs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Set proper icons for FileDialog in editor theme
parent
2a4c528d
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
editor_themes.cpp
editor/editor_themes.cpp
+3
-0
No files found.
editor/editor_themes.cpp
View file @
1acbbfc3
...
...
@@ -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
));
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment