diff --git a/CHANGELOG.md b/CHANGELOG.md index 0c8decc4..84406ec7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +3.10.11 +======================== +* Added config option for faster scroll speed + 3.10.10 ======================== * Fixed MVLive recordings once again diff --git a/client/src/main/java/ctbrec/ui/settings/SettingsTab.java b/client/src/main/java/ctbrec/ui/settings/SettingsTab.java index a7566dfd..9ff186b4 100644 --- a/client/src/main/java/ctbrec/ui/settings/SettingsTab.java +++ b/client/src/main/java/ctbrec/ui/settings/SettingsTab.java @@ -123,6 +123,7 @@ public class SettingsTab extends Tab implements TabSelectionListener { private SimpleStringProperty downloadFilename; private SimpleBooleanProperty requireAuthentication; private SimpleBooleanProperty transportLayerSecurity; + private SimpleBooleanProperty fastScrollSpeed; private ExclusiveSelectionProperty recordLocal; private SimpleIntegerProperty postProcessingThreads; private IgnoreList ignoreList; @@ -178,6 +179,7 @@ public class SettingsTab extends Tab implements TabSelectionListener { recordLocal = new ExclusiveSelectionProperty(null, "localRecording", settings.localRecording, "Local", "Remote"); postProcessingThreads = new SimpleIntegerProperty(null, "postProcessingThreads", settings.postProcessingThreads); onlineCheckSkipsPausedModels = new SimpleBooleanProperty(null, "onlineCheckSkipsPausedModels", settings.onlineCheckSkipsPausedModels); + fastScrollSpeed = new SimpleBooleanProperty(null, "fastScrollSpeed", settings.fastScrollSpeed); } private void createGui() { @@ -202,6 +204,7 @@ public class SettingsTab extends Tab implements TabSelectionListener { Setting.of("Manually select stream quality", chooseStreamQuality, "Opens a dialog to select the video resolution before recording"), Setting.of("Enable live previews (experimental)", livePreviews), Setting.of("Add models from clipboard", monitorClipboard, "Monitor clipboard for model URLs and automatically add them to the recorder").needsRestart(), + Setting.of("Fast scroll speed", fastScrollSpeed, "Makes the thumbnail overviews scroll faster with the mouse wheel").needsRestart(), Setting.of("Start Tab", startTab), Setting.of("Colors (Base / Accent)", new ColorSettingsPane(Config.getInstance())).needsRestart() ), diff --git a/client/src/main/java/ctbrec/ui/tabs/ThumbOverviewTab.java b/client/src/main/java/ctbrec/ui/tabs/ThumbOverviewTab.java index cc826550..24d86d70 100644 --- a/client/src/main/java/ctbrec/ui/tabs/ThumbOverviewTab.java +++ b/client/src/main/java/ctbrec/ui/tabs/ThumbOverviewTab.java @@ -197,8 +197,10 @@ public class ThumbOverviewTab extends Tab implements TabSelectionListener { scrollPane.setContent(grid); scrollPane.setFitToHeight(true); scrollPane.setFitToWidth(true); - FasterVerticalScrollPaneSkin scrollPaneSkin = new FasterVerticalScrollPaneSkin(scrollPane); - scrollPane.setSkin(scrollPaneSkin); + if (Config.getInstance().getSettings().fastScrollSpeed) { + FasterVerticalScrollPaneSkin scrollPaneSkin = new FasterVerticalScrollPaneSkin(scrollPane); + scrollPane.setSkin(scrollPaneSkin); + } BorderPane.setMargin(scrollPane, new Insets(5)); pagination = new HBox(5); diff --git a/common/src/main/java/ctbrec/Settings.java b/common/src/main/java/ctbrec/Settings.java index ae579c8c..0da844be 100644 --- a/common/src/main/java/ctbrec/Settings.java +++ b/common/src/main/java/ctbrec/Settings.java @@ -60,6 +60,7 @@ public class Settings { public String downloadFilename = "${modelSanitizedName}-${localDateTime}"; public List eventHandlers = new ArrayList<>(); public boolean fastPlaylistGenerator = false; + public boolean fastScrollSpeed = true; public String fc2livePassword = ""; public String fc2liveUsername = ""; public String ffmpegMergedDownloadArgs = "-c:v copy -c:a copy -movflags faststart -y -f mpegts";