Skip to content

About

macOS menu bar calendar in SwiftUI, with lunar dates, solar terms, holidays, and a customizable menu bar display.

Resources

Code of conduct

Contributing

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

MenuBarCalendar

License: MIT macOS Swift Release CI Stars

δΈ­ζ–‡ζ–‡ζ‘£

A lightweight macOS menu bar calendar built with SwiftUI MenuBarExtra (macOS 13+). Click the menu bar item to open a calendar panel with lunar calendar support, solar terms, festival countdowns, and a customizable digital clock.

Current version: 0.0.3

Project Overview

MenuBarCalendar lives in the menu bar (no Dock icon) and focuses on three things: a readable clock in the menu bar, a rich calendar popover, and sensible defaults with minimal configuration.

Design principles:

  • Minimal β€” core features only; small codebase and binary footprint
  • Native β€” system Form for Settings, MenuBarExtra for the menu bar, DateFormatter for time display
  • Clean β€” split calendar panel, frosted background, large lightweight digital clock

Features

Menu Bar

  • Digital time display with 12/24-hour format, seconds, and AM/PM
  • Display presets: time only, time + date, time + weekday, time + lunar date, and more
  • Custom DateFormatter format strings
  • Icon-only mode

Calendar Panel

  • Left panel: large digital clock, Gregorian/Lunar details, week-start toggle, solar-term and festival countdown
  • Right panel: month grid with week numbers, lunar/festival labels, today highlight, holiday markers
  • Copy date, jump to today (⌘T)

Voice Announcements

  • Optional Chinese time announcements via NSSpeechSynthesizer
  • Intervals: hourly, every 30 minutes, or every 15 minutes

Lunar Calendar Engine

  • Gregorian ↔ Lunar conversion for 1900–2100
  • Heavenly stems, earthly branches, zodiac, 24 solar terms, traditional festivals

Screenshots

Placeholder β€” add screenshots of the menu bar preview, calendar panel, and Settings window.

Requirements

  • macOS 13.0 (Ventura) or later
  • Xcode 16+ recommended for building from source

Install

From GitHub Releases (recommended)

  1. Open the Releases page.
  2. Download MenuBarCalendar-v0.0.3.zip from the latest release.
  3. Unzip and drag MenuBarCalendar.app to Applications (or ~/Applications).
  4. Launch the app β€” it appears in the menu bar (no Dock icon).

macOS may block apps from unidentified developers. If needed, right-click the app β†’ Open β†’ confirm.

Build from Source

cd MenuBarCalendar
python3 generate_xcodeproj.py   # only if you changed the source file list
open MenuBarCalendar.xcodeproj
# Select the MenuBarCalendar scheme in Xcode, then press ⌘R

Command-line Release build:

xcodebuild -project MenuBarCalendar.xcodeproj \
  -scheme MenuBarCalendar \
  -configuration Release \
  -derivedDataPath build/DerivedData \
  build

Install the built app:

cp -R build/DerivedData/Build/Products/Release/MenuBarCalendar.app ~/Applications/
open ~/Applications/MenuBarCalendar.app

After launch, the app icon appears in the menu bar. Click it to open the calendar panel.

Settings

Open Settings from the gear icon in the panel footer, or MenuBarCalendar β†’ Settings (⌘,):

Section Options
Time Display 12/24-hour, AM/PM, seconds
Menu Bar Display content, custom format, live preview
Calendar Week starts on Monday, upcoming festival countdown
Voice Enable announcements, interval

Preferences are stored in UserDefaults and apply immediately.

Architecture

MenuBarCalendar/
β”œβ”€β”€ MenuBarCalendar/
β”‚   β”œβ”€β”€ MenuBarCalendarApp.swift      # App entry, MenuBarExtra, Settings
β”‚   β”œβ”€β”€ Core/
β”‚   β”‚   β”œβ”€β”€ Models/                   # Data models
β”‚   β”‚   β”œβ”€β”€ Services/                 # Clock, lunar, formatting, voice
β”‚   β”‚   └── Settings/                 # UserSettings
β”‚   β”œβ”€β”€ Features/
β”‚   β”‚   β”œβ”€β”€ MenuBar/                  # Menu bar label
β”‚   β”‚   β”œβ”€β”€ CalendarPanel/            # Popover panel
β”‚   β”‚   └── Settings/                 # Settings (Form)
β”‚   └── UI/Components/                # Theme and panel components
β”œβ”€β”€ MenuBarCalendarTests/
└── MenuBarCalendar.xcodeproj

Tests

xcodebuild -project MenuBarCalendar.xcodeproj -scheme MenuBarCalendar test

Changelog

See CHANGELOG.md for release notes:

  • v0.0.3 β€” open-source polish, CI, GitHub Releases distribution
  • v0.0.2 β€” streamlined UI, native Settings Form, smaller binary
  • v0.0.1 β€” initial release with voice announcements and lunar calendar

Contributing

Contributions are welcome! Please read CONTRIBUTING.md and CODE_OF_CONDUCT.md before opening a pull request.

License

This project is licensed under the MIT License.

Contributors

  • junhey β€” project maintainer

About

macOS menu bar calendar in SwiftUI, with lunar dates, solar terms, holidays, and a customizable menu bar display.

Resources

Code of conduct

Contributing

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages