diff options
author | Simon Tischer <simon@t-tischer.de> | 2020-04-13 11:00:45 +0200 |
---|---|---|
committer | Christopher Michael <devilhorns@comcast.net> | 2020-04-13 08:09:55 -0400 |
commit | 5853fca2d433e300fa134637f134bcef52b384f6 (patch) | |
tree | 1f049e1357c2f3c8c52b12b28ebf72a1a1fce0ef /src/modules/pager | |
parent | 2f52f093b6e89ce9ee3e672419b686723cd47ca8 (diff) | |
download | enlightenment-5853fca2d433e300fa134637f134bcef52b384f6.tar.gz |
netstatus/batman/pager - slider stepping fixes with mousewheel
detail work on pager(gadget) settings
- changed indicator format to slider format
- changed steps to make more sence
Reviewed-by: Christopher Michael <devilhorns@comcast.net>
Differential Revision: https://phab.enlightenment.org/D11693
Diffstat (limited to 'src/modules/pager')
-rw-r--r-- | src/modules/pager/gadget/config.c | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/src/modules/pager/gadget/config.c b/src/modules/pager/gadget/config.c index b7ac10adf3..c6c6535825 100644 --- a/src/modules/pager/gadget/config.c +++ b/src/modules/pager/gadget/config.c @@ -445,9 +445,10 @@ _config_create_pages(Evas_Object *parent) ow = elm_slider_add(tb); elm_object_disabled_set(ow, !pager_config->popup); elm_slider_min_max_set(ow, 20, 200); - elm_slider_step_set(ow, 1); + elm_slider_step_set(ow, 0.0555); elm_slider_value_set(ow, pager_config->popup_height); elm_slider_unit_format_set(ow, _("%.0f pixels")); + elm_slider_indicator_format_set(ow, _("%.0f")); elm_table_pack(tb, ow, 0, 2, 1, 1); E_ALIGN(ow, EVAS_HINT_FILL, EVAS_HINT_FILL); E_WEIGHT(ow, EVAS_HINT_EXPAND, 0); @@ -467,9 +468,10 @@ _config_create_pages(Evas_Object *parent) ow = elm_slider_add(tb); elm_object_disabled_set(ow, !pager_config->popup); elm_slider_min_max_set(ow, 0.1, 10); - elm_slider_step_set(ow, 0.1); + elm_slider_step_set(ow, 0.01); elm_slider_value_set(ow, pager_config->popup_speed); elm_slider_unit_format_set(ow, _("%1.1f seconds")); + elm_slider_indicator_format_set(ow, _("%.1f")); elm_table_pack(tb, ow, 0, 4, 1, 1); E_ALIGN(ow, EVAS_HINT_FILL, EVAS_HINT_FILL); E_WEIGHT(ow, EVAS_HINT_EXPAND, 0); @@ -489,9 +491,10 @@ _config_create_pages(Evas_Object *parent) ow = elm_slider_add(tb); elm_object_disabled_set(ow, !pager_config->popup); elm_slider_min_max_set(ow, 20, 200); - elm_slider_step_set(ow, 1); + elm_slider_step_set(ow, 0.0555); elm_slider_value_set(ow, pager_config->popup_act_height); elm_slider_unit_format_set(ow, _("%.0f pixels")); + elm_slider_indicator_format_set(ow, _("%.0f")); elm_table_pack(tb, ow, 0, 6, 1, 1); E_ALIGN(ow, EVAS_HINT_FILL, EVAS_HINT_FILL); E_WEIGHT(ow, EVAS_HINT_EXPAND, 0); @@ -564,9 +567,10 @@ _config_create_pages(Evas_Object *parent) ow = elm_slider_add(tb); elm_object_disabled_set(ow, !pager_config->popup_urgent); elm_slider_min_max_set(ow, 0.1, 10); - elm_slider_step_set(ow, 0.1); + elm_slider_step_set(ow, 0.01); elm_slider_value_set(ow, pager_config->popup_urgent_speed); elm_slider_unit_format_set(ow, _("%1.1f seconds")); + elm_slider_indicator_format_set(ow, _("%.1f")); elm_table_pack(tb, ow, 0, 4, 1, 1); E_ALIGN(ow, EVAS_HINT_FILL, EVAS_HINT_FILL); E_WEIGHT(ow, EVAS_HINT_EXPAND, 0); |