Philipp Hörist pushed to branch master at gajim / gajim
Commits: 4ef83834 by Daniel Brötzmann at 2020-01-29T22:54:36+01:00 Themes: Set default style value when adding a setting
- - - - -
1 changed file:
- gajim/gtk/themes.py
Changes:
===================================== gajim/gtk/themes.py ===================================== @@ -256,10 +256,16 @@ class Themes(Gtk.ApplicationWindow): if first is None: self._on_add_new_theme()
+ # Don't add an option twice for option in self._ui.option_listbox.get_children(): if option == row: return - row = Option(row.option, None) + + # Get default value if it exists + value = app.css_config.get_value( + row.option.selector, row.option.attr) + + row = Option(row.option, value) self._ui.option_listbox.add(row) self._ui.option_popover.popdown()
View it on GitLab: https://dev.gajim.org/gajim/gajim/commit/4ef838344744ce4d60e30ea34e97d00198e...