You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by to...@apache.org on 2021/03/12 02:01:41 UTC

[lucene] branch main updated: LUCENE-9834: Adjast logo/colors in the Luke About dialog

This is an automated email from the ASF dual-hosted git repository.

tomoko pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/lucene.git


The following commit(s) were added to refs/heads/main by this push:
     new 7478b3f  LUCENE-9834: Adjast logo/colors in the Luke About dialog
7478b3f is described below

commit 7478b3fc172eafcb49e8705ee2b343b1ebfd2425
Author: Tomoko Uchida <to...@gmail.com>
AuthorDate: Fri Mar 12 11:00:10 2021 +0900

    LUCENE-9834: Adjast logo/colors in the Luke About dialog
---
 .../components/dialog/menubar/AboutDialogFactory.java   |  12 ++++++++----
 .../apache/lucene/luke/app/desktop/img/lucene-logo.gif  | Bin 206 -> 0 bytes
 .../apache/lucene/luke/app/desktop/img/lucene-logo.png  | Bin 0 -> 77537 bytes
 3 files changed, 8 insertions(+), 4 deletions(-)

diff --git a/lucene/luke/src/java/org/apache/lucene/luke/app/desktop/components/dialog/menubar/AboutDialogFactory.java b/lucene/luke/src/java/org/apache/lucene/luke/app/desktop/components/dialog/menubar/AboutDialogFactory.java
index 0ac4777..94c9a11 100644
--- a/lucene/luke/src/java/org/apache/lucene/luke/app/desktop/components/dialog/menubar/AboutDialogFactory.java
+++ b/lucene/luke/src/java/org/apache/lucene/luke/app/desktop/components/dialog/menubar/AboutDialogFactory.java
@@ -95,19 +95,24 @@ public final class AboutDialogFactory implements DialogOpener.DialogFactory {
   }
 
   private JPanel header() {
+    Color luceneColor = Color.decode("#019B8F");
     JPanel panel = new JPanel(new GridLayout(3, 1));
     panel.setOpaque(false);
 
     JPanel logo = new JPanel(new FlowLayout(FlowLayout.CENTER));
     logo.setOpaque(false);
-    logo.add(new JLabel(ImageUtils.createImageIcon("luke-logo.gif", 200, 40)));
+    JLabel logoLbl = new JLabel("Luke");
+    logoLbl.setFont(new Font(logoLbl.getFont().getFontName(), Font.BOLD | Font.ITALIC, 48));
+    logoLbl.setForeground(luceneColor);
+    logo.add(logoLbl);
     panel.add(logo);
 
     JPanel project = new JPanel(new FlowLayout(FlowLayout.CENTER));
     project.setOpaque(false);
-    JLabel projectLbl = new JLabel("Lucene Toolbox Project");
+    project.add(new JLabel(ImageUtils.createImageIcon("lucene-logo.png", 120, 32)));
+    JLabel projectLbl = new JLabel(" Toolbox Project");
     projectLbl.setFont(new Font(projectLbl.getFont().getFontName(), Font.BOLD, 32));
-    projectLbl.setForeground(Color.decode("#5aaa88"));
+    projectLbl.setForeground(luceneColor);
     project.add(projectLbl);
     panel.add(project);
 
@@ -120,7 +125,6 @@ public final class AboutDialogFactory implements DialogOpener.DialogFactory {
     JLabel subTitleLbl = new JLabel("GUI client of the best Java search library Apache Lucene");
     subTitleLbl.setFont(new Font(subTitleLbl.getFont().getFontName(), Font.PLAIN, 20));
     subTitle.add(subTitleLbl);
-    subTitle.add(new JLabel(ImageUtils.createImageIcon("lucene-logo.gif", 100, 15)));
     desc.add(subTitle);
 
     JPanel link = new JPanel(new FlowLayout(FlowLayout.CENTER, 5, 5));
diff --git a/lucene/luke/src/resources/org/apache/lucene/luke/app/desktop/img/lucene-logo.gif b/lucene/luke/src/resources/org/apache/lucene/luke/app/desktop/img/lucene-logo.gif
deleted file mode 100755
index 4b45521..0000000
Binary files a/lucene/luke/src/resources/org/apache/lucene/luke/app/desktop/img/lucene-logo.gif and /dev/null differ
diff --git a/lucene/luke/src/resources/org/apache/lucene/luke/app/desktop/img/lucene-logo.png b/lucene/luke/src/resources/org/apache/lucene/luke/app/desktop/img/lucene-logo.png
new file mode 100644
index 0000000..0e9874f
Binary files /dev/null and b/lucene/luke/src/resources/org/apache/lucene/luke/app/desktop/img/lucene-logo.png differ