Home | Trees | Indices | Help |
|
---|
|
1 # Copyright (C) 2012 Vaadin Ltd. 2 # Copyright (C) 2012 Richard Lincoln 3 # 4 # Licensed under the Apache License, Version 2.0 (the "License"); 5 # you may not use this file except in compliance with the License. 6 # You may obtain a copy of the License at 7 # 8 # http://www.apache.org/licenses/LICENSE-2.0 9 # 10 # Unless required by applicable law or agreed to in writing, software 11 # distributed under the License is distributed on an "AS IS" BASIS, 12 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 # See the License for the specific language governing permissions and 14 # limitations under the License. 15 16 from muntjac.ui.themes.base_theme import BaseTheme 17 1820 21 THEME_NAME = 'reindeer' 22 23 # Label styles 24 # 25 # ******************************************************************** 26 27 # Large font for main application headings 28 LABEL_H1 = 'h1' 29 30 # Large font for different sections in the application 31 LABEL_H2 = 'h2' 32 33 # Small and a little lighter font 34 LABEL_SMALL = 'light' 35 36 # @deprecated: Use L{#LABEL_SMALL} instead. 37 LABEL_LIGHT = 'small' 38 39 # Button styles 40 # 41 # ******************************************************************** 42 43 # Default action style for buttons (the button that should get activated 44 # when the user presses 'enter' in a form). Use sparingly, only one default 45 # button per view should be visible. 46 BUTTON_DEFAULT = 'primary' 47 48 # @deprecated: Use L{#BUTTON_DEFAULT} instead 49 BUTTON_PRIMARY = BUTTON_DEFAULT 50 51 # Small sized button, use for context specific actions for example 52 BUTTON_SMALL = 'small' 53 54 # TextField styles 55 # 56 # ******************************************************************** 57 58 # Small sized text field with small font 59 TEXTFIELD_SMALL = 'small' 60 61 # Panel styles 62 # 63 # ******************************************************************** 64 65 # Removes borders and background color from the panel 66 PANEL_LIGHT = 'light' 67 68 # SplitPanel styles 69 # 70 # ******************************************************************** 71 72 # Reduces the split handle to a minimal size (1 pixel) 73 SPLITPANEL_SMALL = 'small' 74 75 # TabSheet styles 76 # 77 # ******************************************************************** 78 79 # Removes borders from the default tab sheet style. 80 TABSHEET_BORDERLESS = 'borderless' 81 82 # Removes borders and background color from the tab sheet, and shows the 83 # tabs as a small bar. 84 TABSHEET_SMALL = 'bar' 85 86 # @deprecated: Use L{#TABSHEET_SMALL} instead. 87 TABSHEET_BAR = TABSHEET_SMALL 88 89 # Removes borders and background color from the tab sheet. The tabs are 90 # presented with minimal lines indicating the selected tab. 91 TABSHEET_MINIMAL = 'minimal' 92 93 # Makes the tab close buttons visible only when the user is hovering over 94 # the tab. 95 TABSHEET_HOVER_CLOSABLE = 'hover-closable' 96 97 # Makes the tab close buttons visible only when the tab is selected. 98 TABSHEET_SELECTED_CLOSABLE = 'selected-closable' 99 100 # Table styles 101 # 102 # ******************************************************************** 103 104 # Removes borders from the table 105 TABLE_BORDERLESS = 'borderless' 106 107 # Makes the table headers dark and more prominent. 108 TABLE_STRONG = 'strong' 109 110 # Layout styles 111 # 112 # ******************************************************************** 113 114 # Changes the background of a layout to white. Applies to 115 # L{VerticalLayout}, L{HorizontalLayout}, L{GridLayout}, 116 # L{FormLayout}, L{CssLayout}, L{VerticalSplitPanel} and 117 # L{HorizontalSplitPanel}. 118 # <p> 119 # <em>Does not revert any contained components back to normal if some 120 # parent layout has style L{#LAYOUT_BLACK} applied.</em> 121 LAYOUT_WHITE = 'white' 122 123 # Changes the background of a layout to a shade of blue. Applies to 124 # L{VerticalLayout}, L{HorizontalLayout}, L{GridLayout}, 125 # L{FormLayout}, L{CssLayout}, L{VerticalSplitPanel} and 126 # L{HorizontalSplitPanel}. 127 # <p> 128 # <em>Does not revert any contained components back to normal if some 129 # parent layout has style L{#LAYOUT_BLACK} applied.</em> 130 LAYOUT_BLUE = 'blue' 131 132 # <p> 133 # Changes the background of a layout to almost black, and at the same time 134 # transforms contained components to their black style correspondents when 135 # available. At least texts, buttons, text fields, selects, date fields, 136 # tables and a few other component styles should change. 137 # </p> 138 # <p> 139 # Applies to L{VerticalLayout}, L{HorizontalLayout}, 140 # L{GridLayout}, L{FormLayout} and L{CssLayout}. 141 # </p> 142 LAYOUT_BLACK = 'black' 143 144 # Window styles 145 # 146 # ******************************************************************** 147 148 # Makes the whole window white and increases the font size of the title. 149 WINDOW_LIGHT = 'light' 150 151 # Makes the whole window black, and changes contained components in the 152 # same way as L{#LAYOUT_BLACK} does. 153 WINDOW_BLACK = 'black'154
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Fri Jun 5 20:45:18 2015 | http://epydoc.sourceforge.net |