Windows 11 Calculator Clone (Golang & Wails)

Muhannad Elbolaky

Motivation: The original Windows 11 Calculator app has a minor flaw where it's 1 pixel off, which drives me crazy! ๐Ÿ˜… So, I decided to recreate it perfectly using Golang and Wails to get the functionality I need, with a front-end built using HTML and CSS.
Image showing the 1-pixel issue in the original Windows 11 Calculator app.
Image showing the 1-pixel issue in the original Windows 11 Calculator app.
Objective: The goal is to create a clone of the Windows 11 Calculator app that is visually perfect and works well, fixing the small but annoying error in the original design. I also wanted to try using Golang and Wails to create a native desktop app with a modern design.
Technologies/Tools Used:
Programming Language: Go (Golang) ๐Ÿน
UI Framework: Wails (to build native desktop apps with Go and integrate web technologies) ๐ŸŒ
Frontend: HTML ๐Ÿ“, CSS ๐ŸŽจ, JavaScript ๐Ÿ“œ (leveraging Wails' templating capabilities)
Features:
Basic Calculator: Simple arithmetic functions such as addition โž•, subtraction โž–, multiplication โœ–๏ธ, and division โž—.
Scientific Mode: Advanced features like trigonometric ๐ŸŒ, logarithmic ๐Ÿ“‰, and other math operations.
History: Track previous calculations ๐Ÿ”, with an option to clear history ๐Ÿงน.
Responsive and Modern UI: The design closely mimics Windows 11, with a toggle between light ๐ŸŒž and dark ๐ŸŒ™ themes.
Dark/Light Mode Switch: Change between light and dark modes seamlessly with color switching ๐ŸŒ—.
A comparison of how the dark and light modes change in the application.
Keyboard and Mouse Input: Support for both keyboard shortcuts โŒจ๏ธ and mouse clicks ๐Ÿ–ฑ๏ธ to enter values.
Native Packaging: Build as a native Windows application ๐Ÿ’ป, with potential for other platforms ๐ŸŒ.
Error Handling: Display user-friendly error messages when needed โŒ.
Learning Objectives:
Master Go for backend programming, creating desktop applications with Wails.
Develop modern frontend designs using HTML/CSS and integrate with backend code using IPC.
Build applications with responsive UIs that scale across different devices.
Gain practical experience in building native desktop apps.
Thank you for checking out my project, I enjoyed building it! ๐Ÿ˜Š
- Muhannad Elbolaky
Like this project

Posted Dec 13, 2024

A Windows 11 Calculator clone built with Golang and Wails, supporting light/dark mode, and featuring basic and scientific calculations.

๐Ÿš€ Discord Bots Collection: A Suite of Automations and Fun!
๐Ÿš€ Discord Bots Collection: A Suite of Automations and Fun!
Telegram-to-Discord Messaging Solution
Telegram-to-Discord Messaging Solution

Join 50k+ companies and 1M+ independents

Contra Logo

ยฉ 2025 Contra.Work Inc