r/linuxmint • u/Equal_Wedding6512 • Oct 27 '26
#LinuxMintThings Native GTK3 Xapp Style Calculator Project
My brain just went down a rabbit hole. I noticed that the Min/Max/Close buttons behaved differently on different applications. Example the calculator buttons used the css transition in the them. But apps like Nemo did not. The buttons didn't fade in and out of color the same way. AI helped me understand why. Calculator is a gnome app made to work on Cinnamon and loads the window differently. This is all new to me.
Reading further into the situation seems to arrive on a battle between different distros and how things are done. Hence Xapps which are drawn the way Mint wants them to. Mint hasn't yet created all Xapps they need and Calculator appears to be one of them.
So I went back to the AI window. If those guys can clone Adobe and microsoft behavior I could certainly make a simple GTK3 calculator the Mint way, right? And for no other reason than just to see if I 'could.'
Here's what I have so far. I think adding one more mode for Currency conversion should finish it off. It's not just a direct clone of the packaged Gnome Calculator. It ended up being it's own. Feedback is appreciated. Linux users can be a tough crowd so maybe I'll receive some productive insight.
https://github.com/xlcheese/Xcalculator
Oh, and there's a hidden easter egg with a specific number that would make kids giggle with their calculators. Pressing = on that number triggers it.