Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
using System.Windows.Forms;
using System.Xml;

using LiveSplit.Localization;
using LiveSplit.Model;
using LiveSplit.Model.Comparisons;
using LiveSplit.TimeFormatters;
Expand All @@ -12,6 +13,8 @@ namespace LiveSplit.UI.Components;

public partial class DetailedTimerSettings : UserControl
{
private static string T(string source) => UiLocalizer.Translate(source, LanguageResolver.ResolveCurrentCultureLanguage());

public new float Height { get; set; }
public new float Width { get; set; }
public float SegmentTimerSizeRatio { get; set; }
Expand Down Expand Up @@ -441,15 +444,15 @@ private void DetailedTimerSettings_Load(object sender, EventArgs e)
trkSize.Minimum = 50;
trkSize.Maximum = 500;
trkSize.DataBindings.Add("Value", this, "Width", false, DataSourceUpdateMode.OnPropertyChanged);
lblSize.Text = "Width:";
lblSize.Text = T("Width:");
}
else
{
trkSize.DataBindings.Clear();
trkSize.Minimum = 20;
trkSize.Maximum = 150;
trkSize.DataBindings.Add("Value", this, "Height", false, DataSourceUpdateMode.OnPropertyChanged);
lblSize.Text = "Height:";
lblSize.Text = T("Height:");
}
}

Expand Down