📄 polish.css
字号:
/** * The polish.css files contains all * design information about a project. * It can be adjusted for specific devices * or device groups by putting it in the * appropriate sub-folder. * If you want to adjust a design for all * Nokia devices, define it in "resources/Nokia/polish.css" * and so on. Only new and different settings * need to be specified in such polish.css files. *//** * the colors which are defined in * the colors section can later be referenced. * This makes changes easy, since the color * just needs to be changed in one position. * Even default colors (like blue, green, lime, etc) * can be changed here. */colors { bgColor: rgb(132,143,96); brightBgColor: rgb(238,241,229); translucentBgColor: argb(130, 238,241,229); brightFontColor: rgb(238,241,229); fontColor: rgb( 30, 85, 86 );}/** * the menu style is a predefined style for * designing the fullscreen-menu. * The font-settings (font-color, * font-face, font-style and font-size) * are used to design the menu-texts * (like Options, Select, or Cancel). * With the focused-style attribute * another style than the default "focused" * style is used for the menu. * The menubar-color can be set to any * color. When "transparent" is used, * the background shines through. */menu { margin-left: 2; padding: 2; background { type: round-rect; color: brightBgColor; border-width: 2; border-color: bgColor; } focused-style: .menuFocused; font-color: brightFontColor; font-style: bold; menubar-color: bgColor; view-type: slide-up;}/** * The menuItem style is a predefined style * for the actual commands in a fullscreen-menu. * When the menuItem style is not defined, * the menu style will be used instead. */menuItem { margin-top: 2; padding: 2; padding-left: 5; font { color: fontColor; size: medium; style: bold; } layout: left;}/** * This is a custom style for selected * menu items. It is used, because it has * been defined in the menu style. */.menuFocused extends .menuItem { background-color: bgColor; font-color: brightFontColor; layout: left | horizontal-expand;}/** * The title style is a predefined style which is used * for all screen-titles. */title { padding: 2; margin-top: 0; margin-bottom: 5; margin-left: 0; margin-right: 0; font-face: proportional; font-size: large; font-style: bold; font-color: brightFontColor; background-color: bgColor; border: none; layout: horizontal-center | horizontal-expand;}/** * The focused style is a predefined style which * is used by lists, forms, choice-groups and so on. * This style will be used for highlighting the currently * focused item. */focused { padding: 5; background { type: round-rect; arc: 8; color: brightBgColor; border-color: fontColor; border-width: 2; } font { style: bold; color: fontColor; size: small; } layout: expand | center; }/** * The .mainScreen style is a static style, which * is set in the MIDlet source-code with the //#style directive. * If the source-code would not have defined this * style, we could use the dynamic style "list" to design all * list-screens. * An interesting attribute is the "columns" attribute which * is used to use a table with two columns instead of the default * layout. */.mainScreen { padding: 5; padding-left: 10; padding-right: 10; padding-vertical: 10; background { color: brightBgColor; } layout: horizontal-expand | horizontal-center | vertical-center; view-type: carrousel; focused-style: .mainScreenFocused; /* columns: 2; columns-width: equal; show-text-in-title: true; */}.mainScreenFocused extends focused { background: none; layout: center; max-width: 100;}/** * The .mainCommand style is also a static style, which * is set in the MIDlet source-code with the //#style directive. * If the source-code would not have defined this * style, we could use the dynamic style "listitem" to design all * items on the list-screens. * An interesting attribute is the "icon-image" URL, which uses * the %INDEX% keyword. The first list-item will use the image * "icon0.png", the second "icon1.png" and so on. */.mainCommand { margin: 2; /* for the missing border of the focused style */ padding: 5; background: none; font-color: fontColor; font-style: bold; font-size: small; layout: center | expand; max-width: 100; icon-image: url( icon%INDEX%.png ); icon-image-align: top;}alert extends .mainScreen {}alertcontent { font-color: fontColor; font-size: small; font-style: bold;}.loadGameAlert { margin: 20; padding: 5; padding-left: 15; padding-right: 15; layout: horizontal-expand | horizontal-center | vertical-center; background-color: argb( 150, 255, 255, 255 ); /*translucentBgColor; */ show-dismiss-command: false;}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -