📄 theme.java
字号:
/* * Fire (Flexible Interface Rendering Engine) is a set of graphics widgets for creating GUIs for j2me applications. * Copyright (C) 2006-2008 Bluevibe (www.bluevibe.net) * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * */package gr.fire.core;import javax.microedition.lcdui.Font;import javax.microedition.lcdui.Image;/** * A class that extends Theme can control the look and feel of Fire Components. * * @author padeler */public class Theme{ public int softKeyFgColor = 0x00000000; public int softKeyBgColor = 0xFFFFFFFF; public Font softKeyFont = Font.getFont(Font.FACE_SYSTEM, Font.STYLE_PLAIN, Font.SIZE_SMALL); /** * The size of a scrollbar in pixels. The scroll bar is part of the decoration (right or bottom) and it's size * should be always smaller than the corresponding size of the border it is drawn on. */ public int scrollSize=4; // size (width) of the scrollbar in pixels public int scrollLenght=15; // lenght of the scrollbar in pixels public int decorTop=softKeyFont.getHeight(),decorBottom=softKeyFont.getHeight()+scrollSize,decorLeft=0,decorRight=0; // size of the decorations (pixels) public int decorLeftColor=0xFFFFFFFF; public int decorRightColor=0xFFFFFFFF; public int decorTopColor=0xFFFFFFFF; public int decorBottomColor=0xFFFFFFFF; public int logoPossition=FireScreen.RIGHT; /* Default Theme Data */ public int selectedLinkColor=0x00FFFFFF; public int linkColor=0x000000FF; public int selectedLinkBgColor=0x000000FF; public int labelColor=0x00000000; public int defaultColor=0x00000000; public int primaryFillColor=0x00FFFFFF; public int secondaryFillColor=0x00000000; public int borderColor=0x00000000; public int pointerColor=0x00FFFFFF; public int secondaryPointerColor=0x00000000; public int tooltipFgColor=0x00000000; public int tooltipBgColor=0x00FFFFFF; public int scrollColor=0x00FF0000; public int rulerColor1=0x00FFFFFF; public int rulerColor2=0x00000000; public int scrollRulerColor1=0x00FFFFFF; public int scrollRulerColor2=0x00000000; public int scrollRulerColor3=0x00000000; public int bgImageHorizontalOrientation=FireScreen.CENTER; public int bgImageVerticalOrientation=FireScreen.VCENTER; public int componentBackgroundColor=0x00FFFFFF; public int componentForegroundColor=0x00000000; public final Font labelFont = Font.getDefaultFont(); public final Font popupFont = Font.getDefaultFont(); public final Font defaultFont = Font.getDefaultFont(); public Theme() { } /** * * Returns a new instance of the correct animation for the given Component class and event type. * @param componentClass * @param event * @return * */ public Animation getAnimationFor(Class componentClass,String event) { return null; } public Image getLogo(){ return null;} public Image getDecorTopTexture(){ return null;} public Image getDecorBottomTexture(){ return null;} public Image getDecorLeftTexture(){ return null;} public Image getDecorRightTexture(){ return null;}}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -