Skip to content

Commit

Permalink
Various changes, including a reset function
Browse files Browse the repository at this point in the history
  • Loading branch information
Loginer von Web committed Aug 23, 2015
1 parent e0cdfc8 commit 0437e83
Show file tree
Hide file tree
Showing 7 changed files with 331 additions and 290 deletions.
3 changes: 3 additions & 0 deletions Albedo/App.config
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,9 @@
<setting name="startupTime" serializeAs="String">
<value>0</value>
</setting>
<setting name="ambientColorOnly" serializeAs="String">
<value>0</value>
</setting>
</Albedo.Properties.Settings>
</userSettings>
</configuration>
4 changes: 4 additions & 0 deletions Albedo/Core/Effects.cs
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,10 @@ private static void AmbientPut()
{
dynamic ambient = Platform.AmbientSampling();
bufferData.bri = ambient.bri;
if (Platform.ReadSetting("ambientColorOnly") > 0) {
bufferData.bri = Platform.ReadSetting("ambientColorOnly");
}

bufferData.hue = ambient.hue;
bufferData.sat = ambient.sat;
return;
Expand Down
6 changes: 6 additions & 0 deletions Albedo/DummyWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,12 @@ private void ExitItem_Click(object sender, RoutedEventArgs e)
Environment.Exit(0);
}

public void Exit()
{
this.TaskIcon.Visibility = System.Windows.Visibility.Collapsed; //Prevents task icon from remaining in tray
Environment.Exit(0);
}

private void AmbientItem_Click(object sender, RoutedEventArgs e)
{
if (Ready()) {
Expand Down
156 changes: 80 additions & 76 deletions Albedo/EditorWindow.xaml

Large diffs are not rendered by default.

Loading

0 comments on commit 0437e83

Please sign in to comment.