Skip to content

Commit 9ebbf7d

Browse files
authored
Update main.rs
1 parent b2711a9 commit 9ebbf7d

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

src/main.rs

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,33 +2,26 @@ use gio::prelude::*;
22
use gtk::prelude::*;
33
use gio::ApplicationFlags;
44
use gtk::Application;
5-
65
mod style;
76
mod ui;
87
mod terminal;
98
mod webview;
10-
119
use style::apply_styles;
1210
use ui::build_ui;
13-
1411
fn main() {
1512
// Initialize GTK application
1613
let app = Application::new(Some("com.example.hackerterm"), ApplicationFlags::default());
17-
1814
// Connect startup to apply global settings and styles
1915
app.connect_startup(|_| {
2016
// Enable dark theme
2117
let settings = gtk::Settings::default().unwrap();
2218
settings.set_property("gtk-application-prefer-dark-theme", &true.to_value());
2319
settings.set_property("gtk-theme-name", &"Adwaita".to_value()); // Use Adwaita dark variant
24-
2520
// Apply custom styles
2621
apply_styles();
2722
});
28-
2923
// Connect activate to build the UI
3024
app.connect_activate(build_ui);
31-
3225
// Run the application
3326
app.run();
3427
}

0 commit comments

Comments
 (0)