Skip to content

Commit

Permalink
fix(core): Add background color permissions (#11850)
Browse files Browse the repository at this point in the history
fixes #11848
  • Loading branch information
FabianLars authored Dec 2, 2024
1 parent 0e2f0b2 commit b50a1ac
Show file tree
Hide file tree
Showing 4 changed files with 59 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changes/core-background-color-permissions.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
tauri: "patch:bug"
---

Add webview and window color setters to autogenerated permissions.
2 changes: 2 additions & 0 deletions crates/tauri/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ const PLUGINS: &[(&str, &[(&str, bool)])] = &[
("set_title_bar_style", false),
("set_theme", false),
("toggle_maximize", false),
("set_background_color", false),
// internal
("internal_toggle_maximize", true),
],
Expand All @@ -136,6 +137,7 @@ const PLUGINS: &[(&str, &[(&str, bool)])] = &[
("print", false),
("reparent", false),
("clear_all_browsing_data", false),
("set_webview_background_color", false),
// internal
("internal_toggle_devtools", true),
],
Expand Down
26 changes: 26 additions & 0 deletions crates/tauri/permissions/webview/autogenerated/reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,32 @@ Denies the reparent command without any pre-configured scope.
<tr>
<td>

`core:webview:allow-set-webview-background-color`

</td>
<td>

Enables the set_webview_background_color command without any pre-configured scope.

</td>
</tr>

<tr>
<td>

`core:webview:deny-set-webview-background-color`

</td>
<td>

Denies the set_webview_background_color command without any pre-configured scope.

</td>
</tr>

<tr>
<td>

`core:webview:allow-set-webview-focus`

</td>
Expand Down
26 changes: 26 additions & 0 deletions crates/tauri/permissions/window/autogenerated/reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -898,6 +898,32 @@ Denies the set_always_on_top command without any pre-configured scope.
<tr>
<td>

`core:window:allow-set-background-color`

</td>
<td>

Enables the set_background_color command without any pre-configured scope.

</td>
</tr>

<tr>
<td>

`core:window:deny-set-background-color`

</td>
<td>

Denies the set_background_color command without any pre-configured scope.

</td>
</tr>

<tr>
<td>

`core:window:allow-set-badge-count`

</td>
Expand Down

0 comments on commit b50a1ac

Please sign in to comment.