├── README.md └── united_backend_theme ├── __init__.py ├── __openerp__.py ├── images ├── partner.png ├── project.png └── sales.png ├── static ├── description │ └── icon.png └── src │ ├── js │ └── toggle_leftbar.js │ └── less │ ├── bootswatch.less │ ├── style.less │ └── variables.less └── views.xml /README.md: -------------------------------------------------------------------------------- 1 | Odoo Themes 2 | -------------------------------------------------------------------------------- /united_backend_theme/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Openworx/themes/3e022892f1d510d7b503eb1d7e78186706ccbf02/united_backend_theme/__init__.py -------------------------------------------------------------------------------- /united_backend_theme/__openerp__.py: -------------------------------------------------------------------------------- 1 | { 2 | 'name' : 'United Backend Theme for Odoo 9c', 3 | 'version' : '0.3', 4 | 'author' : 'Openworx', 5 | 'category' : 'Website', 6 | 'summary': 'Give Odoo 9 community version a cleaner backend theme', 7 | 'website' : 'http://www.openworx.nl', 8 | 'description': """ 9 | Give Odoo 9 community version a cleaner theme, based on Bootstrap United template. The theme has also some css fixes for Microsoft Internet Explorer 11. 10 | """, 11 | 'images':[ 12 | 'images/sales.png' 13 | ], 14 | 'depends' : ['base'], 15 | 'data':[ 16 | 'views.xml', 17 | ], 18 | 'installable': True 19 | } 20 | -------------------------------------------------------------------------------- /united_backend_theme/images/partner.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Openworx/themes/3e022892f1d510d7b503eb1d7e78186706ccbf02/united_backend_theme/images/partner.png -------------------------------------------------------------------------------- /united_backend_theme/images/project.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Openworx/themes/3e022892f1d510d7b503eb1d7e78186706ccbf02/united_backend_theme/images/project.png -------------------------------------------------------------------------------- /united_backend_theme/images/sales.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Openworx/themes/3e022892f1d510d7b503eb1d7e78186706ccbf02/united_backend_theme/images/sales.png -------------------------------------------------------------------------------- /united_backend_theme/static/description/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Openworx/themes/3e022892f1d510d7b503eb1d7e78186706ccbf02/united_backend_theme/static/description/icon.png -------------------------------------------------------------------------------- /united_backend_theme/static/src/js/toggle_leftbar.js: -------------------------------------------------------------------------------- 1 | $(document).ready(function () { 2 | $(".toggle_leftmenu").click(function() { 3 | $(".oe_leftbar").animate({ 4 | width: 'toggle' 5 | }, 0); 6 | }); 7 | }); 8 | -------------------------------------------------------------------------------- /united_backend_theme/static/src/less/bootswatch.less: -------------------------------------------------------------------------------- 1 | // United 3.3.5 2 | // Bootswatch 3 | // ----------------------------------------------------- 4 | 5 | @import url("https://fonts.googleapis.com/css?family=Ubuntu:400,700"); 6 | 7 | // Navbar ===================================================================== 8 | 9 | .navbar { 10 | 11 | &-default { 12 | 13 | .badge { 14 | background-color: #fff; 15 | color: @navbar-default-bg; 16 | } 17 | } 18 | 19 | &-inverse { 20 | 21 | .badge { 22 | background-color: #fff; 23 | color: @navbar-inverse-bg; 24 | } 25 | } 26 | } 27 | 28 | @media (max-width: @grid-float-breakpoint-max) { 29 | 30 | .navbar { 31 | 32 | .dropdown-menu { 33 | a { 34 | color: #fff; 35 | } 36 | } 37 | } 38 | } 39 | 40 | 41 | // Buttons ==================================================================== 42 | 43 | // Typography ================================================================= 44 | 45 | // Tables ===================================================================== 46 | 47 | // Forms ====================================================================== 48 | 49 | // Navs ======================================================================= 50 | 51 | // Indicators ================================================================= 52 | 53 | // Progress bars ============================================================== 54 | 55 | // Containers ================================================================= -------------------------------------------------------------------------------- /united_backend_theme/static/src/less/style.less: -------------------------------------------------------------------------------- 1 | // Put Loading indicator in the right bottom of the screen 2 | .o_web_client .openerp .oe_loading { 3 | background-color: darken(@brand-primary, 13.5%) !important; 4 | top: inherit; 5 | bottom: 0; 6 | right: 0; 7 | padding: 5px 50px; 8 | border-radius: 0 !important; 9 | opacity: 0.8; 10 | } 11 | // Left Menu Bar ========================================= 12 | 13 | // Toggle left menu bar 14 | .ul_toggle_leftmenu { 15 | padding-left: 0px; 16 | list-style: outside none none; 17 | list-style-type: none; 18 | list-style-image: none; 19 | list-style-position: outside; 20 | margin-bottom: 0px !important; 21 | max-width: 50px; 22 | } 23 | .toggle_leftmenu { 24 | color: #FFF !important; 25 | padding: 14px 14px; 26 | } 27 | .toggle_leftmenu:hover { 28 | color: #FFF !important; 29 | cursor: pointer; 30 | background-color: darken(@brand-primary, 13.5%); 31 | } 32 | 33 | // Change font & color leftbar 34 | .openerp .oe_leftbar .oe_secondary_menus_container { 35 | font-family: Ubuntu; 36 | } 37 | 38 | .openerp .oe_secondary_menu_section { 39 | color: @brand-primary; 40 | } 41 | 42 | .openerp .oe_secondary_menu_section > .oe_menu_leaf { 43 | color: @brand-primary; 44 | } 45 | 46 | .openerp .nav-pills > li.active > a, .openerp a.list-group-item.active > a { 47 | background-color: @brand-primary !important; 48 | } 49 | 50 | // White background 51 | .openerp .oe_leftbar { 52 | background: #ffffff none repeat scroll 0 0 !important; 53 | } 54 | 55 | // Leftbar notifications 56 | .openerp .badge { 57 | background-color: @brand-primary; 58 | } 59 | 60 | // Navbar ========================================= 61 | #oe_main_menu_navbar { 62 | .box-shadow(0px 0px 8px #666666); 63 | border: none; 64 | .navbar-collapse { 65 | padding-right: 16px; 66 | padding-left: 16px; 67 | } 68 | } 69 | 70 | #oe_main_menu_navbar, 71 | .navbar-nav { 72 | li { 73 | a, button { 74 | font-size: 14px !important; 75 | padding: 14px 10px !important; 76 | margin-top: 0 !important; 77 | line-height: 21px !important; 78 | } 79 | } 80 | .dropdown-menu { 81 | li { 82 | a, button { 83 | padding: 4px 10px !important; 84 | font-size: 14px !important; 85 | } 86 | } 87 | } 88 | } 89 | 90 | // Align green progress indicator 91 | #oe_main_menu_navbar .o_planner_systray > .progress { 92 | margin-top: 18px !important; 93 | } 94 | 95 | // Add some space in button groups 96 | //.btn-group > .btn, .btn-group-vertical > .btn { 97 | // float: left; 98 | // margin: 3px; 99 | // position: relative; 100 | //} 101 | 102 | // ========================================= 103 | // Make formwidth relative to screen 104 | .openerp .oe_form_sheet_width { 105 | max-width: 90%; 106 | } 107 | 108 | // Explorer 11 fix to use fullscreen 109 | 110 | @media all and (-ms-high-contrast: none), (-ms-high-contrast: active) { 111 | 112 | .oe-view-manager-view-kanban, .oe-view-manager-view-form, .oe-view-manager-view-list, .oe-view-manager-view-calendar, .oe-view-manager-view-pivot, .oe-view-manager-view-graph { 113 | width: 100% !important; 114 | } 115 | 116 | // Fix user preference height 117 | .modal .modal-content .modal-body .oe-view-manager-content { 118 | position: static; 119 | height: 400px; 120 | } 121 | 122 | // Fix salesboard width 123 | .oe-view-manager-view-sales_team_dashboard { 124 | width: 100%; 125 | } 126 | 127 | } 128 | 129 | 130 | 131 | 132 | -------------------------------------------------------------------------------- /united_backend_theme/static/src/less/variables.less: -------------------------------------------------------------------------------- 1 | // United 3.3.5 2 | // Variables 3 | // -------------------------------------------------- 4 | 5 | 6 | //== Colors 7 | // 8 | //## Gray and brand colors for use across Bootstrap. 9 | 10 | @gray-base: #000; 11 | @gray-darker: lighten(@gray-base, 13.5%); // #222 12 | @gray-dark: #333; // #333 13 | @gray: #777; // #555 14 | @gray-light: #AEA79F; // #999 15 | @gray-lighter: lighten(@gray-base, 93.5%); // #eee 16 | 17 | //@brand-primary: #772953; 18 | @brand-primary: #337AB7; 19 | @brand-success: #38B44A; 20 | @brand-info: #337AB7; // same color als primary 21 | @brand-warning: #EFB73E; 22 | @brand-danger: #DF382C; 23 | 24 | 25 | //== Scaffolding 26 | // 27 | //## Settings for some of the most global styles. 28 | 29 | //** Background color for `
`. 30 | @body-bg: #fff; 31 | //** Global text color on ``. 32 | @text-color: @gray-dark; 33 | 34 | //** Global textual link color. 35 | @link-color: @brand-primary; 36 | //** Link hover color set via `darken()` function. 37 | @link-hover-color: darken(@link-color, 15%); 38 | //** Link hover decoration. 39 | @link-hover-decoration: underline; 40 | 41 | 42 | //== Typography 43 | // 44 | //## Font, line-height, and color for body text, headings, and more. 45 | 46 | @font-family-sans-serif: "Ubuntu", Tahoma, "Helvetica Neue", Helvetica, Arial, sans-serif; 47 | @font-family-serif: Georgia, "Times New Roman", Times, serif; 48 | //** Default monospace fonts for ``, ``, and ``.
49 | @font-family-monospace: Menlo, Monaco, Consolas, "Courier New", monospace;
50 | @font-family-base: @font-family-sans-serif;
51 |
52 | @font-size-base: 14px;
53 | @font-size-large: ceil((@font-size-base * 1.25)); // ~18px
54 | @font-size-small: ceil((@font-size-base * 0.85)); // ~12px
55 |
56 | @font-size-h1: floor((@font-size-base * 2.6)); // ~36px
57 | @font-size-h2: floor((@font-size-base * 2.15)); // ~30px
58 | @font-size-h3: ceil((@font-size-base * 1.7)); // ~24px
59 | @font-size-h4: ceil((@font-size-base * 1.25)); // ~18px
60 | @font-size-h5: @font-size-base;
61 | @font-size-h6: ceil((@font-size-base * 0.85)); // ~12px
62 |
63 | //** Unit-less `line-height` for use in components like buttons.
64 | @line-height-base: 1.428571429; // 20/14
65 | //** Computed "line-height" (`font-size` * `line-height`) for use with `margin`, `padding`, etc.
66 | @line-height-computed: floor((@font-size-base * @line-height-base)); // ~20px
67 |
68 | //** By default, this inherits from the ``.
69 | @headings-font-family: @font-family-base;
70 | @headings-font-weight: 500;
71 | @headings-line-height: 1.1;
72 | @headings-color: inherit;
73 |
74 |
75 | //== Iconography
76 | //
77 | //## Specify custom location and filename of the included Glyphicons icon font. Useful for those including Bootstrap via Bower.
78 |
79 | //** Load fonts from this directory.
80 | @icon-font-path: "../fonts/";
81 | //** File name for all font files.
82 | @icon-font-name: "glyphicons-halflings-regular";
83 | //** Element ID within SVG icon file.
84 | @icon-font-svg-id: "glyphicons_halflingsregular";
85 |
86 |
87 | //== Components
88 | //
89 | //## Define common padding and border radius sizes and more. Values based on 14px text and 1.428 line-height (~20px to start).
90 |
91 | @padding-base-vertical: 8px;
92 | @padding-base-horizontal: 12px;
93 |
94 | @padding-large-vertical: 14px;
95 | @padding-large-horizontal: 16px;
96 |
97 | @padding-small-vertical: 5px;
98 | @padding-small-horizontal: 10px;
99 |
100 | @padding-xs-vertical: 1px;
101 | @padding-xs-horizontal: 5px;
102 |
103 | @line-height-large: 1.3333333; // extra decimals for Win 8.1 Chrome
104 | @line-height-small: 1.5;
105 |
106 | @border-radius-base: 4px;
107 | @border-radius-large: 6px;
108 | @border-radius-small: 3px;
109 |
110 | //** Global color for active items (e.g., navs or dropdowns).
111 | @component-active-color: #fff;
112 | //** Global background color for active items (e.g., navs or dropdowns).
113 | @component-active-bg: @brand-primary;
114 |
115 | //** Width of the `border` for generating carets that indicator dropdowns.
116 | @caret-width-base: 4px;
117 | //** Carets increase slightly in size for larger components.
118 | @caret-width-large: 5px;
119 |
120 |
121 | //== Tables
122 | //
123 | //## Customizes the `.table` component with basic values, each used across all table variations.
124 |
125 | //** Padding for ``s and ` `s.
126 | @table-cell-padding: 8px;
127 | //** Padding for cells in `.table-condensed`.
128 | @table-condensed-cell-padding: 5px;
129 |
130 | //** Default background color used for all tables.
131 | @table-bg: transparent;
132 | //** Background color used for `.table-striped`.
133 | @table-bg-accent: #f9f9f9;
134 | //** Background color used for `.table-hover`.
135 | @table-bg-hover: #f5f5f5;
136 | @table-bg-active: @table-bg-hover;
137 |
138 | //** Border color for table and cell borders.
139 | @table-border-color: #ddd;
140 |
141 |
142 | //== Buttons
143 | //
144 | //## For each of Bootstrap's buttons, define text, background and border color.
145 |
146 | @btn-font-weight: normal;
147 |
148 | @btn-default-color: #fff;
149 | @btn-default-bg: @gray-light;
150 | @btn-default-border: @btn-default-bg;
151 |
152 | @btn-primary-color: @btn-default-color;
153 | @btn-primary-bg: @brand-primary;
154 | @btn-primary-border: @btn-primary-bg;
155 |
156 | @btn-success-color: @btn-default-color;
157 | @btn-success-bg: @brand-success;
158 | @btn-success-border: @btn-success-bg;
159 |
160 | @btn-info-color: @btn-default-color;
161 | @btn-info-bg: @brand-info;
162 | @btn-info-border: @btn-info-bg;
163 |
164 | @btn-warning-color: @btn-default-color;
165 | @btn-warning-bg: @brand-warning;
166 | @btn-warning-border: @btn-warning-bg;
167 |
168 | @btn-danger-color: @btn-default-color;
169 | @btn-danger-bg: @brand-danger;
170 | @btn-danger-border: @btn-danger-bg;
171 |
172 | @btn-link-disabled-color: @gray-light;
173 |
174 | // Allows for customizing button radius independently from global border radius
175 | @btn-border-radius-base: @border-radius-base;
176 | @btn-border-radius-large: @border-radius-large;
177 | @btn-border-radius-small: @border-radius-small;
178 |
179 |
180 | //== Forms
181 | //
182 | //##
183 |
184 | //** `` background color
185 | @input-bg: #fff;
186 | //** `` background color
187 | @input-bg-disabled: @gray-lighter;
188 |
189 | //** Text color for ``s
190 | @input-color: @text-color;
191 | //** `` border color
192 | @input-border: #ccc;
193 |
194 | // TODO: Rename `@input-border-radius` to `@input-border-radius-base` in v4
195 | //** Default `.form-control` border radius
196 | // This has no effect on `