@@ -21,53 +21,6 @@ fn config_handle() -> &'static ConfigHandle {
21
21
& CONFING_HANDLE
22
22
}
23
23
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
-
71
24
/// The embedded server port.
72
25
#[ derive( PartialEq , Clone , Debug , Deserialize , Serialize ) ]
73
26
pub enum Port {
@@ -312,9 +265,6 @@ fn default_bundle() -> BundleConfig {
312
265
#[ derive( PartialEq , Clone , Deserialize , Serialize , Debug ) ]
313
266
#[ serde( tag = "tauri" , rename_all = "camelCase" ) ]
314
267
pub struct TauriConfig {
315
- /// The window configuration.
316
- #[ serde( default = "default_window" ) ]
317
- pub window : WindowConfig ,
318
268
/// The embeddedServer configuration.
319
269
#[ serde( default = "default_embedded_server" ) ]
320
270
pub embedded_server : EmbeddedServerConfig ,
@@ -370,7 +320,6 @@ pub struct Config {
370
320
371
321
fn default_tauri ( ) -> TauriConfig {
372
322
TauriConfig {
373
- window : default_window ( ) ,
374
323
embedded_server : default_embedded_server ( ) ,
375
324
cli : None ,
376
325
bundle : default_bundle ( ) ,
0 commit comments