From b3a19d67617f4ef3ae5718b4dabac7b2e91551b1 Mon Sep 17 00:00:00 2001 From: Nico Alt <nicoalt@posteo.org> Date: Tue, 15 Jun 2021 08:48:54 +0200 Subject: [PATCH] Get Briar running --- .../briarproject/briar/compose/MainUI.java | 32 +++++++++---------- .../org/briarproject/briar/compose/UI.kt | 4 +-- 2 files changed, 18 insertions(+), 18 deletions(-) diff --git a/src/main/kotlin/org/briarproject/briar/compose/MainUI.java b/src/main/kotlin/org/briarproject/briar/compose/MainUI.java index 6b33d76cb2..e583ad5c71 100644 --- a/src/main/kotlin/org/briarproject/briar/compose/MainUI.java +++ b/src/main/kotlin/org/briarproject/briar/compose/MainUI.java @@ -53,7 +53,7 @@ public class MainUI extends JFrame implements EventListener { private final PrivateMessageFactory privateMessageFactory; private final EventBus eventBus; private final PasswordStrengthEstimator passwordStrengthEstimator; - private final Configuration configuration; +// private final Configuration configuration; private JPanel mainPanel; private JPanel contentPanel; @@ -70,8 +70,8 @@ public class MainUI extends JFrame implements EventListener { IntroductionManager introductionManager, PrivateMessageFactory privateMessageFactory, EventBus eventBus, - PasswordStrengthEstimator passwordStrengthEstimator, - Configuration configuration) { + PasswordStrengthEstimator passwordStrengthEstimator + /*Configuration configuration*/) { this.briarService = briarService; this.accountManager = accountManager; this.contactManager = contactManager; @@ -81,16 +81,16 @@ public class MainUI extends JFrame implements EventListener { this.privateMessageFactory = privateMessageFactory; this.eventBus = eventBus; this.passwordStrengthEstimator = passwordStrengthEstimator; - this.configuration = configuration; - - String lookAndFeel = configuration.getLookAndFeel(); - if (lookAndFeel != null) { - try { - UIManager.setLookAndFeel(lookAndFeel); - } catch (Exception e) { - logger.error("error while setting look and feel", e); - } - } +// this.configuration = configuration; + +// String lookAndFeel = configuration.getLookAndFeel(); +// if (lookAndFeel != null) { +// try { +// UIManager.setLookAndFeel(lookAndFeel); +// } catch (Exception e) { +// logger.error("error while setting look and feel", e); +// } +// } setTitle("Briar Swing"); // setJMenuBar(new MainMenu(this)); @@ -119,9 +119,9 @@ public class MainUI extends JFrame implements EventListener { // eventBus.addListener(this); } - public Configuration getConfiguration() { - return configuration; - } +// public Configuration getConfiguration() { +// return configuration; +// } public AccountManager getAccountManager() { return accountManager; diff --git a/src/main/kotlin/org/briarproject/briar/compose/UI.kt b/src/main/kotlin/org/briarproject/briar/compose/UI.kt index cd10bb9c2e..5671b44769 100644 --- a/src/main/kotlin/org/briarproject/briar/compose/UI.kt +++ b/src/main/kotlin/org/briarproject/briar/compose/UI.kt @@ -35,7 +35,7 @@ constructor( ) { private val logger = getLogger(UI::javaClass.name) - private val configuration = Configuration() +// private val configuration = Configuration() internal fun startBriar() { briarService.start(); @@ -52,7 +52,7 @@ constructor( privateMessageFactory, eventBus, passwordStrengthEstimator, - configuration +// configuration ); mainUI.defaultCloseOperation = JFrame.EXIT_ON_CLOSE; -- GitLab