build very basic ui

This commit is contained in:
2025-02-23 22:16:41 +01:00
parent 8cc7e4002f
commit 993fbb30eb
6 changed files with 81 additions and 59 deletions

View File

@@ -117,8 +117,8 @@ pub fn run() {
let win_builder =
WebviewWindowBuilder::new(app, "main", WebviewUrl::default())
.hidden_title(true)
.inner_size(480.0, 320.0);
.inner_size(480.0, 360.0)
.resizable(false);
// set transparent title bar only when building for macOS
#[cfg(target_os = "macos")]
let win_builder = win_builder.title_bar_style(TitleBarStyle::Transparent);
@@ -135,9 +135,9 @@ pub fn run() {
unsafe {
let bg_color = NSColor::colorWithRed_green_blue_alpha_(
nil,
250.0 / 255.0,
250.0 / 255.0,
250.5 / 255.0,
245.0 / 255.0,
245.0 / 255.0,
245.0 / 255.0,
1.0,
);
ns_window.setBackgroundColor_(bg_color);