this repo has no description
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

use macOS menu bar and transparent title bar

+18
+9
src/main/java/app/Environment.java
··· 241 241 Logger.setDefaultOuputPriority(logDetails ? Priority.DETAIL : Priority.STANDARD); 242 242 243 243 if (!isCommandLine) { 244 + System.setProperty("apple.laf.useScreenMenuBar", "true"); 245 + System.setProperty("apple.awt.application.name", "Star Rod"); 246 + System.setProperty("apple.awt.application.appearance", "system"); 247 + 248 + //FlatLaf.setGlobalExtraDefaults(Collections.singletonMap("@accentColor", "#3bff6c")); 249 + 244 250 Themes.setThemeByKey(Environment.mainConfig.getString(Options.Theme)); 251 + 245 252 // UIManager.put("TabbedPane.tabWidthMode", "compact"); 246 253 // UIManager.put("TabbedPane.showTabSeparators", true); 247 254 // UIManager.put("TabbedPane.tabSeparatorsFullHeight", true); 248 255 UIManager.put("SplitPaneDivider.style", "plain"); 256 + UIManager.put("Component.arrowType", "chevron"); 257 + UIManager.put("Component.focusWidth", 1); 249 258 250 259 if (fromJar && gitBuildTag != null && mainConfig.getBoolean(Options.CheckForUpdates)) 251 260 checkForUpdate();
+9
src/main/java/app/StarRodFrame.java
··· 1 1 package app; 2 2 3 + import com.formdev.flatlaf.util.SystemInfo; 3 4 import javax.swing.JFrame; 4 5 5 6 public class StarRodFrame extends JFrame ··· 9 10 super(); 10 11 11 12 reloadIcon(); 13 + setTransparentTitleBar(true); 12 14 } 13 15 14 16 public StarRodFrame(String title) ··· 16 18 super(title); 17 19 18 20 reloadIcon(); 21 + setTransparentTitleBar(true); 19 22 } 20 23 21 24 public void reloadIcon() 22 25 { 23 26 setIconImage(Environment.getDefaultIconImage()); 27 + } 28 + 29 + public void setTransparentTitleBar(boolean transparent) 30 + { 31 + if (SystemInfo.isMacFullWindowContentSupported) 32 + getRootPane().putClientProperty("apple.awt.transparentTitleBar", transparent); 24 33 } 25 34 }