7 Commits
22 changed files with 26 additions and 14 deletions

No files matched your search

+4
View File
@@ -21,3 +21,7 @@ codegen-units = 1
lto = true
opt-level = "z"
strip = true
[features]
default = ["custom-protocol"]
custom-protocol = ["tauri/custom-protocol"]
Binary file not shown.

Before

Width:  |  Height:  |  Size: 70 B

After

Width:  |  Height:  |  Size: 21 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 70 B

After

Width:  |  Height:  |  Size: 81 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 70 B

After

Width:  |  Height:  |  Size: 2.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 26 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 29 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 99 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 119 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 70 B

After

Width:  |  Height:  |  Size: 2.0 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 92 B

After

Width:  |  Height:  |  Size: 96 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 332 KiB

+4 -4
View File
@@ -28,7 +28,7 @@ fn set_autostart(enabled: bool) -> Result<(), String> {
// Permet d'activer ou de désactiver le lancement automatique au démarrage de Windows.
// On écrit directement dans le registre Windows (HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run)
// ce qui évite d'avoir à gérer un installateur complexe ou des plugins externes lourds.
let hkcu = RegKey::predefined(HKEY_CURRENT_USER);
let hkcu = RegKey::predef(HKEY_CURRENT_USER);
let run_key = hkcu
.open_subkey_with_flags(
r"Software\Microsoft\Windows\CurrentVersion\Run",
@@ -55,7 +55,7 @@ fn set_autostart(enabled: bool) -> Result<(), String> {
#[tauri::command]
fn get_autostart() -> Result<bool, String> {
// Lit le registre Windows pour vérifier si l'application est configurée pour démarrer automatiquement.
let hkcu = RegKey::predefined(HKEY_CURRENT_USER);
let hkcu = RegKey::predef(HKEY_CURRENT_USER);
let run_key = hkcu
.open_subkey_with_flags(
r"Software\Microsoft\Windows\CurrentVersion\Run",
@@ -89,7 +89,7 @@ fn main() {
window.hide().unwrap();
} else {
window.show().unwrap();
window.focus().unwrap();
window.set_focus().unwrap();
}
}
SystemTrayEvent::MenuItemClick { id, .. } => match id.as_str() {
@@ -102,7 +102,7 @@ fn main() {
window.hide().unwrap();
} else {
window.show().unwrap();
window.focus().unwrap();
window.set_focus().unwrap();
}
}
_ => {}
+7 -1
View File
@@ -3,7 +3,8 @@
"distDir": "../src",
"devPath": "../src",
"beforeDevCommand": "",
"beforeBuildCommand": ""
"beforeBuildCommand": "",
"withGlobalTauri": true
},
"package": {
"productName": "TodoFlow",
@@ -48,6 +49,11 @@
"security": {
"csp": null
},
"systemTray": {
"iconPath": "icons/icon.ico",
"iconAsTemplate": false,
"menuOnLeftClick": false
},
"windows": [
{
"fullscreen": false,
+1 -1
View File
@@ -70,7 +70,7 @@ document.addEventListener("DOMContentLoaded", async () => {
// Si exécuté hors de Tauri (ex: navigateur classique), masquer les boutons de fenêtre
btnMinimize.style.display = "none";
btnClose.style.display = "none";
document.querySelector(".setting-toggle").style.display = "none"; // Cacher l'autostart
inputAutostart.closest(".setting-toggle").style.display = "none"; // Cacher l'autostart
}
// Événement d'ajout de tâche
+2 -2
View File
@@ -13,8 +13,8 @@
<body>
<div class="todo-widget">
<!-- Barre supérieure personnalisée avec zone de déplacement pour Tauri -->
<header class="widget-header" data-tauri-drag-region>
<div class="header-left" data-tauri-drag-region>
<header class="widget-header">
<div class="header-drag-zone" data-tauri-drag-region>
<span class="status-indicator disconnected" id="connection-status" title="Déconnecté"></span>
<h1 class="widget-title" data-tauri-drag-region>TodoFlow</h1>
</div>
+8 -6
View File
@@ -63,17 +63,19 @@ body {
display: flex;
justify-content: space-between;
align-items: center;
cursor: grab; /* Indique qu'on peut faire glisser le widget */
}
.widget-header:active {
cursor: grabbing;
}
.header-left {
.header-drag-zone {
display: flex;
align-items: center;
gap: 8px;
flex: 1;
height: 100%;
cursor: grab;
}
.header-drag-zone:active {
cursor: grabbing;
}
/* Indicateur d'état connecté à l'API */