Skip to content

Conversation

@arsarsars1
Copy link

Overview

This PR addresses UI display issues and improves macOS Tahoe (15.x) / Sequoia compatibility.

Changes Made

UI Fixes

  1. Menu Bar Slider

    • Redesigned layout: Icon positioned above slider (column style)
    • Icon aligned to left-start position
    • Increased view height (+42px) for better spacing and aesthetics
    • Fixed icon/slider overlap issues
  2. Preferences - Displays Tab

    • Fixed truncated display friendly name text field
    • Increased text field height from 21px to 28px to accommodate title2 font
    • Improved vertical text alignment
  3. Preferences - About Tab

    • Fixed truncated application name label
    • Increased label dimensions to prevent text cutoff
  4. Preferences - Keyboard Tab

    • Improved layout of accessibility troubleshooting UI
    • Added Help button with troubleshooting guide for brightness control issues
    • Added Reset Accessibility Permission button
    • Better grid alignment with container/label structure

macOS Tahoe/Sequoia Support

  1. Accessibility Permission Reset

    • Implemented tccutil reset Accessibility functionality
    • Added button to trigger reset (requires admin privileges)
    • Automatically re-prompts for accessibility after reset
  2. Custom HUD Fallback

    • Added fallback HUD for cases where native OSD is broken on macOS Tahoe
    • Uses custom overlay window when OSDManager fails
    • Created CustomHUD.swift with custom UI implementation

Files Changed

  • MonitorControl.xcodeproj/project.pbxproj - Added CustomHUD.swift to project
  • MonitorControl/Info.plist - Version bump
  • MonitorControl/Support/OSDUtils.swift - Added Custom HUD fallback support
  • MonitorControl/Support/SliderHandler.swift - Menu bar slider layout improvements
  • MonitorControl/Support/CustomHUD.swift - NEW: Custom OSD implementation
  • MonitorControl/UI/Base.lproj/Main.storyboard - UI text field fixes, accessibility button layout
  • MonitorControl/UI/cs.lproj/Localizable.strings - Localization string updates
  • MonitorControl/View Controllers/Preferences/KeyboardPrefsViewController.swift - Accessibility troubleshooting UI
  • MonitorControlHelper/Info.plist - Version bump

Testing

  • ✅ Tested on macOS Tahoe 15.x
  • ✅ Verified UI fixes in Preferences (Displays, About, Keyboard tabs)
  • ✅ Verified menu bar slider layout and interaction
  • ✅ Tested accessibility permission reset flow
  • ✅ Tested Custom HUD fallback when native OSD unavailable

Related Issues

  • Addresses UI text truncation issues
  • Improves macOS Tahoe/Sequoia compatibility

- **Menu Bar Slider**:
  - Redesigned layout to column style (icon above slider).
  - Aligned icon to left-start.
  - Increased vertical spacing and view height for better touch target and aesthetics.
  - Fixed icon vs slider overlap issues.

- **Preferences UI**:
  - **Displays**: Fixed truncated friendly name text field, increased height, and improved vertical alignment.
  - **About**: Fixed truncated app name text.
  - **Keyboard**: Improved layout of accessibility troubleshooting buttons (Help/Reset), added container/label for better grid alignment.

- **macOS Tahoe Support**:
  - Added accessibility permission reset functionality.
  - Implemented Custom HUD fallback for cases where native OSD is broken.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant