Skip to content

Commit

Permalink
Add Changelog section in About page
Browse files Browse the repository at this point in the history
Add Changelog section in About page
  • Loading branch information
0x7c13 committed Aug 10, 2019
1 parent b70f49b commit d2d6182
Show file tree
Hide file tree
Showing 17 changed files with 76 additions and 3 deletions.
8 changes: 7 additions & 1 deletion src/Notepads/App.xaml.cs
Expand Up @@ -116,7 +116,7 @@ private async System.Threading.Tasks.Task ActivateAsync(IActivatedEventArgs e)
"UseWindowsAccentColor", ThemeSettingsService.UseWindowsAccentColor.ToString()
},
{
"AppBackgroundTintOpacity", $"{ThemeSettingsService.AppBackgroundPanelTintOpacity:0.0}"
"AppBackgroundTintOpacity", $"{(int)(ThemeSettingsService.AppBackgroundPanelTintOpacity * 100.0)}"
},
{
"ShowStatusBar", EditorSettingsService.ShowStatusBar.ToString()
Expand All @@ -133,6 +133,12 @@ private async System.Threading.Tasks.Task ActivateAsync(IActivatedEventArgs e)
{
"EditorDefaultDecoding", EncodingUtility.GetEncodingBodyName(EditorSettingsService.EditorDefaultDecoding)
},
{
"EditorFontFamily", EditorSettingsService.EditorFontFamily
},
{
"EditorFontSize", EditorSettingsService.EditorFontSize.ToString()
},
});

await ActivationService.ActivateAsync(rootFrame, e);
Expand Down
11 changes: 11 additions & 0 deletions src/Notepads/Controls/Settings/AboutPage.xaml
Expand Up @@ -77,6 +77,17 @@
</RichTextBlock>
<Button Content="Feedback" Margin="0,8,0,0" Visibility="Collapsed" />

<TextBlock
x:Uid="/Settings/AboutPage_ChangelogUrl_Title"
Style="{StaticResource TitleTextBlockStyle}"
Margin="0,35,0,0"
FontWeight="Normal"/>
<RichTextBlock IsTextSelectionEnabled="False" MaxWidth="600" Margin="0,10,0,0" >
<Paragraph Margin="0,10,0,10">
<Hyperlink NavigateUri="https://github.com/JasonStein/Notepads/releases">Notepads Releases</Hyperlink>
</Paragraph>
</RichTextBlock>

<TextBlock
x:Uid="/Settings/AboutPage_DependenciesAndReferences_Title"
Style="{StaticResource TitleTextBlockStyle}"
Expand Down
2 changes: 1 addition & 1 deletion src/Notepads/Controls/TextEditor/TextEditor.xaml.cs
Expand Up @@ -111,7 +111,7 @@ private set

private CancellationTokenSource _fileStatusCheckerCancellationTokenSource;

private int _fileStatusCheckerPollingRateInSec = 5;
private readonly int _fileStatusCheckerPollingRateInSec = 6;

private readonly object _fileStatusCheckLocker = new object();

