Skip to content

Commit

Permalink
fix: custom theme not follow system-based dark mode toggle
Browse files Browse the repository at this point in the history
Signed-off-by: Next Alone <[email protected]>
  • Loading branch information
NextAlone committed Oct 2, 2024
1 parent eb5e3fc commit 083b031
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2523,7 +2523,8 @@ public boolean isDark() {
}

public boolean isLight() {
return pathToFile == null && !isDark();
// return pathToFile == null && !isDark(); // don't use pathToFile to determine light theme
return !isDark();
}

public String getKey() {
Expand Down

0 comments on commit 083b031

Please sign in to comment.