Skip to content

Commit 049d670

Browse files
committed
Fix button styling changed on FileDialog
1 parent c1ea678 commit 049d670

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

scenes/root/FileSystemPopup.gd

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,13 @@ func _ready():
1919
var path : String
2020
var controller_icon_rect := preload("res://addons/controller_icons/objects/TextureRect.gd")
2121

22+
for button:Button in [
23+
get_vbox().get_child(0, true).get_child(0, true), # Previous button
24+
get_vbox().get_child(0, true).get_child(1, true), # Next button
25+
upwards_button, refresh_button, hide_button
26+
]:
27+
button.flat = true
28+
2229
# Attach ControllerIcons to buttons
2330
var box : HBoxContainer = ok_button.get_parent()
2431
var back_icon := create_icon(controller_icon_rect, "rh_back")
@@ -76,7 +83,7 @@ func _ready():
7683
create_folder_cancel_button.focus_neighbor_top = path
7784

7885
# Force the recent paths option button to wrap text
79-
# This field doesn't exists on Windows for some reason
86+
# This field doesn't exist on Windows for some reason
8087
if FileUtils.get_os_id() != FileUtils.OS_ID.WINDOWS:
8188
var recent_paths : OptionButton = get_vbox().get_child(0, true).get_child(11, true).get_child(0, true)
8289
recent_paths.fit_to_longest_item = false

0 commit comments

Comments
 (0)