feat: scaffold Rust/GTK4 project
This commit is contained in:
+21
@@ -0,0 +1,21 @@
|
||||
use gtk::prelude::*;
|
||||
use gtk::{glib, Application, ApplicationWindow};
|
||||
|
||||
const APP_ID: &str = "dev.rootiest.IconColorTool";
|
||||
|
||||
fn main() -> glib::ExitCode {
|
||||
let app = Application::builder().application_id(APP_ID).build();
|
||||
|
||||
app.connect_activate(|app| {
|
||||
let window = ApplicationWindow::builder()
|
||||
.application(app)
|
||||
.title("Icon Color Tool")
|
||||
.default_width(900)
|
||||
.default_height(650)
|
||||
.build();
|
||||
|
||||
window.present();
|
||||
});
|
||||
|
||||
app.run()
|
||||
}
|
||||
Reference in New Issue
Block a user