Kaynağa Gözat

Changed time intervals and menu item order

Thomas Buck 9 yıl önce
ebeveyn
işleme
645b3d223e

+ 6
- 6
CaseLights/AppDelegate.m Dosyayı Görüntüle

@@ -375,23 +375,23 @@
375 375
     
376 376
     // Schedule next invocation for this animation...
377 377
     if ([mode isEqualToString:TEXT_GPU_USAGE]) {
378
-        animation = [NSTimer scheduledTimerWithTimeInterval:5.0 target:self selector:@selector(visualizeGPUUsage:) userInfo:mode repeats:YES];
378
+        animation = [NSTimer scheduledTimerWithTimeInterval:2.0 target:self selector:@selector(visualizeGPUUsage:) userInfo:mode repeats:YES];
379 379
     } else if ([mode isEqualToString:TEXT_VRAM_USAGE]) {
380
-        animation = [NSTimer scheduledTimerWithTimeInterval:5.0 target:self selector:@selector(visualizeVRAMUsage:) userInfo:mode repeats:YES];
380
+        animation = [NSTimer scheduledTimerWithTimeInterval:2.0 target:self selector:@selector(visualizeVRAMUsage:) userInfo:mode repeats:YES];
381 381
     } else if ([mode isEqualToString:TEXT_CPU_USAGE]) {
382
-        animation = [NSTimer scheduledTimerWithTimeInterval:5.0 target:self selector:@selector(visualizeCPUUsage:) userInfo:mode repeats:YES];
382
+        animation = [NSTimer scheduledTimerWithTimeInterval:2.0 target:self selector:@selector(visualizeCPUUsage:) userInfo:mode repeats:YES];
383 383
     } else if ([mode isEqualToString:TEXT_RAM_USAGE]) {
384 384
         animation = [NSTimer scheduledTimerWithTimeInterval:20.0 target:self selector:@selector(visualizeRAMUsage:) userInfo:mode repeats:YES];
385 385
     } else if ([mode isEqualToString:TEXT_CPU_TEMPERATURE]) {
386
-        animation = [NSTimer scheduledTimerWithTimeInterval:5.0 target:self selector:@selector(visualizeCPUTemperature:) userInfo:mode repeats:YES];
386
+        animation = [NSTimer scheduledTimerWithTimeInterval:2.0 target:self selector:@selector(visualizeCPUTemperature:) userInfo:mode repeats:YES];
387 387
     } else if ([mode isEqualToString:TEXT_GPU_TEMPERATURE]) {
388
-        animation = [NSTimer scheduledTimerWithTimeInterval:5.0 target:self selector:@selector(visualizeGPUTemperature:) userInfo:mode repeats:YES];
388
+        animation = [NSTimer scheduledTimerWithTimeInterval:2.0 target:self selector:@selector(visualizeGPUTemperature:) userInfo:mode repeats:YES];
389 389
     } else if ([mode isEqualToString:TEXT_RGB_FADE]) {
390 390
         animation = [NSTimer scheduledTimerWithTimeInterval:0.1 target:self selector:@selector(visualizeRGBFade:) userInfo:mode repeats:YES];
391 391
     } else if ([mode isEqualToString:TEXT_HSV_FADE]) {
392 392
         animation = [NSTimer scheduledTimerWithTimeInterval:0.1 target:self selector:@selector(visualizeHSVFade:) userInfo:mode repeats:YES];
393 393
     } else if ([mode isEqualToString:TEXT_RANDOM]) {
394
-        animation = [NSTimer scheduledTimerWithTimeInterval:0.1 target:self selector:@selector(visualizeRandom:) userInfo:mode repeats:YES];
394
+        animation = [NSTimer scheduledTimerWithTimeInterval:0.25 target:self selector:@selector(visualizeRandom:) userInfo:mode repeats:YES];
395 395
     } else {
396 396
         return NO;
397 397
     }

+ 5
- 5
CaseLights/Base.lproj/MainMenu.xib Dosyayı Görüntüle

@@ -691,11 +691,6 @@
691 691
                     <modifierMask key="keyEquivalentModifierMask"/>
692 692
                     <menu key="submenu" title="Visualizations" id="yZl-ae-7SI"/>
693 693
                 </menuItem>
694
-                <menuItem title="Turn LEDs off" keyEquivalent="e" id="gT4-tm-Hvn">
695
-                    <connections>
696
-                        <action selector="turnLEDsOff:" target="Voe-Tx-rLC" id="FQw-v8-IbT"/>
697
-                    </connections>
698
-                </menuItem>
699 694
                 <menuItem title="Brightness" id="Oh0-1U-yDg">
700 695
                     <modifierMask key="keyEquivalentModifierMask"/>
701 696
                     <menu key="submenu" title="Brightness" id="jRu-sM-3xB">
@@ -709,6 +704,11 @@
709 704
                         </items>
710 705
                     </menu>
711 706
                 </menuItem>
707
+                <menuItem title="Turn LEDs off" keyEquivalent="e" id="gT4-tm-Hvn">
708
+                    <connections>
709
+                        <action selector="turnLEDsOff:" target="Voe-Tx-rLC" id="FQw-v8-IbT"/>
710
+                    </connections>
711
+                </menuItem>
712 712
                 <menuItem isSeparatorItem="YES" id="umI-9c-ZzN"/>
713 713
                 <menuItem title="Toggle Lights" keyEquivalent="w" id="tLQ-BA-kGu">
714 714
                     <connections>

+ 1
- 1
CaseLights/Info.plist Dosyayı Görüntüle

@@ -21,7 +21,7 @@
21 21
 	<key>CFBundleSignature</key>
22 22
 	<string>????</string>
23 23
 	<key>CFBundleVersion</key>
24
-	<string>114</string>
24
+	<string>115</string>
25 25
 	<key>LSApplicationCategoryType</key>
26 26
 	<string>public.app-category.utilities</string>
27 27
 	<key>LSMinimumSystemVersion</key>

Loading…
İptal
Kaydet