build very basic ui
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user