feat(main): 将 camera_frame 和 color_frame 的对齐方式从 LeftTop 改为 Center

This commit is contained in:
conglinyizhi 2024-12-07 13:46:06 +08:00
parent 031c4bb7c8
commit 8a15ee2c7c
1 changed files with 2 additions and 2 deletions

View File

@ -23,12 +23,12 @@ fn main() {
let app = App::default(); let app = App::default();
let mut camera_window = Window::new(0, 0, 400, 400, "Camera Video Output Window"); let mut camera_window = Window::new(0, 0, 400, 400, "Camera Video Output Window");
let mut camera_frame = Frame::default_fill(); let mut camera_frame = Frame::default_fill();
camera_frame.set_align(Align::LeftTop); camera_frame.set_align(Align::Center);
camera_window.end(); camera_window.end();
camera_window.show(); camera_window.show();
let mut color_window = Window::new(0, 450, 400, 400, "Video Output Window"); let mut color_window = Window::new(0, 450, 400, 400, "Video Output Window");
let mut color_frame = Frame::default_fill(); let mut color_frame = Frame::default_fill();
color_frame.set_align(Align::LeftTop); color_frame.set_align(Align::Center);
color_window.end(); color_window.end();
color_window.show(); color_window.show();
// app.run().unwrap(); // app.run().unwrap();