[PR #1867] Add edge scroll controls for brightness and volume #1317

Open
opened 2026-10-02 22:09:45 -06:00 by gitea-mirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/MonitorControl/MonitorControl/pull/1867
Author: @huakaiyun
Created: 5/9/2026
Status: 🔄 Open

Base: main ← Head: edge-scroll-controls


📝 Commits (1)

  • 3fbdc63 Add edge scroll controls for brightness and volume

📊 Changes

16 files changed (+543 additions, -13 deletions)

View changed files

📝 .gitignore (+1 -1)
📝 MonitorControl.xcodeproj/project.pbxproj (+14 -4)
📝 MonitorControl/Enums/PrefKey.swift (+34 -0)
📝 MonitorControl/Extensions/Preferences+Extension.swift (+1 -0)
📝 MonitorControl/Info.plist (+1 -1)
📝 MonitorControl/Model/Display.swift (+14 -0)
📝 MonitorControl/Model/OtherDisplay.swift (+26 -4)
📝 MonitorControl/Support/AppDelegate.swift (+23 -2)
➕ MonitorControl/Support/EdgeScrollManager.swift (+202 -0)
📝 MonitorControl/Support/OSDUtils.swift (+4 -0)
📝 MonitorControl/UI/en.lproj/Localizable.strings (+33 -0)
📝 MonitorControl/UI/zh-Hans.lproj/Localizable.strings (+33 -0)
📝 MonitorControl/View Controllers/Preferences/MainPrefsViewController.swift (+2 -0)
➕ MonitorControl/View Controllers/Preferences/MousePrefsViewController.swift (+153 -0)
📝 MonitorControl/main.swift (+1 -0)
📝 MonitorControlHelper/Info.plist (+1 -1)

📄 Description

Hi,

I added an optional edge-scroll control feature for MonitorControl. This allows users to adjust brightness and volume by scrolling near the screen edges.

Main changes:

  • Added EdgeScrollManager to detect edge-based scroll gestures.
  • Added mouse preference UI for configuring the feature.
  • Added new preference keys and localization strings.
  • Integrated the feature with app startup and display control logic.
  • Added Chinese and English localization entries.

Tested locally on macOS by building and running the app in Xcode.

Thank you for maintaining MonitorControl. Please feel free to suggest any changes if needed.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/MonitorControl/MonitorControl/pull/1867 **Author:** [@huakaiyun](https://github.com/huakaiyun) **Created:** 5/9/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `edge-scroll-controls` --- ### 📝 Commits (1) - [`3fbdc63`](https://github.com/MonitorControl/MonitorControl/commit/3fbdc6353d0463950b27dcd9b784ba240a6708eb) Add edge scroll controls for brightness and volume ### 📊 Changes **16 files changed** (+543 additions, -13 deletions) <details> <summary>View changed files</summary> 📝 `.gitignore` (+1 -1) 📝 `MonitorControl.xcodeproj/project.pbxproj` (+14 -4) 📝 `MonitorControl/Enums/PrefKey.swift` (+34 -0) 📝 `MonitorControl/Extensions/Preferences+Extension.swift` (+1 -0) 📝 `MonitorControl/Info.plist` (+1 -1) 📝 `MonitorControl/Model/Display.swift` (+14 -0) 📝 `MonitorControl/Model/OtherDisplay.swift` (+26 -4) 📝 `MonitorControl/Support/AppDelegate.swift` (+23 -2) ➕ `MonitorControl/Support/EdgeScrollManager.swift` (+202 -0) 📝 `MonitorControl/Support/OSDUtils.swift` (+4 -0) 📝 `MonitorControl/UI/en.lproj/Localizable.strings` (+33 -0) 📝 `MonitorControl/UI/zh-Hans.lproj/Localizable.strings` (+33 -0) 📝 `MonitorControl/View Controllers/Preferences/MainPrefsViewController.swift` (+2 -0) ➕ `MonitorControl/View Controllers/Preferences/MousePrefsViewController.swift` (+153 -0) 📝 `MonitorControl/main.swift` (+1 -0) 📝 `MonitorControlHelper/Info.plist` (+1 -1) </details> ### 📄 Description Hi, I added an optional edge-scroll control feature for MonitorControl. This allows users to adjust brightness and volume by scrolling near the screen edges. Main changes: - Added `EdgeScrollManager` to detect edge-based scroll gestures. - Added mouse preference UI for configuring the feature. - Added new preference keys and localization strings. - Integrated the feature with app startup and display control logic. - Added Chinese and English localization entries. Tested locally on macOS by building and running the app in Xcode. Thank you for maintaining MonitorControl. Please feel free to suggest any changes if needed. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
github-starred/MonitorControl#1317
No description provided.