A system for ophthalmic surgery comprising: an augmented reality device communicatively coupled to an imaging system of an ophthalmic microscope, the augmented reality device comprising: a lens configured to project a digital image into an eye of an operator of the augmented reality device and to allow the eye to view a physical space beyond the lens; an outer surface coupled to the lens, the outer surface being at least partially transparent; a gaze control configured to track the eye of the operator of the augmented reality device to determine the gaze of the operator and determine whether the eye of the operator is focused on the digital image or the physical space, and transmit a signal based on the focus; and a dimming system communicatively coupled to the gaze control and the outer surface, the dimming system including a processor operable to: receive the digital image from the imaging system of the ophthalmic microscope; project the digital image onto the lens; receive a signal from the gaze control regarding the focus of the eye of the operator; and transition the outer surface of the augmented reality device between at least partially transparent to opaque based on the received signal, the transitioning comprising: if the eye is focused on the digital image projected onto the lens, transitioning the outer surface to opaque to obscure the entirety of the operator's view of the physical space beyond the lens; and if the eye is focused on the physical space beyond the lens, transitioning the outer surface to transparent or semi-transparent. a lens configured to project a digital image into an eye of an operator of the augmented reality device and to allow the eye to view a physical space beyond the lens; an outer surface coupled to the lens, the outer surface being at least partially transparent; a gaze control configured to track the eye of the operator of the augmented reality device to determine the gaze of the operator and determine whether the eye of the operator is focused on the digital image or the physical space, and transmit a signal based on the focus; and a dimming system communicatively coupled to the gaze control and the outer surface, the dimming system including a processor operable to: receive the digital image from the imaging system of the ophthalmic microscope; project the digital image onto the lens; receive a signal from the gaze control regarding the focus of the eye of the operator; and transition the outer surface of the augmented reality device between at least partially transparent to opaque based on the received signal, the transitioning comprising: if the eye is focused on the digital image projected onto the lens, transitioning the outer surface to opaque to obscure the entirety of the operator's view of the physical space beyond the lens; and if the eye is focused on the physical space beyond the lens, transitioning the outer surface to transparent or semi-transparent. receive the digital image from the imaging system of the ophthalmic microscope; project the digital image onto the lens; receive a signal from the gaze control regarding the focus of the eye of the operator; and transition the outer surface of the augmented reality device between at least partially transparent to opaque based on the received signal, the transitioning comprising: if the eye is focused on the digital image projected onto the lens, transitioning the outer surface to opaque to obscure the entirety of the operator's view of the physical space beyond the lens; and if the eye is focused on the physical space beyond the lens, transitioning the outer surface to transparent or semi-transparent. if the eye is focused on the digital image projected onto the lens, transitioning the outer surface to opaque to obscure the entirety of the operator's view of the physical space beyond the lens; and if the eye is focused on the physical space beyond the lens, transitioning the outer surface to transparent or semi-transparent.