Added transparancy toggle setting
This commit is contained in:
parent
e5e83b6cd2
commit
d2c8c1a426
|
@ -71,7 +71,7 @@ class Window(Gtk.ApplicationWindow):
|
||||||
screen = self.get_screen()
|
screen = self.get_screen()
|
||||||
visual = screen.get_rgba_visual()
|
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_visual(visual)
|
||||||
self.set_app_paintable(True)
|
self.set_app_paintable(True)
|
||||||
self.connect("draw", self._area_draw)
|
self.connect("draw", self._area_draw)
|
||||||
|
|
|
@ -143,8 +143,8 @@ class Settings(StartCheckMixin, Singleton):
|
||||||
def get_window_icon(self) -> str: return self._WINDOW_ICON
|
def get_window_icon(self) -> str: return self._WINDOW_ICON
|
||||||
def get_home_path(self) -> str: return self._USER_HOME
|
def get_home_path(self) -> str: return self._USER_HOME
|
||||||
|
|
||||||
|
|
||||||
def get_icons_path(self) -> str: return self._DEFAULT_ICONS
|
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_with(self) -> int: return self._config["thumbnail_with"]
|
||||||
def get_thumbnail_height(self) -> int: return self._config["thumbnail_height"]
|
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"]
|
def get_max_ring_thumbnail_list(self) -> int: return self._config["max_ring_thumbnail_list"]
|
||||||
|
|
Loading…
Reference in New Issue