Skip to content

Commit

Permalink
fix(preview; theme_model): gradient preview
Browse files Browse the repository at this point in the history
  • Loading branch information
actionless committed Jan 1, 2019
1 parent c4093cf commit 4888813
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions oomox_gui/preview.py
Original file line number Diff line number Diff line change
Expand Up @@ -292,8 +292,8 @@ def update_preview_gradients(self, colorscheme):
}}
""".format(
color=color,
amount1=1 - gradient / 2,
amount2=1 + gradient * 2
amount1=1 + gradient / 2,
amount2=1 - gradient / 2,
)
).encode('ascii'))
Gtk.StyleContext.add_provider(
Expand Down
1 change: 1 addition & 0 deletions oomox_gui/theme_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,7 @@ def merge_theme_model_with_base(whole_theme_model, base_theme_model, plugin_mode
'key': 'GRADIENT',
'type': 'float',
'fallback_value': 0.0,
'max_value': 2.0,
'display_name': _('Gradient'),
},
]
Expand Down

0 comments on commit 4888813

Please sign in to comment.