Skip to content

Commit

Permalink
added description string to the themeloader, this is then used to dis… (
Browse files Browse the repository at this point in the history
#5584)

* added description string to the themeloader, this is then used to display the description of the theme after applying a new theme in the preferences.

* removed description string from themeloader, instead put the theme description inside the localization string

* added a dot to the restart message string.

* added locale strings to the english language file
  • Loading branch information
carlg0ransson authored and tobiasdiez committed Nov 10, 2019
1 parent ba92cb7 commit 42d59a5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -81,10 +81,10 @@ public void storeSettings() {
}

if (themeLightProperty.getValue() && !preferences.get(JabRefPreferences.FX_THEME).equals(ThemeLoader.MAIN_CSS)) {
restartWarnings.add(Localization.lang("Theme changed:") + " " + ThemeLoader.MAIN_CSS);
restartWarnings.add(Localization.lang("Theme changed to light theme."));
preferences.put(JabRefPreferences.FX_THEME, ThemeLoader.MAIN_CSS);
} else if (themeDarkProperty.getValue() && !preferences.get(JabRefPreferences.FX_THEME).equals(ThemeLoader.DARK_CSS)) {
restartWarnings.add(Localization.lang("Theme changed:") + " " + ThemeLoader.DARK_CSS);
restartWarnings.add(Localization.lang("Theme changed to dark theme."));
preferences.put(JabRefPreferences.FX_THEME, ThemeLoader.DARK_CSS);
}
}
Expand Down
3 changes: 2 additions & 1 deletion src/main/resources/l10n/JabRef_en.properties
Original file line number Diff line number Diff line change
Expand Up @@ -2100,7 +2100,8 @@ Size\:=Size:
Font\ settings=Font settings
Override\ font\ settings=Override font settings
Override\ font\ size=Override font size
Theme\ changed\:=Theme changed\:
Theme\ changed\ to\ dark\ theme.=Theme changed to dark theme.
Theme\ changed\ to\ light\ theme.=Theme changed to light theme.
You\ must\ enter\ an\ integer\ value\ higher\ than\ 8.=You must enter an integer value higher than 8.
Letters\ after\ duplicate\ generated\ keys=Letters after duplicate generated keys
Start\ on\ second\ duplicate\ key\ with\ letter\ A\ (a,\ b,\ ...)=Start on second duplicate key with letter A (a, b, ...)
Expand Down

0 comments on commit 42d59a5

Please sign in to comment.