Saner defaults for mouse scrolling

This commit is contained in:
Andrzej Rybczak
2020-12-20 17:32:18 +01:00
parent 31798fd1c7
commit 93ac620065
3 changed files with 8 additions and 8 deletions

View File

@@ -405,8 +405,6 @@
# #
#cyclic_scrolling = no #cyclic_scrolling = no
# #
#lines_scrolled = 2
#
#lyrics_fetchers = azlyrics, genius, sing365, metrolyrics, justsomelyrics, jahlyrics, plyrics, tekstowo, zeneszoveg, internet #lyrics_fetchers = azlyrics, genius, sing365, metrolyrics, justsomelyrics, jahlyrics, plyrics, tekstowo, zeneszoveg, internet
# #
#follow_now_playing_lyrics = no #follow_now_playing_lyrics = no
@@ -498,7 +496,9 @@
# #
#mouse_support = yes #mouse_support = yes
# #
#mouse_list_scroll_whole_page = yes #mouse_list_scroll_whole_page = no
#
#lines_scrolled = 5
# #
#empty_tag_marker = <empty> #empty_tag_marker = <empty>
# #

View File

@@ -287,9 +287,6 @@ If enabled, text in header window will scroll if its length is longer then actua
.B cyclic_scrolling = yes/no .B cyclic_scrolling = yes/no
If enabled, cyclic scrolling is used (e.g. if you press down arrow being at the end of list, it'll take you to the beginning) If enabled, cyclic scrolling is used (e.g. if you press down arrow being at the end of list, it'll take you to the beginning)
.TP .TP
.B lines_scrolled = NUMBER
Number of lines that are scrolled with mouse wheel.
.TP
.B lyrics_fetchers = FETCHERS .B lyrics_fetchers = FETCHERS
Comma separated list of lyrics fetchers. Comma separated list of lyrics fetchers.
.TP .TP
@@ -371,6 +368,9 @@ If set to yes, mouse support will be enabled.
.B mouse_list_scroll_whole_page = yes/no .B mouse_list_scroll_whole_page = yes/no
If enabled, mouse wheel will scroll the whole page of item list at a time, otherwise the number of lines specified by lines_scrolled variable. If enabled, mouse wheel will scroll the whole page of item list at a time, otherwise the number of lines specified by lines_scrolled variable.
.TP .TP
.B lines_scrolled = NUMBER
Number of lines that are scrolled with mouse wheel.
.TP
.B empty_tag_marker = TEXT .B empty_tag_marker = TEXT
Text that will be displayed, if requested tag is not set. Text that will be displayed, if requested tag is not set.
.TP .TP

View File

@@ -476,7 +476,6 @@ bool Configuration::read(const std::vector<std::string> &config_paths, bool igno
p.add("titles_visibility", &titles_visibility, "yes", yes_no); p.add("titles_visibility", &titles_visibility, "yes", yes_no);
p.add("header_text_scrolling", &header_text_scrolling, "yes", yes_no); p.add("header_text_scrolling", &header_text_scrolling, "yes", yes_no);
p.add("cyclic_scrolling", &use_cyclic_scrolling, "no", yes_no); p.add("cyclic_scrolling", &use_cyclic_scrolling, "no", yes_no);
p.add("lines_scrolled", &lines_scrolled, "2");
p.add("lyrics_fetchers", &lyrics_fetchers, p.add("lyrics_fetchers", &lyrics_fetchers,
"azlyrics, genius, sing365, metrolyrics, justsomelyrics, jahlyrics, plyrics, tekstowo, zeneszoveg, internet", "azlyrics, genius, sing365, metrolyrics, justsomelyrics, jahlyrics, plyrics, tekstowo, zeneszoveg, internet",
list_of<LyricsFetcher_>); list_of<LyricsFetcher_>);
@@ -558,7 +557,8 @@ bool Configuration::read(const std::vector<std::string> &config_paths, bool igno
p.add("block_search_constraints_change_if_items_found", p.add("block_search_constraints_change_if_items_found",
&block_search_constraints_change, "yes", yes_no); &block_search_constraints_change, "yes", yes_no);
p.add("mouse_support", &mouse_support, "yes", yes_no); p.add("mouse_support", &mouse_support, "yes", yes_no);
p.add("mouse_list_scroll_whole_page", &mouse_list_scroll_whole_page, "yes", yes_no); p.add("mouse_list_scroll_whole_page", &mouse_list_scroll_whole_page, "no", yes_no);
p.add("lines_scrolled", &lines_scrolled, "5");
p.add("empty_tag_marker", &empty_tag, "<empty>"); p.add("empty_tag_marker", &empty_tag, "<empty>");
p.add("tags_separator", &MPD::Song::TagsSeparator, " | "); p.add("tags_separator", &MPD::Song::TagsSeparator, " | ");
p.add("tag_editor_extended_numeration", &tag_editor_extended_numeration, "no", yes_no); p.add("tag_editor_extended_numeration", &tag_editor_extended_numeration, "no", yes_no);