New Style - Solarized (#144)

* New Style solarized
This commit is contained in:
Alfredo Monclus
2021-05-10 21:55:15 -03:00
committed by GitHub
parent 9951323e91
commit e75a10a888
180 changed files with 12500 additions and 4956 deletions

View File

@@ -110,7 +110,8 @@ class KlipperScreen(Gtk.Window):
self.set_resizable(False)
logging.info("Screen resolution: %sx%s" % (self.width, self.height))
self.gtk = KlippyGtk(self, self.width, self.height)
self.theme = self._config.get_main_config_option('theme')
self.gtk = KlippyGtk(self, self.width, self.height, self.theme)
self.init_style()
self.printer_initializing(_("Initializing"))
@@ -381,7 +382,7 @@ class KlipperScreen(Gtk.Window):
style_provider = Gtk.CssProvider()
css = open(klipperscreendir + "/styles/style.css")
css = open(klipperscreendir + "/styles/%s/style.css" % (self.theme))
css_data = css.read()
css.close()
css_data = css_data.replace("KS_FONT_SIZE",str(self.gtk.get_font_size()))