Skip to content
This repository was archived by the owner on Jul 22, 2024. It is now read-only.

Commit ca04c8f

Browse files
committed
Changed fonts to look better on linux
1 parent bc096cb commit ca04c8f

File tree

3 files changed

+13
-13
lines changed

3 files changed

+13
-13
lines changed

ClassySharkWS/src/com/google/classyshark/gui/panel/displayarea/DisplayArea.java

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -164,20 +164,20 @@ public void displaySearchResults(List<String> filteredClassNames,
164164
List<Translator.ELEMENT> displayedManifestSearchResultsTokens,
165165
String textFromTypingArea) {
166166
displayDataState = DisplayDataState.CLASSES_LIST;
167-
StyleConstants.setFontSize(style, 18);
167+
StyleConstants.setFontSize(style, 20);
168168
StyleConstants.setForeground(style, theme.getIdentifiersColor());
169169

170170
clearText();
171171

172172
Document doc = new DefaultStyledDocument();
173173
jTextPane.setDocument(doc);
174174

175-
StyleConstants.setFontSize(style, 18);
175+
StyleConstants.setFontSize(style, 20);
176176
StyleConstants.setBackground(style, theme.getBackgroundColor());
177177

178178
fillTokensToDoc(displayedManifestSearchResultsTokens, doc, true);
179179

180-
StyleConstants.setFontSize(style, 18);
180+
StyleConstants.setFontSize(style, 20);
181181
StyleConstants.setForeground(style, theme.getIdentifiersColor());
182182
StyleConstants.setBackground(style, theme.getBackgroundColor());
183183

@@ -206,7 +206,7 @@ public void displaySearchResults(List<String> filteredClassNames,
206206
public void displayClassNames(List<String> classNamesToShow,
207207
String inputText) {
208208

209-
StyleConstants.setFontSize(style, 18);
209+
StyleConstants.setFontSize(style, 20);
210210
StyleConstants.setForeground(style, theme.getIdentifiersColor());
211211
StyleConstants.setBackground(style, theme.getBackgroundColor());
212212

@@ -260,7 +260,7 @@ private void displayAllClassesNames(List<String> classNames) {
260260
long start = System.currentTimeMillis();
261261

262262
displayDataState = DisplayDataState.CLASSES_LIST;
263-
StyleConstants.setFontSize(style, 18);
263+
StyleConstants.setFontSize(style, 20);
264264
StyleConstants.setForeground(style, theme.getIdentifiersColor());
265265

266266
clearText();
@@ -298,7 +298,7 @@ public void displayClass(String classString) {
298298
}
299299

300300
clearText();
301-
StyleConstants.setFontSize(style, 18);
301+
StyleConstants.setFontSize(style, 20);
302302

303303
Document doc = new DefaultStyledDocument();
304304

@@ -319,7 +319,7 @@ public void displayClass(String classString) {
319319
public void displayClass(List<Translator.ELEMENT> elements, String key) {
320320
displayDataState = DisplayDataState.INSIDE_CLASS;
321321
clearText();
322-
StyleConstants.setFontSize(style, 18);
322+
StyleConstants.setFontSize(style, 20);
323323
StyleConstants.setBackground(style, theme.getBackgroundColor());
324324

325325
Document doc = new DefaultStyledDocument();
@@ -426,8 +426,8 @@ public void displaySharkey() {
426426

427427
try {
428428
StyleConstants.setForeground(style, theme.getIdentifiersColor());
429-
StyleConstants.setFontSize(style, 13);
430-
StyleConstants.setFontFamily(style, "Menlo");
429+
StyleConstants.setFontSize(style, 15);
430+
StyleConstants.setFontFamily(style, "Monospaced");
431431

432432
doc.insertString(doc.getLength(), Doodle.get(), style);
433433
} catch (BadLocationException e) {
@@ -447,8 +447,8 @@ public void displayError() {
447447

448448
try {
449449
StyleConstants.setForeground(style, theme.getDefaultColor());
450-
StyleConstants.setFontSize(style, 13);
451-
StyleConstants.setFontFamily(style, "Menlo");
450+
StyleConstants.setFontSize(style, 15);
451+
StyleConstants.setFontFamily(style, "Monospaced");
452452

453453
doc.insertString(doc.getLength(), "\n\n\n\t\t\t There was a problem loading the class ", style);
454454
doc.insertString(doc.getLength(), Doodle.get(), style);

ClassySharkWS/src/com/google/classyshark/gui/panel/methodscount/MethodsCountPanel.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ private void setup() {
7272

7373
DefaultTreeCellRenderer cellRenderer = (DefaultTreeCellRenderer) jTree.getCellRenderer();
7474

75-
cellRenderer.setFont(new Font("Menlo", Font.PLAIN, 18));
75+
cellRenderer.setFont(new Font("Monospaced", Font.PLAIN, 20));
7676
jTree.setCellRenderer(cellRenderer);
7777
jTree.addTreeSelectionListener(new TreeSelectionListener() {
7878
@Override

ClassySharkWS/src/com/google/classyshark/gui/panel/tree/FilesTree.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ public Component getJTree() {
208208
private void configureJTree(final JTree jTree) {
209209
jTree.setRootVisible(false);
210210
DefaultTreeCellRenderer cellRenderer = (DefaultTreeCellRenderer) jTree.getCellRenderer();
211-
cellRenderer.setFont(new Font("Menlo", Font.PLAIN, 18));
211+
cellRenderer.setFont(new Font("Monospaced", Font.PLAIN, 20));
212212
jTree.getSelectionModel().setSelectionMode(TreeSelectionModel.SINGLE_TREE_SELECTION);
213213
jTree.addTreeSelectionListener(new TreeSelectionListener() {
214214
@Override

0 commit comments

Comments
 (0)