Skip to content

Commit

Permalink
Fixing darkmode for application
Browse files Browse the repository at this point in the history
  • Loading branch information
JayPi4c committed Jan 7, 2024
1 parent 434a465 commit 6f609eb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ jobs:
name: Verify project
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Set up JDK 21
uses: actions/setup-java@v2
uses: actions/setup-java@v4
with:
java-version: '21'
distribution: 'temurin'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
import lombok.AccessLevel;
import lombok.NoArgsConstructor;

import java.util.Objects;

/**
* Class to manage the loaded scene.
*
Expand All @@ -14,7 +16,7 @@
@NoArgsConstructor(access = AccessLevel.PRIVATE)
public class SceneManager {

private static final String DARK_MODE_CSS = "/css/dark-theme.css";
private static final String DARK_MODE_CSS = Objects.requireNonNull(SceneManager.class.getResource("/css/dark-theme.css")).toExternalForm();

/**
* The boolean on which elements can bind in order to be updated on dark-mode
Expand Down

0 comments on commit 6f609eb

Please sign in to comment.