Created
December 21, 2021 19:54
-
-
Save tsutsui/144d1aa7f35e4209f20cd13405c3edb7 to your computer and use it in GitHub Desktop.
mikutter 5.0.0 でタイムラインのスクロールバーを常に表示するようにしたい
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/plugin/gtk3/widget/timeline.rb b/plugin/gtk3/widget/timeline.rb | |
index e75c17c2..3efc6f6f 100644 | |
--- a/plugin/gtk3/widget/timeline.rb | |
+++ b/plugin/gtk3/widget/timeline.rb | |
@@ -67,6 +67,7 @@ module Plugin::Gtk3 | |
add @postbox | |
add(Gtk::ScrolledWindow.new.tap do |sw| | |
sw.set_policy :never, :automatic | |
+ sw.overlay_scrolling = UserConfig[:tl_scrollbar] | |
sw.expand = true | |
sw.add @listbox | |
end) | |
diff --git a/plugin/set_view/set_view.rb b/plugin/set_view/set_view.rb | |
index 384b7fa5..5455fcaf 100644 | |
--- a/plugin/set_view/set_view.rb | |
+++ b/plugin/set_view/set_view.rb | |
@@ -172,6 +172,8 @@ Plugin::create(:set_view) do | |
tooltip(_("受信した投稿に短縮URLが含まれていた場合、それを短縮されていない状態に戻してから表示します。")) | |
end | |
+ select _('タイムラインのスクロールバー'), :tl_scrollbar, false => _('常に表示する'), true => _('自動的に隠す') | |
+ | |
select _('タブの位置'), :tab_position, 0 => _('上'), 1 => _('下'), 2 => _('左'), 3 => _('右') | |
select _('投稿ボックス'), :postbox_visibility, always: _('常に表示する'), none: _('表示しない'), auto: _('1アカウント以上あれば表示') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment