Skip to content

Commit 42d59a5

Browse files
carlg0ranssontobiasdiez
authored andcommitted
added description string to the themeloader, this is then used to dis… (#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
1 parent ba92cb7 commit 42d59a5

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

src/main/java/org/jabref/gui/preferences/AppearanceTabViewModel.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,10 +81,10 @@ public void storeSettings() {
8181
}
8282

8383
if (themeLightProperty.getValue() && !preferences.get(JabRefPreferences.FX_THEME).equals(ThemeLoader.MAIN_CSS)) {
84-
restartWarnings.add(Localization.lang("Theme changed:") + " " + ThemeLoader.MAIN_CSS);
84+
restartWarnings.add(Localization.lang("Theme changed to light theme."));
8585
preferences.put(JabRefPreferences.FX_THEME, ThemeLoader.MAIN_CSS);
8686
} else if (themeDarkProperty.getValue() && !preferences.get(JabRefPreferences.FX_THEME).equals(ThemeLoader.DARK_CSS)) {
87-
restartWarnings.add(Localization.lang("Theme changed:") + " " + ThemeLoader.DARK_CSS);
87+
restartWarnings.add(Localization.lang("Theme changed to dark theme."));
8888
preferences.put(JabRefPreferences.FX_THEME, ThemeLoader.DARK_CSS);
8989
}
9090
}

src/main/resources/l10n/JabRef_en.properties

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2100,7 +2100,8 @@ Size\:=Size:
21002100
Font\ settings=Font settings
21012101
Override\ font\ settings=Override font settings
21022102
Override\ font\ size=Override font size
2103-
Theme\ changed\:=Theme changed\:
2103+
Theme\ changed\ to\ dark\ theme.=Theme changed to dark theme.
2104+
Theme\ changed\ to\ light\ theme.=Theme changed to light theme.
21042105
You\ must\ enter\ an\ integer\ value\ higher\ than\ 8.=You must enter an integer value higher than 8.
21052106
Letters\ after\ duplicate\ generated\ keys=Letters after duplicate generated keys
21062107
Start\ on\ second\ duplicate\ key\ with\ letter\ A\ (a,\ b,\ ...)=Start on second duplicate key with letter A (a, b, ...)

0 commit comments

Comments
 (0)