Skip to content

Commit

Permalink
Update active message and screenshots
Browse files Browse the repository at this point in the history
  • Loading branch information
bitbeans committed Nov 11, 2019
1 parent c7db6f2 commit cc2f9ef
Show file tree
Hide file tree
Showing 6 changed files with 21 additions and 1 deletion.
Binary file modified img/preview/credits.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified img/preview/main.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified img/preview/settings.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified img/preview/stamp.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
20 changes: 20 additions & 0 deletions src/CleanBrowsingClient/ViewModels/MainWindowViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,26 @@ public bool IsProtected
get { return _isCustomFilterEnabled || _isFamilyFilterEnabled || _isAdultFilterEnabled; }
}

public string IsProtectedText
{
get
{
if (_isCustomFilterEnabled)
{
return "Status: ACTIVE. You are protected by Custom Filter.";
}
else if (_isFamilyFilterEnabled)
{
return "Status: ACTIVE. You are protected by Free Family Filter.";
}
else if (_isAdultFilterEnabled)
{
return "Status: ACTIVE. You are protected by Free Adult Filter.";
}
return "Status: ACTIVE (unknown filter)";
}
}

public bool IsCustomFilterEnabled
{
get { return _isCustomFilterEnabled; }
Expand Down
2 changes: 1 addition & 1 deletion src/CleanBrowsingClient/Views/MainView.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
<Setter Property="Text" Value="Status: Not active. Please enable any of our filters."/>
</DataTrigger>
<DataTrigger Binding="{Binding IsProtected}" Value="True">
<Setter Property="Text" Value="Status: active. You are AWESOME!."/>
<Setter Property="Text" Value="{Binding IsProtectedText}"/>
</DataTrigger>
</Style.Triggers>
</Style>
Expand Down

0 comments on commit cc2f9ef

Please sign in to comment.