feat: scaffold Rust/GTK4 project
This commit is contained in:
@@ -13,3 +13,4 @@ docs/plans
|
||||
docs/specs
|
||||
docs/devlogs
|
||||
# ────────────────────────────────────────────────────────
|
||||
/target
|
||||
|
||||
+12
@@ -0,0 +1,12 @@
|
||||
[package]
|
||||
name = "icon-color-tool"
|
||||
version = "0.1.0"
|
||||
edition = "2021"
|
||||
|
||||
[dependencies]
|
||||
gtk = { package = "gtk4", version = "0.11" }
|
||||
anyhow = "1"
|
||||
regex = "1"
|
||||
serde = { version = "1", features = ["derive"] }
|
||||
toml = "0.8"
|
||||
walkdir = "2"
|
||||
+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