Added transparancy toggle setting

This commit is contained in:
itdominator 2023-04-27 23:30:07 -05:00
parent e5e83b6cd2
commit d2c8c1a426
2 changed files with 2 additions and 2 deletions

View File

@ -71,7 +71,7 @@ class Window(Gtk.ApplicationWindow):
screen = self.get_screen()
visual = screen.get_rgba_visual()
if visual != None and screen.is_composited():
if visual and screen.is_composited() and settings.make_transparent() == 0:
self.set_visual(visual)
self.set_app_paintable(True)
self.connect("draw", self._area_draw)

View File

@ -143,8 +143,8 @@ class Settings(StartCheckMixin, Singleton):
def get_window_icon(self) -> str: return self._WINDOW_ICON
def get_home_path(self) -> str: return self._USER_HOME
def get_icons_path(self) -> str: return self._DEFAULT_ICONS
def make_transparent(self) -> int: return self._config["make_transparent"]
def get_thumbnail_with(self) -> int: return self._config["thumbnail_with"]
def get_thumbnail_height(self) -> int: return self._config["thumbnail_height"]
def get_max_ring_thumbnail_list(self) -> int: return self._config["max_ring_thumbnail_list"]