Skip to content

Commit

Permalink
fixed mac title bar
Browse files Browse the repository at this point in the history
  • Loading branch information
thesuzerain committed Aug 1, 2023
1 parent 7ae6515 commit 0395126
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 3 deletions.
4 changes: 1 addition & 3 deletions theseus_gui/src-tauri/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ fn main() {
app.emit_all("single-instance", Payload { args: argv, cwd })
.unwrap();
}))
.plugin(tauri_plugin_window_state::Builder::default().build())
// .plugin(tauri_plugin_window_state::Builder::default().build())
.setup(|app| {
// Register deep link handler, allowing reading of modrinth:// links
if let Err(e) = tauri_plugin_deep_link::register(
Expand All @@ -97,8 +97,6 @@ fn main() {
}
#[cfg(target_os = "macos")]
{
win.set_decorations(true).unwrap();

use macos::window_ext::WindowExt;
win.set_transparent_titlebar(true);
win.position_traffic_lights(9.0, 16.0);
Expand Down
19 changes: 19 additions & 0 deletions theseus_gui/src-tauri/tauri.macos.conf.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"tauri": {
"windows": [
{
"titleBarStyle": "Overlay",
"hiddenTitle": true,
"fullscreen": false,
"height": 650,
"resizable": true,
"title": "Modrinth App",
"width": 1280,
"minHeight": 630,
"minWidth": 1100,
"visible": false,
"decorations": true
}
]
}
}

0 comments on commit 0395126

Please sign in to comment.