Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Grand rework #105

Merged
merged 42 commits into from
Oct 28, 2019
Merged
Changes from 1 commit
Commits
Show all changes
42 commits
Select commit Hold shift + click to select a range
373761f
Migrate to .NET Core 3
Tyrrrz Sep 29, 2019
893e990
Rework UI
Tyrrrz Sep 29, 2019
9e2482e
Allow manual editing of temperatures
Tyrrrz Oct 3, 2019
7657af2
Update deployment script
Tyrrrz Oct 3, 2019
815953e
Refactor
Tyrrrz Oct 3, 2019
157b3c1
Add GeoLocation.TryParse
Tyrrrz Oct 4, 2019
4bef2ac
Allow manually specifying location
Tyrrrz Oct 4, 2019
c365a73
Split out hotkey settings in its own tab
Tyrrrz Oct 4, 2019
90a2e1e
Add auto start setting
Tyrrrz Oct 4, 2019
f91173d
Refactor
Tyrrrz Oct 5, 2019
67946ab
Add reset settings button
Tyrrrz Oct 5, 2019
538e698
Hide main window to tray if the app was launched automatically
Tyrrrz Oct 5, 2019
262be6e
Update appveyor image
Tyrrrz Oct 5, 2019
f6e52a0
Add "default to daytime temperature" setting
Tyrrrz Oct 5, 2019
ba76b9e
Unlock gamma range from the app
Tyrrrz Oct 5, 2019
5f76525
Fix inaccuracy in sunrise/sunset calculation due to timezones
Tyrrrz Oct 7, 2019
72f4595
Separate manual sunrise/sunset time from location-based calculation
Tyrrrz Oct 8, 2019
0af7042
Refactor astronomy to a separate class and add tests
Tyrrrz Oct 8, 2019
4b1007a
Update readme
Tyrrrz Oct 8, 2019
dca3cc0
Update deploy
Tyrrrz Oct 8, 2019
d8b7dff
Fix incorrect registry key path for gamma range
Tyrrrz Oct 9, 2019
429c9e8
Add autoupdate
Tyrrrz Oct 9, 2019
60cf7c4
Set some limitations in settings
Tyrrrz Oct 9, 2019
12e7209
Allow more precise configuration for transition duration, sunrise and…
Tyrrrz Oct 11, 2019
d29350d
Update readme
Tyrrrz Oct 11, 2019
57a7f28
Rework main screen to incorporate cycle state display
Tyrrrz Oct 19, 2019
942a8ea
Add proper save/cancel buttons to settings
Tyrrrz Oct 20, 2019
6c1d15e
Add support for brightness adjustments
Tyrrrz Oct 21, 2019
6e24b87
Remove some obsolete code
Tyrrrz Oct 23, 2019
fdef743
Bring the clock back to cycle display
Tyrrrz Oct 23, 2019
a18252a
Add About button to root view
Tyrrrz Oct 23, 2019
e7ece31
Remove gamma polling
Tyrrrz Oct 23, 2019
9df0921
Use hotkey editor control instead of viewmodel
Tyrrrz Oct 23, 2019
6ac9c92
Cleanup tray menu
Tyrrrz Oct 23, 2019
ed05c6b
Register hotkeys only on save
Tyrrrz Oct 23, 2019
425f9fe
Add basic error handling for resolving location
Tyrrrz Oct 23, 2019
c3506d7
Ensure timers don't trigger after disposing
Tyrrrz Oct 27, 2019
32b94ef
Fallback to command line when there are insufficicent permissions to …
Tyrrrz Oct 28, 2019
cb8a3fc
Register hotkeys at startup and simplify SettingsViewModel
Tyrrrz Oct 28, 2019
5a1c38a
Add some tests
Tyrrrz Oct 28, 2019
a33794c
Autoupdate shouldn't crash the app
Tyrrrz Oct 20, 2019
dbd7c23
Add test for TimeSpanToHumanizedDurationStringConverter
Tyrrrz Oct 21, 2019
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Add some tests
Tyrrrz committed Oct 28, 2019
commit 5a1c38a4e93cb4208d6d795ddbd7200bf94d8aad
Original file line number Diff line number Diff line change
@@ -47,6 +47,12 @@ private static IEnumerable<TestCaseData> GetTestCases_Convert()
null
);

yield return new TestCaseData(
TimeSpan.FromHours(2) + TimeSpan.FromMinutes(10) + TimeSpan.FromSeconds(15),
"2 hours 10 minutes",
null
);

yield return new TestCaseData(
TimeSpan.FromSeconds(10),
"10 seconds",
3 changes: 3 additions & 0 deletions LightBulb.Tests/Services/LocationServiceTests.cs
Original file line number Diff line number Diff line change
@@ -23,6 +23,9 @@ public async Task GetLocationAsync_Test()

[Test]
[TestCase("Kyiv, Ukraine")]
[TestCase("Dresden")]
[TestCase("UK")]
[TestCase("King's Cross, Platform 9 3/4")]
[TestCase("Statue of Liberty")]
public async Task GetLocationAsync_Query_Test(string query)
{
6 changes: 0 additions & 6 deletions LightBulb/App.config

This file was deleted.