How to Set UI Theme in v8.1 Vision Clients

Here is the script I was using. I’ll just deal with what I can do with the components themselves.

def setDarkTheme():
	from java.awt import Color, Dimension
	from javax.swing import UIManager	
	from javax.swing.plaf import ColorUIResource #, FontUIResource, InsetsUIResource, DimensionUIResource	
	from javax.swing import BorderFactory, ImageIcon
	#from javax.swing import JLabel
	#from com.inductiveautomation.ignition.client.images import PathIcon
	black = ColorUIResource(0,0,0)
	white = ColorUIResource(255,255,255)
	green = ColorUIResource(0,217,0)
	blue = ColorUIResource(0,102,255)
	medDarkGrey = ColorUIResource(43,43,43)
	grey = ColorUIResource(213,213,213)
	darkGrey = ColorUIResource(23,23,23)
	
	border = BorderFactory.createLineBorder(darkGrey,2)
	
	# Scroll Bar Properties
	UIManager.put("ArrowButton.arrowColor",blue)
	UIManager.put("ArrowButton.background",darkGrey)
	UIManager.put("ScrollBar.background",darkGrey)
	UIManager.put("ScrollBar.thumbBackground",blue)
	UIManager.put("ScrollBar.thumbBorderColor",darkGrey)		
	
	# Viewport Properties	
	UIManager.put("Viewport.background",medDarkGrey)
	UIManager.put("Viewport.foreground",green)
	
	# Power Table Properties
	UIManager.put("Table.scrollPaneBorder",border)
	UIManager.put("Table.gridColor",darkGrey)
	
	# Text Areas and Fields
	UIManager.put("TextArea.background",darkGrey)
	UIManager.put("TextArea.foreground",green)
	UIManager.put("TextArea.border",border)
	
	UIManager.put("TextField.background",medDarkGrey)
	UIManager.put("TextField.inactiveBackground",medDarkGrey)
	UIManager.put("TextField.inactiveForeground",grey)
	UIManager.put("TextField.border",border)
	
	UIManager.put("FormattedTextField.background",medDarkGrey)
	UIManager.put("FormattedTextField.background",medDarkGrey)
	
	# Check Box Properties
	#cbIcon = JLabel(ImageIcon("Builtin/icons/16/check2.png"))
	#UIManager.put("CheckBox.icon",cbIcon)
	#LookAndFeel.installColors(JCheckBox, black, blue)

	# Drop Downs ( combo boxes )	
	UIManager.put("ComboBox.background",medDarkGrey)
	UIManager.put("ComboBox.foreground",green)

	# Lists
	UIManager.put("List.background",medDarkGrey)
	UIManager.put("List.foreground",green)
	
	# Editor Pane
	UIManager.put("EditorPane.border",border)
	UIManager.put("MenuBar.highlight",blue)	
	
	# Password Fields
	UIManager.put("PasswordField.background",medDarkGrey)
	UIManager.put("PasswordField.border",border)
	UIManager.put("PasswordField.foreground",green)	
	
	# Labels
	UIManager.put("Label.foreground",green)	
	UIManager.put("Label.disabledForeground",grey)
	UIManager.put("Label.disabledForeground",grey)
	
	# Toggle Buttons
	# UIManager.put("ToggleButton.background",medDarkGrey)	
	# UIManager.put("ToggleButton.background",blue)
	UIManager.put("Panel.foreground",green)