-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
24 changed files
with
3,941 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# tauri-tray-icon-animation | ||
|
||
minimal example of tauri tray icon animation. | ||
|
||
## run | ||
|
||
```bash | ||
cd src-tauri | ||
cargo tauri dev | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<meta charset="utf-8"> | ||
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | ||
<title>Home Page</title> | ||
</head> | ||
<body> | ||
<center> | ||
<select id="locale_select"> | ||
<option value="en" selected>en</option> | ||
<option value="zh">zh</option> | ||
<option value="zhtw">zhtw</option> | ||
<option value="ja">ja</option> | ||
</select> | ||
<button id="update_locale">Update locale</button> | ||
</center> | ||
<script type="text/javascript"> | ||
window.onload = function() { | ||
document.getElementById("update_locale") | ||
.addEventListener("click", ()=>{ | ||
const locale = document.getElementById("locale_select").value | ||
window.__TAURI__.tauri.invoke("update_locale", {locale}) | ||
}); | ||
}; | ||
|
||
</script> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# Generated by Cargo | ||
# will have compiled files and executables | ||
/target/ | ||
WixTools |
Oops, something went wrong.