# Path: kano/gtk3/apply_styles.py
# def apply_common_to_screen():
#     apply_colours_to_screen()
#     apply_base_to_screen()


from gi import require_version
from gi.repository import Gtk, Gdk
from kano.gtk3.apply_styles import apply_common_to_screen

        screen = Gdk.Screen.get_default()
        self._win_width = width
        if width <= 1:
            self._win_width = int(screen.get_width() * width)

        self._win_height = height
        if height <= 1:
            self._win_height = int(screen.get_height() * height)
        self.set_size_request(self._win_width, self._win_height)

        self.set_position(Gtk.WindowPosition.CENTER)
        self.connect('delete-event', Gtk.main_quit)

        apply_common_to_screen()

        self._overlay = Gtk.Overlay()
        self.add(self._overlay)

        self._blur = Gtk.EventBox()
        self._blur.get_style_context().add_class('blur')

        self._blurred = False

        # TODO: Maybe handle the taskbar here to avoid even more code duplication?

    def blur(self):
        if not self._blurred:
            self._overlay.add_overlay(self._blur)
            self._blur.show()

# Path: kano/gtk3/apply_styles.py
# def apply_common_to_screen():
#     apply_colours_to_screen()
#     apply_base_to_screen()


# Path: kano/gtk3/application_window.py
from gi import require_version
from gi.repository import Gtk, Gdk
from kano.gtk3.apply_styles import apply_common_to_screen


        screen = Gdk.Screen.get_default()
        self._win_width = width
        if width <= 1:
            self._win_width = int(screen.get_width() * width)

        self._win_height = height
        if height <= 1:
            self._win_height = int(screen.get_height() * height)
        self.set_size_request(self._win_width, self._win_height)

        self.set_position(Gtk.WindowPosition.CENTER)
        self.connect('delete-event', Gtk.main_quit)

        apply_common_to_screen()

        self._overlay = Gtk.Overlay()
        self.add(self._overlay)

        self._blur = Gtk.EventBox()
        self._blur.get_style_context().add_class('blur')

        self._blurred = False

        # TODO: Maybe handle the taskbar here to avoid even more code duplication?

    def blur(self):
        if not self._blurred:
            self._overlay.add_overlay(self._blur)
            self._blur.show()

            self._blurred = True