Skip to content

Commit

Permalink
cs_themes: Set a more realistic lower and upper limits for the scroll…
Browse files Browse the repository at this point in the history
…bar size slider,

and fix its page size to 2 (it defaulted to 10, which is too course).
  • Loading branch information
mtwebster committed Jun 30, 2019
1 parent 93e63d5 commit d0ed3fe
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -105,10 +105,11 @@ def on_module_selected(self):
settings.add_row(switch)
self.scrollbar_switch = switch.content_widget

widget = CssRange(_("Scrollbar width"), "scrollbar slider", ["min-width", "min-height"], 5, 100, "px", None, switch)
widget = CssRange(_("Scrollbar width"), "scrollbar slider", ["min-width", "min-height"], 2, 40, "px", None, switch)
settings.add_reveal_row(widget)
widget.sync_initial_switch_state()
self.scrollbar_css_range = widget.content_widget
self.scrollbar_css_range.get_adjustment().set_page_increment(2.0)

switch.content_widget.connect("notify::active", self.on_css_override_active_changed)
widget.content_widget.connect("value-changed", self.on_range_slider_value_changed)
Expand Down

0 comments on commit d0ed3fe

Please sign in to comment.