@Override
	public void apply() {
		if (optionsGui != null) {

			Font font = Gui.getFont(DEFAULT_FONT_ID);
			Font newFont = optionsGui.getBaseFont();
			if (!newFont.equals(font)) {
				options.setFont(GhidraOptions.OPTION_BASE_FONT, newFont);
			}

			for (ScreenElement element : OptionsGui.elements) {
				Color guiColor = element.getColor();
				Color optionColor =
					options.getColor(element.getColorOptionName(), element.getDefaultColor());
				if (!optionColor.equals(guiColor)) {
					options.setColor(element.getColorOptionName(), guiColor);
				}

				int optionStyle = options.getInt(element.getStyleOptionName(), -1);
				int guiStyle = element.getStyle();
				if (optionStyle != guiStyle) {
					options.setInt(element.getStyleOptionName(), guiStyle);
				}
			}

		}
	}
Constructs a new ListingDisplayOptionsEditor.
@param options the options object to edit
Ghidra/Features/Base/src/main/java/ghidra/app/util/viewer/options/ListingDisplayOptionsEditor.java