We'll use the gtk crate to build a simple hacker news app that fetches the top 10 trending stories from the https://news.ycombinator.com/ website. Hacker News is a website focusing on digital technologies and tech news from around the world. To start with, we have created a basic wireframe model of our app:
At the very top, we have the app header bar, which has a Refresh button on the left that can update our stories on demand. A story is a news entry that's posted by users on the Hacker News website. The header bar also contains the app title at the center and the usual window controls on the right. Below that, we have our main scrollable window where our stories will be rendered vertically as a story widget. The story widget is made up of two widgets: a widget for displaying the story's name and its score, and another...