Commit 4ef83834 authored by Daniel Brötzmann's avatar Daniel Brötzmann Committed by Philipp Hörist

Themes: Set default style value when adding a setting

parent 115e2769
Pipeline #4922 passed with stages
in 3 minutes and 14 seconds
......@@ -256,10 +256,16 @@ class Themes(Gtk.ApplicationWindow):
if first is None:
# Don't add an option twice
for option in self._ui.option_listbox.get_children():
if option == row:
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)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment