What is this view mode and how do I go back to the default one? I pressed some button accidentally while trying to do something else and now I have dots everywhere. It's kinda useful since I can see through the object, but I kinda just want to go back to the default view. How do I do that?
It's called X-Ray, and can be toggled with Shift+Z.

Here's a screenshot of the preferences window where I found the keyboard shortcut:



Thanks to @lemon. :)