The comment tag for customizing colors is BLACKBERRY_CUSTOMIZATION_POINT_COLORS. There are a few places where you can change colors.
These steps provide an example of how to change the colors of different Hybrid Web Container components.
public void drawListRow(ListField listField, Graphics graphics, int index, int y, int width) { // y parameter is already offset to center text int iOffset = (listField.getRowHeight() - getFont().getHeight()) >> 1; HybridApp oApp = ( HybridApp ) m_oApps.elementAt( index ); if( listField.getSelectedIndex() == index ) { graphics.setColor( Color.ORANGE ); } else { graphics.setColor( Color.BLACK ); } graphics.fillRect( 0, y - iOffset, width, listField.getRowHeight() + y - iOffset ); final int iMargin = 2; // Draw image EncodedImage oImage = EncodedImage.getEncodedImageResource( "ampicon" + oApp.getIconIndex() + ".png"); Bitmap oBitmap = oImage.getBitmap(); graphics.drawBitmap( iMargin, y - iOffset + ( listField.getRowHeight() -oBitmap.getHeight() ) / 2, oBitmap.getWidth(), oBitmap.getHeight(), oBitmap, 0, 0); // Draw text graphics.drawText( oApp.getDisplayName(), 2 * iMargin + oBitmap.getWidth(), y ); }
// Draw text if( listField.getSelectedIndex() == index ) { graphics.setColor( Color.BLACK ); } else { graphics.setColor( Color.WHITE ); } graphics.drawText( oApp.getDisplayName(), 2 * iMargin + oBitmap.getWidth(), y );
import net.rim.device.api.ui.decor.Background; import net.rim.device.api.ui.decor.BackgroundFactory;
Background bg = BackgroundFactory.createSolidBackground( Color.BLACK ); this.getMainManager().setBackground( bg );
// Connection Header m_oConnection = null; m_oConnection = new LabelField( m_res.getString( HybridWebContainerResource.IDS_CONNECTION ), Field.FIELD_HCENTER ) { public void paint(Graphics g){ g.setColor( Color.BLACK ); g.fillRect( 0, 0, getWidth(), getHeight() ); g.setColor( Color.WHITE ); super.paint( g ); } };