📄 redtheme.java
字号:
package org.j4me.examples.ui.themes;
import org.j4me.ui.*;
/**
* A red on white theme.
*/
public class RedTheme
extends Theme
{
/**
* @see Theme#getBackgroundColor()
*/
public int getBackgroundColor ()
{
return WHITE;
}
/**
* @see Theme#getFontColor()
*/
public int getFontColor ()
{
return MAROON;
}
/**
* @see Theme#getBorderColor()
*/
public int getBorderColor ()
{
return MAROON;
}
/**
* @see Theme#getHighlightColor()
*/
public int getHighlightColor ()
{
return LIGHT_RED;
}
/**
* @see Theme#getMenuBarBackgroundColor()
*/
public int getMenuBarBackgroundColor ()
{
return MAROON;
}
/**
* @see Theme#getMenuBarHighlightColor()
*/
public int getMenuBarHighlightColor ()
{
return RED;
}
/**
* @see Theme#getMenuBarBorderColor()
*/
public int getMenuBarBorderColor ()
{
return WHITE;
}
/**
* @see Theme#getMenuFontColor()
*/
public int getMenuFontColor ()
{
return WHITE;
}
/**
* @see Theme#getMenuFontHighlightColor()
*/
public int getMenuFontHighlightColor ()
{
return SILVER;
}
/**
* @see Theme#getTitleBarBackgroundColor()
*/
public int getTitleBarBackgroundColor ()
{
return MAROON;
}
/**
* @see Theme#getTitleBarHighlightColor()
*/
public int getTitleBarHighlightColor ()
{
return RED;
}
/**
* @see Theme#getTitleBarBorderColor()
*/
public int getTitleBarBorderColor ()
{
return MAROON;
}
/**
* @see Theme#getTitleFontColor()
*/
public int getTitleFontColor ()
{
return WHITE;
}
/**
* @see Theme#getScrollbarBackgroundColor()
*/
public int getScrollbarBackgroundColor ()
{
return MAROON;
}
/**
* @see Theme#getScrollbarHighlightColor()
*/
public int getScrollbarHighlightColor ()
{
return SILVER;
}
/**
* @see Theme#getScrollbarBorderColor()
*/
public int getScrollbarBorderColor ()
{
return MAROON;
}
/**
* @see Theme#getScrollbarTrackbarColor()
*/
public int getScrollbarTrackbarColor ()
{
return RED;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -