Make stack transition configurable
This adds config option 'transition_ms'.
By using this site, you agree to have cookies stored on your device, strictly for functional purposes, such as storing your session and preferences.
This adds config option 'transition_ms'.
soreau,
created on Saturday, 13 September 2025, 05:16:12 (1757740572),
received on Saturday, 13 September 2025, 05:27:18 (1757741238)
Author identity: Scott Moreau <oreaus@gmail.com>
84c3f648ba4afa99750cc0fe9bbe421632fae989
background_window = BackgroundWindow(self, monitor)
monitor.background_window = background_window
if monitor.get_connector() in yaml_file["monitors"]:
background_window.transition_ms = yaml_file["monitors"][monitor.get_connector()]["transition_ms"]
background_window.time_per_image = yaml_file["monitors"][monitor.get_connector()]["time_per_image"]
background_window.put_sources(yaml_file["monitors"][monitor.get_connector()]["sources"])
background_window.picture1.set_content_fit(FITTING_MODES[yaml_file["monitors"][monitor.get_connector()]["fitting_mode"]])
self.all_sources = []
self.sources = []
self.time_per_image = 0
self.transition_ms = 0
self.current_timeout = None
self.pic1 = True
else:
self.all_sources.append(path)
self.all_sources = self.all_sources
self.stack.set_transition_duration(1000)
now = GLib.DateTime.new_now_local()
self.stack.set_transition_duration(self.transition_ms)
self.change_image()
def change_image(self):