[general] Minor edit: Move from "theme-" to "theme." prefix

Thinking about it, I find domain delimitors using "." more intuitive
than "-", so fix that.
This commit is contained in:
Tobias Witek 2017-04-22 13:11:59 +02:00
parent b59ea4d5ab
commit 434473c875
2 changed files with 5 additions and 5 deletions

View file

@ -56,13 +56,13 @@ class Module(bumblebee.engine.Module):
widget_tx = self.widget(txname) widget_tx = self.widget(txname)
if not widget_rx: if not widget_rx:
widget_rx = bumblebee.output.Widget(name=rxname) widget_rx = bumblebee.output.Widget(name=rxname)
widget_rx.set("theme-minwidth", "down 1000MB") widget_rx.set("theme.minwidth", "down 1000MB")
widget_rx.set("theme-align", "right") widget_rx.set("theme.align", "right")
widgets.append(widget_rx) widgets.append(widget_rx)
if not widget_tx: if not widget_tx:
widget_tx = bumblebee.output.Widget(name=txname) widget_tx = bumblebee.output.Widget(name=txname)
widget_tx.set("theme-minwidth", "down 1000MB") widget_tx.set("theme.minwidth", "down 1000MB")
widget_tx.set("theme-align", "right") widget_tx.set("theme.align", "right")
widgets.append(widget_tx) widgets.append(widget_tx)
prev_rx = widget_rx.get("rx", 0) prev_rx = widget_rx.get("rx", 0)

View file

@ -139,7 +139,7 @@ class Theme(object):
state_themes.append(self._get(widget, state, {})) state_themes.append(self._get(widget, state, {}))
value = self._defaults.get(name, default) value = self._defaults.get(name, default)
value = widget.get("theme-{}".format(name), value) value = widget.get("theme.{}".format(name), value)
value = self._cycle.get(name, value) value = self._cycle.get(name, value)
value = module_theme.get(name, value) value = module_theme.get(name, value)