Skip to content

Commit 766b9a0

Browse files
devohmycodeoz-agent
andcommitted
feat: refonte thème clair/sombre, archive, raccourcis, quitter, flyouts Raycast
- Réécriture ThemeHelper: ActualTheme au lieu de ThemeDictionaries walk - Fond des cartes de notes adaptatif clair/sombre (semi-transparent) - Texte des cartes via héritage XAML (plus de Foreground explicite) - ActionPanel: tous les brushes migrés vers Opacity + RequestedTheme - Rafraîchissement auto des cartes sur ActualThemeChanged - Archive: propriété IsArchived, vue Archive, archiver/désarchiver - Commandes slash: ToggleSwitch → CheckItem cohérent - Section Raccourcis dans paramètres (Afficher: Ctrl+Alt+N, Nouvelle note: Ctrl+N) - Quitter (rouge) dans Accès rapide - Snippets et TextExpansionService - AppSettings nettoyé (plus de ThemeHelper.CurrentTheme) Co-Authored-By: Oz <oz-agent@warp.dev>
1 parent 0339dd2 commit 766b9a0

12 files changed

Lines changed: 863 additions & 93 deletions

‎ActionPanel.cs‎

Lines changed: 250 additions & 66 deletions
Large diffs are not rendered by default.

‎HotkeyService.cs‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,8 @@ public record ShortcutEntry(string Name, string DisplayLabel, Modifiers Modifier
7575

7676
public static List<ShortcutEntry> GetDefaults() =>
7777
[
78-
new("show", "Afficher NotesUI", Modifiers.Ctrl, 0x4E), // Ctrl+N
79-
new("new_note", "Cr\u00e9er nouvelle note", Modifiers.Ctrl | Modifiers.Alt, 0x4E), // Ctrl+Alt+N
78+
new("show", Lang.T("shortcut_show"), Modifiers.Ctrl | Modifiers.Alt, 0x4E), // Ctrl+Alt+N
79+
new("new_note", Lang.T("shortcut_new_note"), Modifiers.Ctrl, 0x4E), // Ctrl+N
8080
];
8181

8282
public static List<ShortcutEntry> Load()

‎Lang.cs‎

Lines changed: 31 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,8 @@ public static class Lang
113113
["voice_model"] = "Voice model",
114114
["shortcuts_section"] = "Shortcuts",
115115
["shortcuts_label"] = "Shortcuts",
116+
["shortcut_show"] = "Show",
117+
["shortcut_new_note"] = "New note",
116118
["editor_section"] = "Editor",
117119
["slash_commands_toggle"] = "Slash commands",
118120
["enabled"] = "Enabled",
@@ -180,6 +182,15 @@ public static class Lang
180182
["char_count_one"] = "1 character",
181183
["char_count_many"] = "{0} characters",
182184

185+
// ── Snippet ───────────────────────────────────────────
186+
["snippet"] = "Snippet",
187+
["snippet_keyword"] = "Keyword",
188+
["snippet_keyword_placeholder"] = "e.g. addr, sig, hello",
189+
["snippet_prefix"] = "Prefix",
190+
["snippet_none"] = "None",
191+
["snippet_preview"] = "Type {0} then Space to expand",
192+
["snippet_saved"] = "Snippet saved",
193+
183194
// ── OCR ─────────────────────────────────────────────
184195
["ocr_select_zone"] = "Select a zone",
185196
["ocr_too_small"] = "Selection too small",
@@ -232,10 +243,14 @@ public static class Lang
232243

233244
// ── Views / Quick access ─────────────────────────────
234245
["favorites"] = "Favorites",
246+
["archive"] = "Archive",
247+
["unarchive"] = "Unarchive",
248+
["no_archived"] = "No archived notes",
235249
["no_favorites"] = "No favorites",
236250
["no_tags"] = "No tags",
237251
["no_notes_tag"] = "No notes with #{0}",
238252
["quick_access"] = "Quick access",
253+
["quit"] = "Quit",
239254
["rich_text"] = "Rich text",
240255
["connect"] = "Connect",
241256
["save_note"] = "Save note",
@@ -350,7 +365,9 @@ public static class Lang
350365
["voice_section"] = "Vocal",
351366
["voice_model"] = "Modèle vocal",
352367
["shortcuts_section"] = "Raccourcis",
353-
["shortcuts_label"] = "Shortcuts",
368+
["shortcuts_label"] = "Raccourcis",
369+
["shortcut_show"] = "Afficher",
370+
["shortcut_new_note"] = "Nouvelle note",
354371
["editor_section"] = "Éditeur",
355372
["slash_commands_toggle"] = "Commandes slash",
356373
["enabled"] = "Activé",
@@ -418,6 +435,15 @@ public static class Lang
418435
["char_count_one"] = "1 caractère",
419436
["char_count_many"] = "{0} caractères",
420437

438+
// ── Snippet ───────────────────────────────────────────
439+
["snippet"] = "Snippet",
440+
["snippet_keyword"] = "Mot clé",
441+
["snippet_keyword_placeholder"] = "ex: addr, sig, hello",
442+
["snippet_prefix"] = "Préfixe",
443+
["snippet_none"] = "Aucun",
444+
["snippet_preview"] = "Tapez {0} puis Espace pour insérer",
445+
["snippet_saved"] = "Snippet enregistré",
446+
421447
// ── OCR ─────────────────────────────────────────────
422448
["ocr_select_zone"] = "Sélectionnez une zone",
423449
["ocr_too_small"] = "Sélection trop petite",
@@ -470,10 +496,14 @@ public static class Lang
470496

471497
// ── Views / Quick access ─────────────────────────────
472498
["favorites"] = "Favoris",
499+
["archive"] = "Archive",
500+
["unarchive"] = "Désarchiver",
501+
["no_archived"] = "Aucune note archivée",
473502
["no_favorites"] = "Aucun favori",
474503
["no_tags"] = "Aucun tag",
475504
["no_notes_tag"] = "Aucune note avec #{0}",
476505
["quick_access"] = "Accès rapide",
506+
["quit"] = "Quitter",
477507
["rich_text"] = "Texte enrichi",
478508
["connect"] = "Connecter",
479509
["save_note"] = "Enregistrer la note",

‎MainWindow.xaml‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -88,11 +88,11 @@
8888
CornerRadius="4"
8989
Padding="8,6,30,6">
9090
<TextBox.Resources>
91-
<SolidColorBrush x:Key="TextControlBackground" Color="#08000000"/>
92-
<SolidColorBrush x:Key="TextControlBackgroundPointerOver" Color="#0F000000"/>
93-
<SolidColorBrush x:Key="TextControlBackgroundFocused" Color="#0F000000"/>
94-
<SolidColorBrush x:Key="TextControlBorderBrush" Color="#15000000"/>
95-
<SolidColorBrush x:Key="TextControlBorderBrushPointerOver" Color="#20000000"/>
91+
<StaticResource x:Key="TextControlBackground" ResourceKey="SubtleFillColorTransparentBrush"/>
92+
<StaticResource x:Key="TextControlBackgroundPointerOver" ResourceKey="SubtleFillColorSecondaryBrush"/>
93+
<StaticResource x:Key="TextControlBackgroundFocused" ResourceKey="SubtleFillColorSecondaryBrush"/>
94+
<StaticResource x:Key="TextControlBorderBrush" ResourceKey="SubtleFillColorTransparentBrush"/>
95+
<StaticResource x:Key="TextControlBorderBrushPointerOver" ResourceKey="ControlStrokeColorSecondaryBrush"/>
9696
</TextBox.Resources>
9797
</TextBox>
9898
<FontIcon Glyph="&#xE721;" FontSize="14"

0 commit comments

Comments
 (0)