mirror of
https://github.com/cryptomator/cryptomator.git
synced 2026-05-21 20:21:27 +00:00
remove theme change restrictions
This commit is contained in:
@@ -10,14 +10,6 @@ public enum UiTheme {
|
||||
DARK("preferences.interface.theme.dark"), //
|
||||
AUTOMATIC("preferences.interface.theme.automatic");
|
||||
|
||||
public static UiTheme[] applicableValues() {
|
||||
if (SystemUtils.IS_OS_MAC || SystemUtils.IS_OS_WINDOWS) {
|
||||
return values();
|
||||
} else {
|
||||
return new UiTheme[]{LIGHT, DARK};
|
||||
}
|
||||
}
|
||||
|
||||
private final String displayName;
|
||||
|
||||
UiTheme(String displayName) {
|
||||
|
||||
@@ -56,7 +56,7 @@ public class InterfacePreferencesController implements FxController {
|
||||
|
||||
@FXML
|
||||
public void initialize() {
|
||||
themeChoiceBox.getItems().addAll(UiTheme.applicableValues());
|
||||
themeChoiceBox.getItems().addAll(UiTheme.values());
|
||||
if (!themeChoiceBox.getItems().contains(settings.theme.get())) {
|
||||
settings.theme.set(UiTheme.LIGHT);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user