mirror of
https://github.com/azaion/annotations.git
synced 2026-04-22 12:26:30 +00:00
small ux fixes
This commit is contained in:
@@ -13,11 +13,26 @@ public class DetectionClassChangedEventArgs(DetectionClass detectionClass, int c
|
||||
public partial class DetectionClasses
|
||||
{
|
||||
public event EventHandler<DetectionClassChangedEventArgs>? DetectionClassChanged;
|
||||
public bool IsChecked = true;
|
||||
private const int CaptionedMinWidth = 230;
|
||||
|
||||
public DetectionClasses()
|
||||
{
|
||||
InitializeComponent();
|
||||
SizeChanged += (sender, args) =>
|
||||
{
|
||||
if (args.NewSize.Width < CaptionedMinWidth)
|
||||
{
|
||||
RegularModeButton.Text = "";
|
||||
WinterModeButton.Text = "";
|
||||
NightModeButton.Text = "";
|
||||
}
|
||||
else
|
||||
{
|
||||
RegularModeButton.Text = Constants.REGULAR_MODE_CAPTION;
|
||||
WinterModeButton.Text= Constants.WINTER_MODE_CAPTION;
|
||||
NightModeButton.Text= Constants.NIGHT_MODE_CAPTION;
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
public void Init(List<DetectionClass> detectionClasses)
|
||||
|
||||
Reference in New Issue
Block a user