focus on your browsing
browser web-browser

add maximize schema for saving maximize status

woof.monster 1b88a690 7603da4e

verified
+10 -2
+8
OuchBrowser/OuchBrowser.gschema.xml
··· 37 37 This value is the zoom level of the browser. 38 38 </description> 39 39 </key> 40 + 41 + <key type="b" name="maximized"> 42 + <default>true</default> 43 + <summary>Maximized?</summary> 44 + <description> 45 + This value is whether the window is maximized or not. 46 + </description> 47 + </key> 40 48 </schema> 41 49 </schemalist>
+1 -1
OuchBrowser/UI.cs
··· 55 55 56 56 AddBreakpoint(SetupBreakpoint()); 57 57 58 - Maximized = true; 58 + Maximized = settings.GetBoolean("maximized"); 59 59 DefaultWidth = 1000; 60 60 DefaultHeight = 600; 61 61 WidthRequest = 350;
+1 -1
OuchBrowser/Window.cs
··· 398 398 window.toast_overlay!.DismissAll(); 399 399 window.toast_overlay!.AddToast(toast); 400 400 break; 401 - case 1.1: // 125% 401 + case 1.1: // 110% 402 402 webview.SetZoomLevel(1); // 400% 403 403 toast.SetTitle("100%"); 404 404 toast.SetTimeout(1);