Skip to content

Commit 0339dd2

Browse files
devohmycodeoz-agent
andcommitted
feat: localisation EN/FR, refonte cartes, éditeur Notepad avec onglets/split Markdown, miniatures images, navigation améliorée
- Système de localisation (Lang.cs) avec basculement EN/FR dans les paramètres - Remplacement de tous les textes hardcodés par Lang.T() dans toutes les fenêtres - Synchronisation Firebase des paramètres - Refonte des cartes de notes : fond neutre, barre de couleur 3px, mise en page titre/date - Éditeur de texte (NotepadWindow) : onglets fixes, focus auto, split view Markdown - Extraction et affichage de miniatures d'images dans les aperçus de notes - Bouton Accès rapide : flèche retour sur les vues Favoris/Tags - Services OCR et capture d'écran (OcrService, ScreenCaptureService, OcrCaptureOverlay) Co-Authored-By: Oz <oz-agent@warp.dev>
1 parent 6a35a08 commit 0339dd2

22 files changed

Lines changed: 2069 additions & 481 deletions

‎AcrylicSettingsWindow.xaml‎

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,14 @@
1818
PointerMoved="DragBar_PointerMoved"
1919
PointerReleased="DragBar_PointerReleased"/>
2020

21-
<TextBlock Text="Acrylic personnalis&#233;" FontSize="12"
21+
<TextBlock x:Name="AcrylicTitle" FontSize="12"
2222
VerticalAlignment="Center" Margin="4,0,0,0"
2323
Foreground="{ThemeResource TextFillColorSecondaryBrush}"
2424
IsHitTestVisible="False"/>
2525

26-
<Button HorizontalAlignment="Right" VerticalAlignment="Center"
26+
<Button x:Name="AcrylicCloseButton" HorizontalAlignment="Right" VerticalAlignment="Center"
2727
Background="Transparent" BorderThickness="0"
28-
Padding="8,6" Click="Close_Click"
29-
ToolTipService.ToolTip="Fermer">
28+
Padding="8,6" Click="Close_Click">
3029
<FontIcon Glyph="&#xE711;" FontSize="11"/>
3130
</Button>
3231
</Grid>
@@ -38,7 +37,7 @@
3837
<!-- Tint Opacity -->
3938
<StackPanel Spacing="2">
4039
<Grid>
41-
<TextBlock Text="Opacit&#233; de teinte" FontSize="12"
40+
<TextBlock x:Name="TintOpacityLabel" FontSize="12"
4241
Foreground="{ThemeResource TextFillColorSecondaryBrush}"/>
4342
<TextBlock x:Name="TintOpacityValue" HorizontalAlignment="Right"
4443
FontSize="12" Foreground="{ThemeResource TextFillColorTertiaryBrush}"/>
@@ -51,7 +50,7 @@
5150
<!-- Luminosity Opacity -->
5251
<StackPanel Spacing="2">
5352
<Grid>
54-
<TextBlock Text="Luminosit&#233;" FontSize="12"
53+
<TextBlock x:Name="LuminosityLabel" FontSize="12"
5554
Foreground="{ThemeResource TextFillColorSecondaryBrush}"/>
5655
<TextBlock x:Name="LuminosityValue" HorizontalAlignment="Right"
5756
FontSize="12" Foreground="{ThemeResource TextFillColorTertiaryBrush}"/>
@@ -63,7 +62,7 @@
6362

6463
<!-- Tint Color -->
6564
<StackPanel Spacing="4">
66-
<TextBlock Text="Couleur de teinte" FontSize="12"
65+
<TextBlock x:Name="TintColorLabel" FontSize="12"
6766
Foreground="{ThemeResource TextFillColorSecondaryBrush}"/>
6867
<Grid ColumnSpacing="8">
6968
<Grid.ColumnDefinitions>
@@ -82,7 +81,7 @@
8281

8382
<!-- Fallback Color -->
8483
<StackPanel Spacing="4">
85-
<TextBlock Text="Couleur de repli" FontSize="12"
84+
<TextBlock x:Name="FallbackColorLabel" FontSize="12"
8685
Foreground="{ThemeResource TextFillColorSecondaryBrush}"/>
8786
<Grid ColumnSpacing="8">
8887
<Grid.ColumnDefinitions>
@@ -101,7 +100,7 @@
101100

102101
<!-- Kind -->
103102
<StackPanel Spacing="4">
104-
<TextBlock Text="Style" FontSize="12"
103+
<TextBlock x:Name="StyleLabel" FontSize="12"
105104
Foreground="{ThemeResource TextFillColorSecondaryBrush}"/>
106105
<Grid ColumnSpacing="6">
107106
<Grid.ColumnDefinitions>

‎AcrylicSettingsWindow.xaml.cs‎

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ public AcrylicSettingsWindow(BackdropSettings settings, Action<BackdropSettings>
4646
AppSettings.ApplyToWindow(this, settings, ref _acrylicController, ref _configSource);
4747

4848
LoadSettings(settings);
49+
ApplyAcrylicLocalization();
4950

5051
this.Closed += (_, _) =>
5152
{
@@ -54,6 +55,17 @@ public AcrylicSettingsWindow(BackdropSettings settings, Action<BackdropSettings>
5455
};
5556
}
5657

58+
private void ApplyAcrylicLocalization()
59+
{
60+
AcrylicTitle.Text = Lang.T("acrylic_custom_title");
61+
ToolTipService.SetToolTip(AcrylicCloseButton, Lang.T("tip_close"));
62+
TintOpacityLabel.Text = Lang.T("tint_opacity");
63+
LuminosityLabel.Text = Lang.T("luminosity");
64+
TintColorLabel.Text = Lang.T("tint_color");
65+
FallbackColorLabel.Text = Lang.T("fallback_color");
66+
StyleLabel.Text = Lang.T("style");
67+
}
68+
5769
public void SetPosition(int x, int y)
5870
{
5971
AppWindow.Move(new Windows.Graphics.PointInt32(x, y));

0 commit comments

Comments
 (0)