Skip to content

Commit

Permalink
Refactor Tauri configuration and update tooltip class usage in CSS
Browse files Browse the repository at this point in the history
  • Loading branch information
st4s1k committed Feb 26, 2025
1 parent 7e8dbab commit 6cd80ae
Show file tree
Hide file tree
Showing 6 changed files with 27 additions and 105 deletions.
47 changes: 9 additions & 38 deletions gui/src-tauri/Tauri.toml
Original file line number Diff line number Diff line change
@@ -1,55 +1,26 @@
[build]
beforeDevCommand = "npm run start"
beforeBuildCommand = "npm run build"
devPath = "http://localhost:1420"
distDir = "../dist/gui/browser"

[package]
productName = "scenario-rs"
product-name = "scenario-rs"
version = "0.1.0"
identifier = "com.st4s1k.scenario-rs.app"

[tauri.allowlist]
all = false

[tauri.allowlist.shell]
all = false
open = true

[tauri.allowlist.dialog]
all = true
ask = true
confirm = true
message = true
open = true
save = true

[tauri.allowlist.window]
all = false
close = true
hide = true
show = true
maximize = true
minimize = true
unmaximize = true
unminimize = true
startDragging = true
[build]
before-dev-command = "npm run start"
before-build-command = "npm run build"
dev-url = "http://localhost:1420"
frontend-dist = "../dist/gui/browser"

[[tauri.windows]]
[[app.windows]]
decorations = false
title = "scenario-rs"
width = 800
height = 600

[tauri.bundle]
[bundle]
active = true
targets = "all"
identifier = "com.st4s1k.scenario-rs.app"
icon = [
"icons/32x32.png",
"icons/128x128.png",
"icons/128x128@2x.png",
"icons/icon.icns",
"icons/icon.ico"
]

custom-protocol = ["tauri/custom-protocol"]
16 changes: 16 additions & 0 deletions gui/src-tauri/capabilities/desktop-capability.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
schema = "../gen/schemas/desktop-schema.json"

identifier = "desktop-capability"
windows = ["main"]
platforms = ["linux", "macOS", "windows"]

permissions = [
"core:default",
"core:window:allow-toggle-maximize",
"core:window:allow-minimize",
"core:window:allow-close",
"core:window:allow-start-dragging",
"dialog:default",
"shell:default",
"shell:allow-open",
]
27 changes: 0 additions & 27 deletions gui/src-tauri/capabilities/migrated.json

This file was deleted.

38 changes: 0 additions & 38 deletions gui/src-tauri/tauri.conf.json

This file was deleted.

2 changes: 1 addition & 1 deletion gui/src/app/app.component.scss
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ button.log-button {
color: styles.$primary-color-lighter-40;
}

.tooltip {
.tooltip-arrow-left {
transform: translate(22px, -20px);
}
}
Expand Down
2 changes: 1 addition & 1 deletion gui/src/app/titlebar/titlebar.component.scss
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
height: 20px;
}

.tooltip {
.tooltip-arrow-top {
transform: translate(-5px, styles.$titlebar-height + 5px);
}
}
Expand Down

0 comments on commit 6cd80ae

Please sign in to comment.