package com.topsun.posclient.common.ui.utils; import org.eclipse.swt.graphics.Color; import org.eclipse.swt.widgets.Display; public class ThemeUtils { private static ThemeUtils instance = new ThemeUtils(); private ThemeUtils(){} static Color tableBackGroud = new Color(Display.getCurrent(),192,192,192);//57,62,63 static Color backgroundColor = new Color(Display.getCurrent(),168,205,217); static Color[] bg = new Color[]{new Color(null, 210,249,251), new Color(null, 251,253,166)}; static Color[] force = new Color[]{new Color(null, 0,0,0), new Color(null, 0,0,0)}; public static ThemeUtils getCurrent(){ if(instance == null){ instance = new ThemeUtils(); } return instance; } public Color getTableBackGround(){ return tableBackGroud; } public Color[] getTableCellBg(){ return bg; } public Color[] getTableCellForce(){ return force; } public Color getBackGroundColor(){ return backgroundColor; } }