pika-kernel-manager/src/content/mod.rs

24 lines
495 B
Rust
Raw Normal View History

2024-06-17 00:03:37 +02:00
use gtk::{Align, IconSize};
use gtk::prelude::{BoxExt, WidgetExt};
pub fn content() -> gtk::Box {
let content_box = gtk::Box::builder()
.hexpand(true)
.vexpand(true)
.build();
let tux_icon = gtk::Image::builder()
.pixel_size(128)
.halign(Align::Center)
.hexpand(true)
.build();
tux_icon.set_icon_name(Some("tux-symbolic"));
tux_icon.add_css_class("valid-action");
content_box.append(&tux_icon);
content_box
}