Expand Down
4 changes: 4 additions & 0 deletions src/Notepads/Strings/cs-CZ/Settings.resw
Expand Up @@ -289,4 +289,8 @@
<value>Text a Editor</value>
<comment>TextAndEditorPage Title display text.</comment>
</data>
<data name="AboutPage_ChangelogUrl_Title.Text" xml:space="preserve">
<value>Protokol změn</value>
<comment>AboutPage Changelog Title display text.</comment>
</data>
</root>
4 changes: 4 additions & 0 deletions src/Notepads/Strings/de-CH/Settings.resw
Expand Up @@ -289,4 +289,8 @@
<value>Text &amp; Editor</value>
<comment>TextAndEditorPage Title display text.</comment>
</data>
<data name="AboutPage_ChangelogUrl_Title.Text" xml:space="preserve">
<value>Changelog</value>
<comment>AboutPage Changelog Title display text.</comment>
</data>
</root>
4 changes: 4 additions & 0 deletions src/Notepads/Strings/de-DE/Settings.resw
Expand Up @@ -289,4 +289,8 @@
<value>Text &amp; Editor</value>
<comment>TextAndEditorPage Title display text.</comment>
</data>
<data name="AboutPage_ChangelogUrl_Title.Text" xml:space="preserve">
<value>Änderungsprotokoll</value>
<comment>AboutPage Changelog Title display text.</comment>
</data>
</root>
4 changes: 4 additions & 0 deletions src/Notepads/Strings/en-US/Settings.resw
Expand Up @@ -289,4 +289,8 @@
<value>Text &amp; Editor</value>
<comment>TextAndEditorPage Title display text.</comment>
</data>
<data name="AboutPage_ChangelogUrl_Title.Text" xml:space="preserve">
<value>Changelog</value>
<comment>AboutPage Changelog Title display text.</comment>
</data>
</root>
6 changes: 5 additions & 1 deletion src/Notepads/Strings/es-ES/Settings.resw
Expand Up @@ -289,4 +289,8 @@
<value>Texto y Editor</value>
<comment>TextAndEditorPage Title display text.</comment>
</data>
</root>
<data name="AboutPage_ChangelogUrl_Title.Text" xml:space="preserve">
<value>Registro de cambios</value>
<comment>AboutPage Changelog Title display text.</comment>
</data>
</root>
4 changes: 4 additions & 0 deletions src/Notepads/Strings/fi-FI/Settings.resw
Expand Up @@ -289,4 +289,8 @@
<value>Text &amp; Editor</value>
<comment>TextAndEditorPage Title display text.</comment>
</data>
<data name="AboutPage_ChangelogUrl_Title.Text" xml:space="preserve">
<value>Muutosloki</value>
<comment>AboutPage Changelog Title display text.</comment>
</data>
</root>
4 changes: 4 additions & 0 deletions src/Notepads/Strings/fr-FR/Settings.resw
Expand Up @@ -289,4 +289,8 @@
<value>Text &amp; Editor</value>
<comment>TextAndEditorPage Title display text.</comment>
</data>
<data name="AboutPage_ChangelogUrl_Title.Text" xml:space="preserve">
<value>Journal des modifications</value>
<comment>AboutPage Changelog Title display text.</comment>
</data>
</root>
4 changes: 4 additions & 0 deletions src/Notepads/Strings/hu-HU/Settings.resw
Expand Up @@ -289,4 +289,8 @@
<value>Szöveg &amp; Szerkesztő</value>
<comment>TextAndEditorPage Title display text.</comment>
</data>
<data name="AboutPage_ChangelogUrl_Title.Text" xml:space="preserve">
<value>Változtatás</value>
<comment>AboutPage Changelog Title display text.</comment>
</data>
</root>
4 changes: 4 additions & 0 deletions src/Notepads/Strings/it-IT/Settings.resw
Expand Up @@ -289,4 +289,8 @@
<value>Testi &amp; Editor</value>
<comment>TextAndEditorPage Title display text.</comment>
</data>
<data name="AboutPage_ChangelogUrl_Title.Text" xml:space="preserve">
<value>Registro modifiche</value>
<comment>AboutPage Changelog Title display text.</comment>
</data>
</root>
4 changes: 4 additions & 0 deletions src/Notepads/Strings/ja-JP/Settings.resw
Expand Up @@ -289,4 +289,8 @@
<value>テキストとエディター</value>
<comment>TextAndEditorPage Title display text.</comment>
</data>
<data name="AboutPage_ChangelogUrl_Title.Text" xml:space="preserve">
<value>変更ログ</value>
<comment>AboutPage Changelog Title display text.</comment>
</data>
</root>
4 changes: 4 additions & 0 deletions src/Notepads/Strings/ru-RU/Settings.resw
Expand Up @@ -289,4 +289,8 @@
<value>Text &amp; Editor</value>
<comment>TextAndEditorPage Title display text.</comment>
</data>
<data name="AboutPage_ChangelogUrl_Title.Text" xml:space="preserve">
<value>Журнал изменений</value>
<comment>AboutPage Changelog Title display text.</comment>
</data>
</root>
4 changes: 4 additions & 0 deletions src/Notepads/Strings/tr-TR/Settings.resw
Expand Up @@ -289,4 +289,8 @@
<value>Metin ve Editor</value>
<comment>TextAndEditorPage Title display text.</comment>
</data>
<data name="AboutPage_ChangelogUrl_Title.Text" xml:space="preserve">
<value>Değişiklik günlüğü</value>
<comment>AboutPage Changelog Title display text.</comment>
</data>
</root>
4 changes: 4 additions & 0 deletions src/Notepads/Strings/uk-UA/Settings.resw
Expand Up @@ -289,4 +289,8 @@
<value>Текст і редактор</value>
<comment>TextAndEditorPage Title display text.</comment>
</data>
<data name="AboutPage_ChangelogUrl_Title.Text" xml:space="preserve">
<value>Журнал змін</value>
<comment>AboutPage Changelog Title display text.</comment>
</data>
</root>
4 changes: 4 additions & 0 deletions src/Notepads/Strings/zh-CN/Settings.resw
Expand Up @@ -289,4 +289,8 @@
<value>文本与编辑器</value>
<comment>TextAndEditorPage Title display text.</comment>
</data>
<data name="AboutPage_ChangelogUrl_Title.Text" xml:space="preserve">
<value>更新日志</value>
<comment>AboutPage Changelog Title display text.</comment>
</data>
</root>

0 comments on commit d2d6182

Please sign in to comment.