Remove Settings.font

This commit is contained in:
yushijinhun
2018-10-03 17:17:16 +08:00
parent 6205937a10
commit 8cb4ca0e8b
2 changed files with 1 additions and 11 deletions

View File

@@ -18,7 +18,6 @@
package org.jackhuang.hmcl.setting;
import javafx.beans.binding.Bindings;
import javafx.scene.text.Font;
import org.jackhuang.hmcl.Launcher;
import org.jackhuang.hmcl.game.HMCLCacheRepository;
import org.jackhuang.hmcl.util.CacheRepository;
@@ -64,15 +63,6 @@ public class Settings {
}, config().commonDirectoryProperty(), config().commonDirTypeProperty()));
}
public Font getFont() {
return Font.font(config().getFontFamily(), config().getFontSize());
}
public void setFont(Font font) {
config().setFontFamily(font.getFamily());
config().setFontSize(font.getSize());
}
public static String getDefaultCommonDirectory() {
return Launcher.MINECRAFT_DIRECTORY.getAbsolutePath();
}

View File

@@ -148,7 +148,7 @@ public final class SettingsPage extends SettingsView implements DecoratorPage {
chkUpdateDev.setUserData(UpdateChannel.DEVELOPMENT);
chkUpdateStable.setToggleGroup(updateChannelGroup);
chkUpdateStable.setUserData(UpdateChannel.STABLE);
selectedItemPropertyFor(updateChannelGroup, UpdateChannel.class).bindBidirectional(ConfigHolder.config().updateChannelProperty());
selectedItemPropertyFor(updateChannelGroup, UpdateChannel.class).bindBidirectional(config().updateChannelProperty());
// ====
// ==== Background ====