Skip to content
This repository has been archived by the owner on Feb 9, 2024. It is now read-only.

Commit

Permalink
Prep for Release v1.0.0 (#5)
Browse files Browse the repository at this point in the history
* Updated ReadMe Screenshots

* Updated README.md

* Removed UI Color Change

* Updated README.md

* Added about dialog

* Changed build JDK to 15.0.1
  • Loading branch information
jaxcksn authored Dec 12, 2020
1 parent ac33b30 commit 34127f7
Show file tree
Hide file tree
Showing 11 changed files with 36 additions and 20 deletions.
2 changes: 1 addition & 1 deletion .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

24 changes: 12 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ Select the device you want to connect too, and press the connect button. A dial

##### Step 1.5: Saving Device Info

Once you connect to a device, you will asked if you want to save the device information for easy reconnection. Pressing yes will save the device host, port, and the access token to your platforms default [preferences location](https://victor.kropp.name/blog/java-preferences-api/) . Pressing save will overwrite any device that is already saved.
Once you connect to a device, you will be asked if you want to save the device information for easy reconnection. Pressing yes will save the device host, port, and the access token to your platforms default [preferences location](https://victor.kropp.name/blog/java-preferences-api/) . Pressing save will overwrite any device that is already saved.



Expand All @@ -42,7 +42,7 @@ Once you connect to a device, you will asked if you want to save the device info
<img align="center" width="400" src="./assets/step2.png"/>
</p>

After connecting, you will be prompted to connect to Spotify. To do so, click the Connect to Spotify button and a browser will be opened. On that page, you will be prompted to sign into Spotify and then asked if you want to authorize this program. If you accept, you will be redirected to another page and if everything goes correctly you can return to the program.
After connecting, you will be prompted to connect to Spotify. To do so, click the _Connect to Spotify_ button, and a browser will be opened. On that page, you will be prompted to sign in to Spotify and then asked if you want to authorize this program. If you accept, you will be redirected to another page and if everything goes correctly you can return to the program.



Expand All @@ -64,45 +64,45 @@ The effect has two different ways to set the colors, **album art** and **color p

To add a color to the palette, use the color selection dropdown, and then press the _Add Color_ button to add it to the list. To remove a color from the palette, select the color in the list, then press the remove button. Finally, press the save button to apply your changes and update the colors. To go back to album art mode, open the settings drop down and enable it again. When you exit the program, both your color palette and color made will be saved for next time.

**Note:** A redo of the UI for the color palette is a high priority for future releases, and will let you see the colors instead of just the hex codes.



## Troubleshooting

* **Your Nanoleaf Device is not showing up on the list of devices**

- Check to make sure that you are on the same LAN as your Nanoleaf device, and that you can listen for and send MDNS packets.
- Check to make sure you are on the same LAN as your Nanoleaf device, and that you can listen for and send MDNS packets.

- Press the refresh button and see if it shows up. Sometimes the program fails in the initial MDNS discovery.
- Press the refresh button and see if it shows up. Sometimes the program fails in the initial MDNS discovery and can take a few tries to find the device.



* **I can't connect to Spotify**

* Make sure that you are accepting the prompts in your browser and on the same device the program is running on. It listens at localhost on port 8001 for the response from Spotify.
* Make sure you are accepting the prompts in your browser and on the same device the program is running on. It listens at localhost on port 8001 for the response from Spotify.



* **I've changed the song, but the program doesn't show the song has changed.**

* It can take a moment for the program to notice the song has changed, but once you see it change on the program, it should be reflected on the device.
* If it still doesn't respond, the best thing you can do is restart the program. (I know it's annoying, but hopefully this will be patched in future releases).
* If it still doesn't respond, in the settings menu there is a _reload effect_ button. Press that to restart the effect. If it doesn't work, I recommend restarting the program.



## Future Goals

For future releases, here is my list of some of my goals ordered by priority:

- [ ] Refactoring and Improving Performance
#### v1.0:
- [X] Refactoring and Improving Performance
- [X] Redo of the Color Palette UI
- [X] UI Overhaul

#### v1.5:
- [ ] Adding Java Documentation to Source Code
- [ ] Redo of the Color Palette UI
- [ ] Adding a Firework Effect
- [ ] Adding Player Controls to UI



## Credits

### Acknowledgements / Thanks
Expand Down
Binary file modified assets/step1.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 assets/step2.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 assets/step3.5.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 assets/step3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,10 @@
import javafx.fxml.FXMLLoader;
import javafx.scene.Parent;
import javafx.scene.Scene;
import javafx.scene.control.CheckMenuItem;
import javafx.scene.control.Label;
import javafx.scene.control.MenuButton;
import javafx.scene.control.MenuItem;
import javafx.scene.control.*;
import javafx.scene.image.Image;
import javafx.scene.layout.BorderPane;
import javafx.scene.layout.Region;
import javafx.scene.paint.Color;
import javafx.scene.paint.ImagePattern;
import javafx.scene.shape.Rectangle;
Expand All @@ -34,17 +32,15 @@


public class PlaybackView {
public Image albumArt;
public Text trackName;
public Text trackArtists;
public BorderPane mainPane;
public CheckMenuItem albumColorsCheckbox;
public MenuItem colorPaletteSelector;
public MenuItem reloadEffectItem;
public Rectangle trackArtFrame;
public Label accent1;
public Text accent2;
public MenuButton menuButton;
public MenuItem aboutMenuItem;
private EffectManager effectManager;

private Scene palettePickerScene;
Expand Down Expand Up @@ -122,4 +118,14 @@ public void showColorView(ActionEvent event) {
public void reloadEffectManager(ActionEvent event) {
effectManager.reloadEffect();
}

public void showAbout(ActionEvent event) {
Alert alert = new Alert(Alert.AlertType.INFORMATION);
alert.setHeaderText("About this Program");
alert.setContentText("NanoleafMusic v1.0.0 \nCopyright (c) 2020, Jaxcksn. All rights reserved.");
DialogPane dialogPane = alert.getDialogPane();
dialogPane.setMinHeight(Region.USE_PREF_SIZE);
dialogPane.getStylesheets().add("/gui.css");
alert.showAndWait();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@
onAction="#showColorView" text="Set Color Palette"/>
<MenuItem fx:id="reloadEffectItem" mnemonicParsing="false" onAction="#reloadEffectManager"
text="Reload Effect"/>
<MenuItem fx:id="aboutMenuItem" onAction="#showAbout" mnemonicParsing="false" text="About"/>
</items>
</MenuButton>
</children>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ public void setPalette(int[][] colors) {
}

palette = newPalette;
/* Disabling this feature until I can prefect it.
int betterColor = 0;
int[] color0 = {newPalette[0].getRed(), newPalette[0].getGreen(), newPalette[0].getBlue()};
int[] color1 = {newPalette[1].getRed(), newPalette[1].getGreen(), newPalette[1].getBlue()};
Expand All @@ -116,8 +117,10 @@ public void setPalette(int[][] colors) {
}
}
accentColor = new PaletteColor(javafx.scene.paint.Color.rgb(newPalette[betterColor].getRed(), newPalette[betterColor].getGreen(), newPalette[betterColor].getBlue()));
*/
}


private static double calculateColorful(int[] rgb) {
double maxValue = largest(rgb);
double minValue = smallest(rgb);
Expand Down
5 changes: 5 additions & 0 deletions target/classes/paletteCell.fxml
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
<?xml version="1.0" encoding="UTF-8"?>

<!--
~ Copyright (c) 2020, Jaxcksn
~ All rights reserved.
-->

<?import javafx.geometry.Insets?>
<?import javafx.scene.layout.HBox?>
<?import javafx.scene.shape.Rectangle?>
Expand Down
1 change: 1 addition & 0 deletions target/classes/playbackView.fxml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@
onAction="#showColorView" text="Set Color Palette"/>
<MenuItem fx:id="reloadEffectItem" mnemonicParsing="false" onAction="#reloadEffectManager"
text="Reload Effect"/>
<MenuItem fx:id="aboutMenuItem" onAction="#showAbout" mnemonicParsing="false" text="About"/>
</items>
</MenuButton>
</children>
Expand Down

0 comments on commit 34127f7

Please sign in to comment.