File tree Expand file tree Collapse file tree 1 file changed +0
-7
lines changed Expand file tree Collapse file tree 1 file changed +0
-7
lines changed Original file line number Diff line number Diff line change @@ -2,33 +2,26 @@ use gio::prelude::*;
22use gtk:: prelude:: * ;
33use gio:: ApplicationFlags ;
44use gtk:: Application ;
5-
65mod style;
76mod ui;
87mod terminal;
98mod webview;
10-
119use style:: apply_styles;
1210use ui:: build_ui;
13-
1411fn 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}
You can’t perform that action at this time.
0 commit comments