Skip to content
forked from JabRef/jabref

Commit

Permalink
Removed fontTweaksLinux according to PR JabRef#5330
Browse files Browse the repository at this point in the history
  • Loading branch information
calixtus committed Oct 14, 2019
1 parent f82a7c3 commit 9ca8686
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
<Insets left="20.0"/>
</padding>
</HBox>
<CheckBox fx:id="fontTweaksLinux" text="%Tweak font rendering for entry editor on Linux"/>

<Label styleClass="sectionHeader" text="%Visual theme"/>
<RadioButton fx:id="themeLight" text="%Light theme" toggleGroup="$theme"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ public class AppearanceTabView extends AbstractPreferenceTabView<AppearanceTabVi

@FXML public CheckBox fontOverride;
@FXML public TextField fontSize;
@FXML public CheckBox fontTweaksLinux;
@FXML public RadioButton themeLight;
@FXML public RadioButton themeDark;

Expand All @@ -41,7 +40,6 @@ public void initialize () {
fontOverride.selectedProperty().bindBidirectional(viewModel.fontOverrideProperty());
fontSize.setTextFormatter(ControlHelper.getIntegerTextFormatter());
fontSize.textProperty().bindBidirectional(viewModel.fontSizeProperty());
fontTweaksLinux.selectedProperty().bindBidirectional(viewModel.fontTweaksLinuxProperty());

themeLight.selectedProperty().bindBidirectional(viewModel.themeLightProperty());
themeDark.selectedProperty().bindBidirectional(viewModel.themeDarkProperty());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ public class AppearanceTabViewModel implements PreferenceTabViewModel {

private final BooleanProperty fontOverrideProperty = new SimpleBooleanProperty();
private final StringProperty fontSizeProperty = new SimpleStringProperty();
private final BooleanProperty fontTweaksLinuxProperty = new SimpleBooleanProperty();
private final BooleanProperty themeLightProperty = new SimpleBooleanProperty();
private final BooleanProperty themeDarkProperty = new SimpleBooleanProperty();

Expand Down Expand Up @@ -56,7 +55,6 @@ public AppearanceTabViewModel(DialogService dialogService, JabRefPreferences pre
public void setValues() {
fontOverrideProperty.setValue(preferences.getBoolean(JabRefPreferences.OVERRIDE_DEFAULT_FONT_SIZE));
fontSizeProperty.setValue(String.valueOf(preferences.getInt(JabRefPreferences.MAIN_FONT_SIZE)));
fontTweaksLinuxProperty.setValue(preferences.getBoolean(JabRefPreferences.FX_FONT_RENDERING_TWEAK));

switch (preferences.get(JabRefPreferences.FX_THEME)) {
case ThemeLoader.DARK_CSS:
Expand All @@ -83,11 +81,6 @@ public void storeSettings() {
preferences.putInt(JabRefPreferences.MAIN_FONT_SIZE, newFontSize);
}

if (preferences.getBoolean(JabRefPreferences.FX_FONT_RENDERING_TWEAK) != fontTweaksLinuxProperty.getValue()) {
restartWarnings.add(Localization.lang("Font rendering tweak for Linux"));
preferences.putBoolean(JabRefPreferences.FX_FONT_RENDERING_TWEAK, fontTweaksLinuxProperty.getValue());
}

if (themeLightProperty.getValue() && !preferences.get(JabRefPreferences.FX_THEME).equals(ThemeLoader.MAIN_CSS)) {
restartWarnings.add(Localization.lang("Theme changed:") + " " + ThemeLoader.MAIN_CSS);
preferences.put(JabRefPreferences.FX_THEME, ThemeLoader.MAIN_CSS);
Expand Down Expand Up @@ -118,8 +111,6 @@ public boolean validateSettings() {

public StringProperty fontSizeProperty() { return fontSizeProperty; }

public BooleanProperty fontTweaksLinuxProperty() { return fontTweaksLinuxProperty; }

public BooleanProperty themeLightProperty() { return themeLightProperty; }

public BooleanProperty themeDarkProperty() { return themeDarkProperty; }
Expand Down

0 comments on commit 9ca8686

Please sign in to comment.