ui: Modernize popover panel — larger layout, resource monitoring, hover effects - #10
Merged
Conversation
Increases the menu bar popover size and font hierarchy for better readability on Retina and high-resolution displays. Changes: - Panel width: 320 → 380 - Padding: 16 → 20 - Header: title2 → title icon, headline → title3 name, caption → subheadline model - Status: subheadline → body (medium weight), caption2 → caption hint - Transcription: caption → subheadline label, callout → body text - Stats: caption2 → caption - Permissions: caption → subheadline/callout - Actions: callout → body, vertical padding 2 → 4 - Status dot: 8×8 → 10×10 - Audio level bar: 4pt → 6pt - Transcription card: padding 8 → 10, corner radius 6 → 8 - Section spacing increased throughout for breathing room
Fixes based on annotated screenshot feedback: - Move status dot next to 'VocaMac' title instead of far right - Show app RAM consumption in the empty top-right area - Full-width clickable area on Settings/Quit buttons (contentShape) - Hover highlight effect on action rows (MenuRowButtonStyle) - Remove divider between action rows for cleaner look - Proper alignment with negative horizontal padding offset
- Add ProcessMonitor class that polls CPU and memory every 5 seconds - Show CPU usage with cpu icon and RAM with memorychip icon in header - Hover tooltips show detailed info: - CPU: exact percentage + thread count - RAM: exact MB + peak memory usage - Monospaced digits for clean number alignment - Replaces inline memory calculation with proper observable polling
Replace basic .help() tooltips with interactive ResourceBadge views: - Subtle background highlight on hover - Popover shows detailed breakdown: - CPU: exact %, thread count, core count - RAM: resident MB, peak MB, total system RAM - Smooth hover animation (0.15s ease in/out) - Clean layout with icon, divider, and labeled rows
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
A comprehensive UX overhaul of the menu bar popover panel for a more modern, polished feel on high-resolution displays.
Changes
Panel Sizing & Typography
Layout Improvements
contentShape(Rectangle())Resource Monitoring
cpuicon — shows current process CPU %memorychipicon — shows current resident memoryProcessMonitorclass polls every 5 seconds (lightweight, non-blocking)Hover Effects
Before → After
.headline.title3semibold.subheadline.bodymediumTechnical Details
ProcessMonitor:ObservableObjectwith@StateObjectlifecycle, usesmach_task_basic_infofor memory andtask_threads+thread_basic_infofor CPUMenuRowButtonStyle: CustomButtonStylewithonHoverfor native-feeling hover highlightsResourceBadge: Reusable component with icon, value display, and hover popover