Package org.omegat.util.gui
Class UIDesignManager
java.lang.Object
org.omegat.util.gui.UIDesignManager
UI Design Manager.
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic voidaddMenuUIPreference(IMenuPreferece menuUIPreference) static voidensureDockablesVisible(com.vlsolutions.swing.docking.DockingDesktop desktop) Ensure that any "closed" Dockables are made visible.static com.vlsolutions.swing.docking.DockingDesktopTraverse the given container's parents until either an instance of DockingDesktop is found, or null is found.static List<IMenuPreferece>static voidInitialize a docking subsystem.static booleanisDarkTheme(UIDefaults uiDefaults) Heuristic detection of dark theme.static voidloadDefaultAppDarkColors(UIDefaults uiDefaults) static voidloadDefaultAppLightColors(UIDefaults uiDefaults) static voidloadDefaultColors(UIDefaults uiDefaults) Load application default colorsstatic voidRemoves first, last and duplicate separators from menu.static voidLoad and set theme.static voidsetTheme(String lafClassName, ClassLoader classLoader) Load and set theme.
-
Field Details
-
toolbarClassID
- See Also:
-
THEME_FOLLOW_OS_COLOR_DEFAULT
- See Also:
-
DARK_CLASS_NAME_DEFAULT
- See Also:
-
LIGHT_CLASS_NAME_DEFAULT
- See Also:
-
Method Details
-
addMenuUIPreference
-
getMenuUIPreferences
-
setTheme
Load and set theme.- Parameters:
lafClassName- LookAndFeel full qualified class name.classLoader- class loader to use.
-
setTheme
Load and set theme.- Parameters:
lafClassName- LookAndFeel full qualified class name.
-
initialize
Initialize a docking subsystem.- Throws:
IOException
-
removeUnusedMenuSeparators
Removes first, last and duplicate separators from menu. -
ensureDockablesVisible
public static void ensureDockablesVisible(com.vlsolutions.swing.docking.DockingDesktop desktop) Ensure that any "closed" Dockables are made visible. -
getDesktop
Traverse the given container's parents until either an instance of DockingDesktop is found, or null is found.- Parameters:
c- The container to search- Returns:
- Either the parent DockingDesktop, or null
-
isDarkTheme
Heuristic detection of dark theme.isDarkTheme method derived from NetBeans licensed by Apache-2.0
- Returns:
- true when dark theme, otherwise false.
-
loadDefaultColors
Load application default colors- Throws:
IOException
-
loadDefaultAppDarkColors
- Throws:
IOException
-
loadDefaultAppLightColors
- Throws:
IOException
-