Re:We rewrote the Ghostty GTK application
by nothankyou777 on Friday August 15, 2025 @07:27AM
(#44911014)
> CSS classes
GTK has gotten so fat that it's more like a 2nd-rate Electron. Not that Electron would have done Ghostty any good...
I have a bad feeling that the only decent & consistent UI option under Linux is to target Win32 API, then run it under Wine.
Re:We rewrote the Ghostty GTK application
by tristan957 on Friday August 15, 2025 @01:39PM
(#44915221)
What does this have to do with Ghostty?
Re:We rewrote the Ghostty GTK application
by nothankyou777 on Friday August 15, 2025 @01:53PM
(#44915432)
Are we looking at the same title?
We rewrote the Ghostty *G* *T* *K* application
The article about struggling... with GTK.
Re:We rewrote the Ghostty GTK application
by tristan957 on Friday August 15, 2025 @02:33PM
(#44915922)
You didn't explain anything wrong with GTK. You just brought up Electron out of nowhere.
Re:We rewrote the Ghostty GTK application
by nothankyou777 on Friday August 15, 2025 @03:06PM
(#44916292)
Electron is bringing an entire web browser in to provide a cross-platform user interface. GTK has become almost a web browser to provide a cross-platform user interface. That is why I started off with
> CSS classes
To spell it out, I think it is all excessive.
Re:We rewrote the Ghostty GTK application
by tristan957 on Saturday August 16, 2025 @12:09AM
(#44920076)
I don't think you know enough about GTK if you think having a CSS parser is bloat in a UI toolkit versus a whole theming engine.
Re:We rewrote the Ghostty GTK application
by nothankyou777 on Saturday August 16, 2025 @01:10AM
(#44920362)
Their CSS implementation is broader than what most actual browsers had 10 years ago. I would not have commented if I weren't already painfully familiar.
https://docs.gtk.org/gtk3/css-overview.html
It even has a DOM inspector window:
https://askubuntu.com/questions/597259/how-do-i-open-gtk-ins...
The negative aspects of Electron have little to nothing to do with CSS, and you're only invoking it here to poison the well by association.
Re:We rewrote the Ghostty GTK application
by nothankyou777 on Friday August 15, 2025 @06:55PM
(#44918220)
You are projecting. Personally speaking, I would choose Electron waaaay before I'd choose GTK. That probably wasn't an option for his optimized terminal, but would be Good Enough™ for just about anything else.
We haven't committed to our CSS classes yet as a stable API but we plan to do that in the next release cycle. Still, they haven't changed much in a year. :)