Skip to content

plyght/mpp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mpp

mac plus plus

A tiny C++20, Qt Widgets, and AppKit starter for polished macOS apps.

What you get

  • Unified macOS titlebar with the full custom traffic-light implementation
  • Sidebar shell with vibrancy
  • Reusable dark semantic theme tokens
  • SF Symbols-backed chrome buttons
  • SF Symbol QIconEngine renderer from the browser base
  • Floating omnibox component with suggestion ranking
  • Address bar controller with native Liquid Glass suggestions popup
  • Reusable browser-style topbar component
  • Rounded translucent app surface
  • CMake .app bundle setup
  • Minimal content stack you can replace per app

Build

cmake -S . -B build -DCMAKE_BUILD_TYPE=Debug
cmake --build build
open build/mpp.app

If Qt is installed outside CMake's default search paths, pass CMAKE_PREFIX_PATH:

cmake -S . -B build -DCMAKE_BUILD_TYPE=Debug \
  -DCMAKE_PREFIX_PATH='/path/to/qt'

Rename for a new app

Change these first:

CMakeLists.txt: project name, executable name, bundle identifier
src/main.cpp: application name, display name, organization name
src/app/AppWindow.cpp: window title and sidebar labels

Then replace the pages in AppWindow::buildContent with your app UI.

Reusable pieces

src/mac/SfSymbols.mm          SF Symbols to QIcon renderer
src/mac/Vibrancy.mm           window/sidebar vibrancy helpers
src/mac/UnifiedToolbar.mm     unified titlebar plus custom traffic-light clone/reparent system
src/mac/LayerCorners.mm       native layer rounding
src/mac/HighRefresh.mm        ProMotion/high-refresh hint
src/ui/AddressBarController.* native Liquid Glass search suggestions under an address field
src/ui/ChromeWidgets.*        animated chrome surfaces and pills
src/ui/FloatingOmnibox.*      command/search popup base
src/ui/Topbar.*               browser-style toolbar component
src/services/Theme.*          semantic theme tokens and app stylesheet
docs/liquid-glass-*.md        implementation notes for Liquid Glass variants

About

mac plus plus

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors