diff options
| author | a1xd <[email protected]> | 2021-11-16 18:00:24 -0500 |
|---|---|---|
| committer | a1xd <[email protected]> | 2021-11-16 18:00:24 -0500 |
| commit | d0672ce8e3c95caf61bfdc7eabf6c184fbb9200d (patch) | |
| tree | f84382fd17abfb8a0db0cd7125fc1fbaff0d0d94 /grapher/Models/AccelGUI.cs | |
| parent | add special handling for out cap=1 in classic (diff) | |
| download | rawaccel-patch-1.6.tar.xz rawaccel-patch-1.6.zip | |
make reset button a button controlpatch-1.6
removes checkbox behavior / color change on toggle
Diffstat (limited to 'grapher/Models/AccelGUI.cs')
| -rw-r--r-- | grapher/Models/AccelGUI.cs | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/grapher/Models/AccelGUI.cs b/grapher/Models/AccelGUI.cs index 23d5017..831d1df 100644 --- a/grapher/Models/AccelGUI.cs +++ b/grapher/Models/AccelGUI.cs @@ -23,7 +23,7 @@ namespace grapher SettingsManager settings, ApplyOptions applyOptions, Button writeButton, - ButtonBase resetButton, + Button resetButton, MouseWatcher mouseWatcher, ToolStripMenuItem scaleMenuItem, ToolStripMenuItem deviceMenuItem) @@ -33,7 +33,7 @@ namespace grapher AccelCharts = accelCharts; ApplyOptions = applyOptions; WriteButton = writeButton; - ResetButton = (CheckBox)resetButton; + ResetButton = resetButton; ScaleMenuItem = scaleMenuItem; DeviceMenuItem = deviceMenuItem; Settings = settings; @@ -79,7 +79,7 @@ namespace grapher public Button WriteButton { get; } - public CheckBox ResetButton { get; } + public Button ResetButton { get; } public Timer ButtonTimer { get; } @@ -204,7 +204,6 @@ namespace grapher { WriteButton.Top = Constants.SensitivityChartAloneHeight - Constants.ButtonVerticalOffset; - ResetButton.Appearance = Appearance.Button; ResetButton.FlatStyle = FlatStyle.System; ResetButton.TextAlign = ContentAlignment.MiddleCenter; ResetButton.Size = WriteButton.Size; |