@@ -21,53 +21,6 @@ fn config_handle() -> &'static ConfigHandle {
2121 & CONFING_HANDLE
2222}
2323
24- /// The window configuration object.
25- #[ derive( PartialEq , Clone , Deserialize , Serialize , Debug ) ]
26- #[ serde( tag = "window" , rename_all = "camelCase" ) ]
27- pub struct WindowConfig {
28- /// The window width.
29- #[ serde( default = "default_width" ) ]
30- pub width : i32 ,
31- /// The window height.
32- #[ serde( default = "default_height" ) ]
33- pub height : i32 ,
34- /// Whether the window is resizable or not.
35- #[ serde( default = "default_resizable" ) ]
36- pub resizable : bool ,
37- /// The window title.
38- #[ serde( default = "default_title" ) ]
39- pub title : String ,
40- /// Whether the window starts as fullscreen or not.
41- #[ serde( default ) ]
42- pub fullscreen : bool ,
43- }
44-
45- fn default_width ( ) -> i32 {
46- 800
47- }
48-
49- fn default_height ( ) -> i32 {
50- 600
51- }
52-
53- fn default_resizable ( ) -> bool {
54- true
55- }
56-
57- fn default_title ( ) -> String {
58- "Tauri App" . to_string ( )
59- }
60-
61- fn default_window ( ) -> WindowConfig {
62- WindowConfig {
63- width : default_width ( ) ,
64- height : default_height ( ) ,
65- resizable : default_resizable ( ) ,
66- title : default_title ( ) ,
67- fullscreen : false ,
68- }
69- }
70-
7124/// The embedded server port.
7225#[ derive( PartialEq , Clone , Debug , Deserialize , Serialize ) ]
7326pub enum Port {
@@ -312,9 +265,6 @@ fn default_bundle() -> BundleConfig {
312265#[ derive( PartialEq , Clone , Deserialize , Serialize , Debug ) ]
313266#[ serde( tag = "tauri" , rename_all = "camelCase" ) ]
314267pub struct TauriConfig {
315- /// The window configuration.
316- #[ serde( default = "default_window" ) ]
317- pub window : WindowConfig ,
318268 /// The embeddedServer configuration.
319269 #[ serde( default = "default_embedded_server" ) ]
320270 pub embedded_server : EmbeddedServerConfig ,
@@ -370,7 +320,6 @@ pub struct Config {
370320
371321fn default_tauri ( ) -> TauriConfig {
372322 TauriConfig {
373- window : default_window ( ) ,
374323 embedded_server : default_embedded_server ( ) ,
375324 cli : None ,
376325 bundle : default_bundle ( ) ,
0 commit comments