# 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
#
# You can use this as a base for you application's window in case
# you'd like to blur it.
#

require_version('Gtk', '3.0')




class ApplicationWindow(Gtk.Window):
    def __init__(self, title="Application", width=None, height=None):
        Gtk.Window.__init__(self, title=title)

        self.set_decorated(False)
        self.set_resizable(False)

        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)


# 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

#
# You can use this as a base for you application's window in case
# you'd like to blur it.
#

require_version('Gtk', '3.0')




class ApplicationWindow(Gtk.Window):
    def __init__(self, title="Application", width=None, height=None):
        Gtk.Window.__init__(self, title=title)

        self.set_decorated(False)
        self.set_resizable(False)

        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()