Browse Source

Changed time intervals and menu item order

Thomas Buck 9 years ago
parent
commit
645b3d223e
3 changed files with 12 additions and 12 deletions
  1. 6
    6
      CaseLights/AppDelegate.m
  2. 5
    5
      CaseLights/Base.lproj/MainMenu.xib
  3. 1
    1
      CaseLights/Info.plist

+ 6
- 6
CaseLights/AppDelegate.m View File

375
     
375
     
376
     // Schedule next invocation for this animation...
376
     // Schedule next invocation for this animation...
377
     if ([mode isEqualToString:TEXT_GPU_USAGE]) {
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
     } else if ([mode isEqualToString:TEXT_VRAM_USAGE]) {
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
     } else if ([mode isEqualToString:TEXT_CPU_USAGE]) {
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
     } else if ([mode isEqualToString:TEXT_RAM_USAGE]) {
383
     } else if ([mode isEqualToString:TEXT_RAM_USAGE]) {
384
         animation = [NSTimer scheduledTimerWithTimeInterval:20.0 target:self selector:@selector(visualizeRAMUsage:) userInfo:mode repeats:YES];
384
         animation = [NSTimer scheduledTimerWithTimeInterval:20.0 target:self selector:@selector(visualizeRAMUsage:) userInfo:mode repeats:YES];
385
     } else if ([mode isEqualToString:TEXT_CPU_TEMPERATURE]) {
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
     } else if ([mode isEqualToString:TEXT_GPU_TEMPERATURE]) {
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
     } else if ([mode isEqualToString:TEXT_RGB_FADE]) {
389
     } else if ([mode isEqualToString:TEXT_RGB_FADE]) {
390
         animation = [NSTimer scheduledTimerWithTimeInterval:0.1 target:self selector:@selector(visualizeRGBFade:) userInfo:mode repeats:YES];
390
         animation = [NSTimer scheduledTimerWithTimeInterval:0.1 target:self selector:@selector(visualizeRGBFade:) userInfo:mode repeats:YES];
391
     } else if ([mode isEqualToString:TEXT_HSV_FADE]) {
391
     } else if ([mode isEqualToString:TEXT_HSV_FADE]) {
392
         animation = [NSTimer scheduledTimerWithTimeInterval:0.1 target:self selector:@selector(visualizeHSVFade:) userInfo:mode repeats:YES];
392
         animation = [NSTimer scheduledTimerWithTimeInterval:0.1 target:self selector:@selector(visualizeHSVFade:) userInfo:mode repeats:YES];
393
     } else if ([mode isEqualToString:TEXT_RANDOM]) {
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
     } else {
395
     } else {
396
         return NO;
396
         return NO;
397
     }
397
     }

+ 5
- 5
CaseLights/Base.lproj/MainMenu.xib View File

691
                     <modifierMask key="keyEquivalentModifierMask"/>
691
                     <modifierMask key="keyEquivalentModifierMask"/>
692
                     <menu key="submenu" title="Visualizations" id="yZl-ae-7SI"/>
692
                     <menu key="submenu" title="Visualizations" id="yZl-ae-7SI"/>
693
                 </menuItem>
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
                 <menuItem title="Brightness" id="Oh0-1U-yDg">
694
                 <menuItem title="Brightness" id="Oh0-1U-yDg">
700
                     <modifierMask key="keyEquivalentModifierMask"/>
695
                     <modifierMask key="keyEquivalentModifierMask"/>
701
                     <menu key="submenu" title="Brightness" id="jRu-sM-3xB">
696
                     <menu key="submenu" title="Brightness" id="jRu-sM-3xB">
709
                         </items>
704
                         </items>
710
                     </menu>
705
                     </menu>
711
                 </menuItem>
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
                 <menuItem isSeparatorItem="YES" id="umI-9c-ZzN"/>
712
                 <menuItem isSeparatorItem="YES" id="umI-9c-ZzN"/>
713
                 <menuItem title="Toggle Lights" keyEquivalent="w" id="tLQ-BA-kGu">
713
                 <menuItem title="Toggle Lights" keyEquivalent="w" id="tLQ-BA-kGu">
714
                     <connections>
714
                     <connections>

+ 1
- 1
CaseLights/Info.plist View File

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

Loading…
Cancel
Save