Skip to content

Commit

Permalink
Update icon
Browse files Browse the repository at this point in the history
  • Loading branch information
Guo Yunhe committed Aug 31, 2016
1 parent 667e581 commit ce5d44b
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 8 deletions.
16 changes: 8 additions & 8 deletions icon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions src/me/guoyunhe/fontweak/MainWindow.form
Original file line number Diff line number Diff line change
Expand Up @@ -527,6 +527,9 @@
<Properties>
<Property name="defaultCloseOperation" type="int" value="3"/>
<Property name="title" type="java.lang.String" value="Fontweak"/>
<Property name="iconImage" type="java.awt.Image" editor="org.netbeans.modules.form.RADConnectionPropertyEditor">
<Connection code="appIcon.getImage()" type="code"/>
</Property>
<Property name="locationByPlatform" type="boolean" value="true"/>
</Properties>
<SyntheticProperties>
Expand Down
4 changes: 4 additions & 0 deletions src/me/guoyunhe/fontweak/MainWindow.java
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
import java.net.URL;
import javax.swing.DefaultComboBoxModel;
import javax.swing.DefaultListModel;
import javax.swing.ImageIcon;
import javax.swing.JOptionPane;
import javax.swing.UIManager;
import javax.swing.table.DefaultTableModel;
Expand All @@ -32,6 +33,7 @@
*/
public class MainWindow extends javax.swing.JFrame {

private final ImageIcon appIcon;
private final FontConfig fontconfig;
private final SystemFontList sysfonts;
private final DefaultListModel<String> matchListModel;
Expand All @@ -44,6 +46,7 @@ public class MainWindow extends javax.swing.JFrame {
* Creates new form MainWindow
*/
public MainWindow() {
appIcon = new ImageIcon(getClass().getResource("img/icon-256.png"));
sysfonts = new SystemFontList();
fontconfig = new FontConfig();
matchListModel = new DefaultListModel<>();
Expand Down Expand Up @@ -290,6 +293,7 @@ public void actionPerformed(java.awt.event.ActionEvent evt) {

setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
setTitle("Fontweak");
setIconImage(appIcon.getImage());
setLocationByPlatform(true);

tabs.setBorder(javax.swing.BorderFactory.createEmptyBorder(10, 5, 5, 5));
Expand Down
Binary file removed src/me/guoyunhe/fontweak/img/subpixel.png
Binary file not shown.

0 comments on commit ce5d44b

Please sign in to comment.