mirror of
https://github.com/Yubico/yubioath-flutter.git
synced 2024-11-22 08:22:16 +03:00
Change default window size
This commit is contained in:
parent
059fdbf870
commit
5ff3a15b12
@ -18,6 +18,7 @@ import 'dart:ui';
|
|||||||
|
|
||||||
class WindowDefaults {
|
class WindowDefaults {
|
||||||
static const minWidth = 300.0;
|
static const minWidth = 300.0;
|
||||||
static const minSize = Size(minWidth, 0.0);
|
static const minHeight = 375.0;
|
||||||
static const bounds = Rect.fromLTWH(10.0, 10.0, 400.0, 720.0);
|
static const minSize = Size(minWidth, minHeight);
|
||||||
|
static const bounds = Rect.fromLTWH(10.0, 10.0, 1100.0, 700.0);
|
||||||
}
|
}
|
||||||
|
@ -47,9 +47,9 @@ static void my_application_activate(GApplication* application) {
|
|||||||
gtk_window_set_title(window, "Yubico Authenticator");
|
gtk_window_set_title(window, "Yubico Authenticator");
|
||||||
}
|
}
|
||||||
|
|
||||||
gtk_window_set_default_size(window, 320, 720);
|
gtk_window_set_default_size(window, 1100, 700);
|
||||||
// Sets the minimum window size, should match desktop/window_manager_helper/defaults.dart
|
// Sets the minimum window size, should match desktop/window_manager_helper/defaults.dart
|
||||||
gtk_widget_set_size_request(GTK_WIDGET(window), 300, 0);
|
gtk_widget_set_size_request(GTK_WIDGET(window), 300, 375);
|
||||||
gtk_widget_realize(GTK_WIDGET(window));
|
gtk_widget_realize(GTK_WIDGET(window));
|
||||||
|
|
||||||
g_autoptr(FlDartProject) project = fl_dart_project_new();
|
g_autoptr(FlDartProject) project = fl_dart_project_new();
|
||||||
|
@ -62,10 +62,10 @@
|
|||||||
</menu>
|
</menu>
|
||||||
<window title="APP_NAME" allowsToolTipsWhenApplicationIsInactive="NO" autorecalculatesKeyViewLoop="NO" releasedWhenClosed="NO" animationBehavior="default" id="QvC-M9-y7g" customClass="MainFlutterWindow" customModule="Runner" customModuleProvider="target">
|
<window title="APP_NAME" allowsToolTipsWhenApplicationIsInactive="NO" autorecalculatesKeyViewLoop="NO" releasedWhenClosed="NO" animationBehavior="default" id="QvC-M9-y7g" customClass="MainFlutterWindow" customModule="Runner" customModuleProvider="target">
|
||||||
<windowStyleMask key="styleMask" titled="YES" closable="YES" miniaturizable="YES" resizable="YES"/>
|
<windowStyleMask key="styleMask" titled="YES" closable="YES" miniaturizable="YES" resizable="YES"/>
|
||||||
<rect key="contentRect" x="335" y="390" width="800" height="600"/>
|
<rect key="contentRect" x="335" y="390" width="1100" height="700"/>
|
||||||
<rect key="screenRect" x="0.0" y="0.0" width="2560" height="1577"/>
|
<rect key="screenRect" x="0.0" y="0.0" width="2560" height="1577"/>
|
||||||
<view key="contentView" wantsLayer="YES" id="EiT-Mj-1SZ">
|
<view key="contentView" wantsLayer="YES" id="EiT-Mj-1SZ">
|
||||||
<rect key="frame" x="0.0" y="0.0" width="800" height="600"/>
|
<rect key="frame" x="0.0" y="0.0" width="1100" height="700"/>
|
||||||
<autoresizingMask key="autoresizingMask"/>
|
<autoresizingMask key="autoresizingMask"/>
|
||||||
</view>
|
</view>
|
||||||
</window>
|
</window>
|
||||||
|
@ -26,7 +26,7 @@ int APIENTRY wWinMain(_In_ HINSTANCE instance, _In_opt_ HINSTANCE prev,
|
|||||||
|
|
||||||
FlutterWindow window(project);
|
FlutterWindow window(project);
|
||||||
Win32Window::Point origin(10, 10);
|
Win32Window::Point origin(10, 10);
|
||||||
Win32Window::Size size(400, 720);
|
Win32Window::Size size(1100, 700);
|
||||||
if (!window.Create(L"Yubico Authenticator", origin, size)) {
|
if (!window.Create(L"Yubico Authenticator", origin, size)) {
|
||||||
return EXIT_FAILURE;
|
return EXIT_FAILURE;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user