1
0
Fork 0
mirror of https://github.com/Orama-Interactive/Pixelorama.git synced 2025-01-18 17:19:50 +00:00

Darken the UI when exiting the application

This improves user experience a bit when quitting Pixelorama,
especially on slower hardware.
This commit is contained in:
Hugo Locurcio 2019-12-15 21:47:01 +01:00
parent 4ef0370d6c
commit fd9bf26695
No known key found for this signature in database
GPG key ID: 39E8F8BE30B0A49C

View file

@ -1025,6 +1025,10 @@ func _on_RightVerticalMirroring_toggled(button_pressed) -> void:
Global.right_vertical_mirror = button_pressed
func _on_QuitDialog_confirmed() -> void:
# Darken the UI to denote that the application is currently exiting
# (it won't respond to user input in this state).
modulate = Color(0.5, 0.5, 0.5)
get_tree().quit()
func _exit_tree() -> void: