comparison sat_frontends/jp/cmd_blog.py @ 3046:d9f328374473

jp: dark and light theme: - `background` setting can now be used in sat.conf to indicate if the terminal use a `dark` or a `light` colour - if `background` is not set or set to `auto`, the background colour is autodetected - Jp.get_config (or CommandBase.get_config) method can now be used to retrieve a setting
author Goffi <goffi@goffi.org>
date Tue, 01 Oct 2019 22:49:10 +0200
parents fee60f17ebac
children 2a7dfe43b161
comparison
equal deleted inserted replaced
3045:6af44ca3beac 3046:d9f328374473
717 ) 717 )
718 self.host.quit(1) 718 self.host.quit(1)
719 else: 719 else:
720 aionotify = None 720 aionotify = None
721 721
722 sat_conf = config.parseMainConf() 722 sat_conf = self.sat_conf
723 SYNTAX_EXT.update(config.getConfig(sat_conf, "jp", CONF_SYNTAX_EXT, {})) 723 SYNTAX_EXT.update(config.getConfig(sat_conf, "jp", CONF_SYNTAX_EXT, {}))
724 724
725 try: 725 try:
726 self.open_cb_cmd = config.getConfig( 726 self.open_cb_cmd = config.getConfig(
727 sat_conf, "jp", "blog_preview_open_cmd", Exception 727 sat_conf, "jp", "blog_preview_open_cmd", Exception