Skip to content

Commit 9ca8686

Browse files
committed
Removed fontTweaksLinux according to PR JabRef#5330
1 parent f82a7c3 commit 9ca8686

File tree

3 files changed

+0
-12
lines changed

3 files changed

+0
-12
lines changed

src/main/java/org/jabref/gui/preferences/AppearanceTab.fxml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@
2525
<Insets left="20.0"/>
2626
</padding>
2727
</HBox>
28-
<CheckBox fx:id="fontTweaksLinux" text="%Tweak font rendering for entry editor on Linux"/>
2928

3029
<Label styleClass="sectionHeader" text="%Visual theme"/>
3130
<RadioButton fx:id="themeLight" text="%Light theme" toggleGroup="$theme"/>

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

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ public class AppearanceTabView extends AbstractPreferenceTabView<AppearanceTabVi
1818

1919
@FXML public CheckBox fontOverride;
2020
@FXML public TextField fontSize;
21-
@FXML public CheckBox fontTweaksLinux;
2221
@FXML public RadioButton themeLight;
2322
@FXML public RadioButton themeDark;
2423

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

4644
themeLight.selectedProperty().bindBidirectional(viewModel.themeLightProperty());
4745
themeDark.selectedProperty().bindBidirectional(viewModel.themeDarkProperty());

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

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ public class AppearanceTabViewModel implements PreferenceTabViewModel {
2121

2222
private final BooleanProperty fontOverrideProperty = new SimpleBooleanProperty();
2323
private final StringProperty fontSizeProperty = new SimpleStringProperty();
24-
private final BooleanProperty fontTweaksLinuxProperty = new SimpleBooleanProperty();
2524
private final BooleanProperty themeLightProperty = new SimpleBooleanProperty();
2625
private final BooleanProperty themeDarkProperty = new SimpleBooleanProperty();
2726

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

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

86-
if (preferences.getBoolean(JabRefPreferences.FX_FONT_RENDERING_TWEAK) != fontTweaksLinuxProperty.getValue()) {
87-
restartWarnings.add(Localization.lang("Font rendering tweak for Linux"));
88-
preferences.putBoolean(JabRefPreferences.FX_FONT_RENDERING_TWEAK, fontTweaksLinuxProperty.getValue());
89-
}
90-
9184
if (themeLightProperty.getValue() && !preferences.get(JabRefPreferences.FX_THEME).equals(ThemeLoader.MAIN_CSS)) {
9285
restartWarnings.add(Localization.lang("Theme changed:") + " " + ThemeLoader.MAIN_CSS);
9386
preferences.put(JabRefPreferences.FX_THEME, ThemeLoader.MAIN_CSS);
@@ -118,8 +111,6 @@ public boolean validateSettings() {
118111

119112
public StringProperty fontSizeProperty() { return fontSizeProperty; }
120113

121-
public BooleanProperty fontTweaksLinuxProperty() { return fontTweaksLinuxProperty; }
122-
123114
public BooleanProperty themeLightProperty() { return themeLightProperty; }
124115

125116
public BooleanProperty themeDarkProperty() { return themeDarkProperty; }

0 commit comments

Comments
 (0)