@@ -177,7 +177,7 @@ public Extra()
177
177
numericBacklightPluggedTime . AccessibleName = Properties . Strings . BacklightTimeoutPlugged ;
178
178
numericBacklightTime . AccessibleName = Properties . Strings . BacklightTimeoutBattery ;
179
179
180
- comboKeyboardSpeed . AccessibleName = Properties . Strings . LaptopBacklight + " " + Properties . Strings . AnimationSpeed ;
180
+ comboKeyboardSpeed . AccessibleName = Properties . Strings . LaptopBacklight + " " + Properties . Strings . AnimationSpeed ;
181
181
comboAPU . AccessibleName = Properties . Strings . LaptopBacklight + " " + Properties . Strings . AnimationSpeed ;
182
182
183
183
checkBoot . AccessibleName = Properties . Strings . Boot + " " + Properties . Strings . LaptopBacklight ;
@@ -371,6 +371,9 @@ public Extra()
371
371
checkBootBar . Visible = false ;
372
372
checkSleepBar . Visible = false ;
373
373
checkShutdownBar . Visible = false ;
374
+
375
+ labelBacklightKeyboard . Visible = false ;
376
+ checkBattery . Visible = false ;
374
377
}
375
378
376
379
labelBacklightLid . Visible = false ;
@@ -388,10 +391,21 @@ public Extra()
388
391
checkShutdownLogo . Visible = false ;
389
392
}
390
393
391
- if ( ! AppConfig . IsBacklightZones ( ) )
394
+ if ( AppConfig . IsZ13 ( ) )
392
395
{
393
- labelBacklightKeyboard . Visible = false ;
394
- checkBattery . Visible = false ;
396
+ labelBacklightBar . Visible = false ;
397
+ checkAwakeBar . Visible = false ;
398
+ checkBatteryBar . Visible = false ;
399
+ checkBootBar . Visible = false ;
400
+ checkSleepBar . Visible = false ;
401
+ checkShutdownBar . Visible = false ;
402
+
403
+ labelBacklightLid . Visible = false ;
404
+ checkAwakeLid . Visible = false ;
405
+ checkBatteryLid . Visible = false ;
406
+ checkBootLid . Visible = false ;
407
+ checkSleepLid . Visible = false ;
408
+ checkShutdownLid . Visible = false ;
395
409
}
396
410
397
411
//checkAutoToggleClamshellMode.Visible = clamshellControl.IsExternalDisplayConnected();
@@ -504,12 +518,14 @@ private void InitACPITesting()
504
518
505
519
private void ButtonACPISend_Click ( object ? sender , EventArgs e )
506
520
{
507
- try {
521
+ try
522
+ {
508
523
int deviceID = Convert . ToInt32 ( textACPICommand . Text , 16 ) ;
509
524
int status = Convert . ToInt32 ( textACPIParam . Text , textACPIParam . Text . Contains ( "x" ) ? 16 : 10 ) ;
510
525
int result = Program . acpi . DeviceSet ( ( uint ) deviceID , status , "TestACPI " + deviceID . ToString ( "X8" ) + " " + status . ToString ( "X4" ) ) ;
511
526
labelACPITitle . Text = "ACPI DEVS Test : " + result . ToString ( ) ;
512
- } catch ( Exception ex )
527
+ }
528
+ catch ( Exception ex )
513
529
{
514
530
Logger . WriteLine ( ex . Message ) ;
515
531
}
@@ -813,7 +829,7 @@ private void CheckPower_CheckedChanged(object? sender, EventArgs e)
813
829
AppConfig . Set ( "keyboard_awake_bar_bat" , ( checkBatteryBar . Checked ? 1 : 0 ) ) ;
814
830
AppConfig . Set ( "keyboard_awake_lid_bat" , ( checkBatteryLid . Checked ? 1 : 0 ) ) ;
815
831
AppConfig . Set ( "keyboard_awake_logo_bat" , ( checkBatteryLogo . Checked ? 1 : 0 ) ) ;
816
- }
832
+ }
817
833
818
834
Aura . ApplyPower ( ) ;
819
835
@@ -836,7 +852,8 @@ private void Keyboard_Shown(object? sender, EventArgs e)
836
852
{
837
853
MaximumSize = new Size ( Width , Program . settingsForm . Height ) ;
838
854
Top = Program . settingsForm . Top ;
839
- } else
855
+ }
856
+ else
840
857
{
841
858
Top = top ;
842
859
}
0 commit comments