Skip to content

feat: 0.3.0 hardening, display choice, icon styles and 11 languages - #8

Merged
duongdev merged 4 commits into
mainfrom
feat/0.3.0
Nov 14, 2026
Merged

duongdev merged 4 commits into
mainfrom
feat/0.3.0

Conversation

@duongdev

Copy link
Copy Markdown
Owner

Summary

Features for 0.3.0. The version is now 0.3.0 (build 3).

  • Hardening: after wake and after a user switch, Wakeful checks that macOS still has its power assertion, using IOPMAssertionCopyProperties. If the assertion is gone, it creates it again (PowerAssertion.ensureHeld()).
  • Display choice in Shortcuts: Turn On and Toggle have a Display parameter: Use Wakeful Setting, Keep Display Awake, or Let Display Sleep.
    • The choice applies to that session only.
    • It stays when you change the duration.
    • It clears when the session ends or when you change the setting.
    • The menu's Keep Display Awake checkmark shows what is in effect now.
  • Icon when on: Standard, Green, Blue, Green Dot or Blue Dot.
    • The colored styles are drawn as non-template images. The parts that follow the menu bar use labelColor.
    • The dot has a clear ring, so it stays separate from the cup's handle.
  • 11 languages: Vietnamese, Spanish, French, German, Italian, Portuguese (Brazil), Russian, Japanese, Korean, and Chinese (Simplified and Traditional).
    • All 101 strings and the Siri phrases are translated.
    • Durations come from DateComponentsFormatter, so they show in the chosen language.
  • Language setting: in Settings › General.
    • It stores the per-app AppleLanguages, the same value System Settings › Language & Region › Applications uses.
    • After you choose a language, it offers to restart Wakeful.
  • Docs:
    • README, CHANGELOG and CONTRIBUTING are updated. CONTRIBUTING now has a Translations section.
    • The menu and Settings screenshots are new.

Test

  • swift test --package-path WakefulCore: 29 tests pass. New tests:
    • Display override: per session, kept when the duration changes, cleared by a setting change, and still following lock behavior.
    • Real-IOKit test: release the assertion, check it is gone, then check ensureHeld() re-creates it.
  • Debug and Release builds succeed with no new warnings.
  • Shortcuts, on a Developer ID signed build:
    • Turn On with Let Display Sleep holds only PreventUserIdleSystemSleep.
    • Changing the duration keeps it.
    • A fresh Turn On uses the setting.
  • Icon styles: pixel color checks in the real menu bar for Green, Blue Dot and Standard. Standard has 0 colored pixels.
  • Languages:
    • Every catalog string is translated in all 11 languages.
    • The bundle has 11 .lproj folders.
    • The live menu was checked in Vietnamese, Japanese, German and Korean.
    • With English first and German second, the app shows English.
  • Language setting: a saved per-app language applies on a normal launch. Clearing it brings back the system language. Restart Now relaunches the app in the chosen language.

Notes

  • Translations other than English and Vietnamese have not been checked by native speakers. CONTRIBUTING asks for corrections.
  • Colored icon styles were checked on a dark menu bar only.

@duongdev
duongdev merged commit fa79b42 into main Nov 14, 2026
3 checks passed
@duongdev
duongdev deleted the feat/0.3.0 branch December 1, 2026 01:30
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