modified layout (#2)

Reviewed-on: #2
Co-authored-by: Aleksandr Neychev <alexnejchev73@gmail.com>
This commit was merged in pull request #2.
This commit is contained in:
2026-08-12 14:25:05 +00:00
committed by alex
parent 55ac8e6556
commit 68b3d544d2
14 changed files with 376 additions and 415 deletions
-16
View File
@@ -87,20 +87,6 @@ public sealed partial class AppSettings : ObservableObject
[ObservableProperty]
private double _capsLockHoldMilliseconds = 300;
/// <summary>
/// Ask the repository about new versions on startup. A check can always be
/// started by hand — this setting turns off only the automatic one.
/// </summary>
[ObservableProperty]
private bool _checkForUpdates = true;
/// <summary>
/// When the application last asked about new versions successfully.
/// Stored so as not to go to the network on every startup.
/// </summary>
[ObservableProperty]
private DateTimeOffset? _lastUpdateCheck;
/// <summary>The fill of the popup. The opacity is set by <see cref="Opacity"/>.</summary>
[ObservableProperty]
private Color _backgroundColor = Color.FromArgb(0xFF, 0x20, 0x20, 0x20);
@@ -142,8 +128,6 @@ public sealed partial class AppSettings : ObservableObject
DurationMilliseconds = other.DurationMilliseconds;
UseCapsLockHotkey = other.UseCapsLockHotkey;
CapsLockHoldMilliseconds = other.CapsLockHoldMilliseconds;
CheckForUpdates = other.CheckForUpdates;
LastUpdateCheck = other.LastUpdateCheck;
BackgroundColor = other.BackgroundColor;
ForegroundColor = other.ForegroundColor;
}
+4 -7
View File
@@ -85,8 +85,8 @@
<data name="AppTheme_Dark" xml:space="preserve">
<value>Dark</value>
</data>
<data name="SectionPlacement" xml:space="preserve">
<value>Placement</value>
<data name="SectionPopup" xml:space="preserve">
<value>Layout popup</value>
</data>
<data name="PlacementModeLabel" xml:space="preserve">
<value>Mode</value>
@@ -151,9 +151,6 @@
<data name="ScreenMarginLabel" xml:space="preserve">
<value>Margin from screen edge</value>
</data>
<data name="SectionAppearance" xml:space="preserve">
<value>Appearance</value>
</data>
<data name="FontSizeLabel" xml:space="preserve">
<value>Font size</value>
</data>
@@ -214,8 +211,8 @@
<data name="CheckUpdatesButton" xml:space="preserve">
<value>Check for updates</value>
</data>
<data name="UpdateAutoCheck" xml:space="preserve">
<value>Check for updates</value>
<data name="UpdateNotChecked" xml:space="preserve">
<value>Updates have not been checked yet.</value>
</data>
<data name="UpdateChecking" xml:space="preserve">
<value>Checking for updates…</value>
+4 -7
View File
@@ -85,8 +85,8 @@
<data name="AppTheme_Dark" xml:space="preserve">
<value>Тёмная</value>
</data>
<data name="SectionPlacement" xml:space="preserve">
<value>Расположение</value>
<data name="SectionPopup" xml:space="preserve">
<value>Подсказка о раскладке</value>
</data>
<data name="PlacementModeLabel" xml:space="preserve">
<value>Режим</value>
@@ -151,9 +151,6 @@
<data name="ScreenMarginLabel" xml:space="preserve">
<value>Отступ от края экрана</value>
</data>
<data name="SectionAppearance" xml:space="preserve">
<value>Внешний вид</value>
</data>
<data name="FontSizeLabel" xml:space="preserve">
<value>Размер шрифта</value>
</data>
@@ -214,8 +211,8 @@
<data name="CheckUpdatesButton" xml:space="preserve">
<value>Проверить обновления</value>
</data>
<data name="UpdateAutoCheck" xml:space="preserve">
<value>Проверять обновления</value>
<data name="UpdateNotChecked" xml:space="preserve">
<value>Обновления ещё не проверялись.</value>
</data>
<data name="UpdateChecking" xml:space="preserve">
<value>Идёт проверка обновлений…</value>
@@ -21,9 +21,6 @@ public sealed class UpdateOptions
/// <summary>The project: <c>owner/repository</c>.</summary>
public string Project { get; init; } = "alrakis/cursor-lang";
/// <summary>How often the application checks the releases on its own.</summary>
public TimeSpan CheckInterval { get; init; } = TimeSpan.FromDays(1);
/// <summary>
/// An access token for a private repository.
/// </summary>