Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
44 changed files
with
1,764 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
import color_theme | ||
import user_theme |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
{ | ||
'name': 'Color Theme', | ||
'version': '1.0', | ||
'category': 'Tools', | ||
'author': 'K-Omran', | ||
'description': """ | ||
This module allows user to easily change OpenERP color theme. | ||
============================================================= | ||
This module allows user To define new color theme and save it for future use.\n | ||
Each user can select any stored color theme as his theme\n | ||
and also can make his own theme.\n | ||
""", | ||
|
||
'depends': ['base', 'web', ], | ||
'data': ['security/ir.model.access.csv', | ||
'views/color_theme_view.xml', ], | ||
'js': ['static/lib/colorpicker/js/colorpicker.js', | ||
'static/lib/colorpicker/js/eye.js', | ||
'static/lib/colorpicker/js/utils.js', | ||
'static/lib/colorpicker/js/layout.js?ver=1.0.2', | ||
'static/src/js/color_theme.js', ], | ||
|
||
'qweb': [], | ||
'css': ['static/lib/colorpicker/css/colorpicker.css', | ||
'static/lib/colorpicker/css/layout.css', ], | ||
|
||
'web_preload': False, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
from openerp.osv import orm, fields | ||
|
||
|
||
class color_theme(orm.Model): | ||
"""This Model To Store Color Themes To be Selectd Later""" | ||
|
||
_name = 'color.theme' | ||
|
||
_rec_name = 'theme_name' | ||
|
||
_columns = {'theme_name': fields.char('Theme Name', size=128, required=True, ), | ||
|
||
'top_bar_gradient_1': fields.char('Top Bar Gradient First Color', size=6, ), | ||
|
||
'top_bar_gradient_2': fields.char('Top Bar Gradient Second Color', size=6, ), | ||
|
||
'button_gradient_1': fields.char('Button Background Gradient First Color', size=6, ), | ||
|
||
'button_gradient_2': fields.char('Button Background Gradient Second Color', size=6, ), | ||
|
||
'left_bar': fields.char('Left Bar Color', size=6, ), | ||
|
||
'body_font': fields.char('Body Font Color', size=6, ), | ||
|
||
'main_menu_font': fields.char('Main Menu Font Color', size=6, ), | ||
|
||
'sub_menu_font': fields.char('Sub Menu Font Color', size=6, ), | ||
|
||
'top_bar_menu_font': fields.char('Top Bar Menu Font Color', size=6, ), | ||
|
||
'tab_string': fields.char('Tab String Font Color', size=6, ), | ||
|
||
'many2one_font': fields.char('Link Color', size=6, ), | ||
} | ||
|
||
_sql_constraints = [('unique_theme_name', 'unique(theme_name)', 'Theme With The Same Name Already Exists'), ] | ||
|
||
# ============================================================================================== |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink | ||
access_color_theme_all,color theme all,model_color_theme,,1,1,1,1 | ||
access_user_theme_all,user theme all,model_user_theme,,1,1,1,1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,161 @@ | ||
.colorpicker { | ||
width: 356px; | ||
height: 176px; | ||
overflow: hidden; | ||
position: absolute; | ||
background: url(../images/colorpicker_background.png); | ||
font-family: Arial, Helvetica, sans-serif; | ||
display: none; | ||
} | ||
.colorpicker_color { | ||
width: 150px; | ||
height: 150px; | ||
left: 14px; | ||
top: 13px; | ||
position: absolute; | ||
background: #f00; | ||
overflow: hidden; | ||
cursor: crosshair; | ||
} | ||
.colorpicker_color div { | ||
position: absolute; | ||
top: 0; | ||
left: 0; | ||
width: 150px; | ||
height: 150px; | ||
background: url(../images/colorpicker_overlay.png); | ||
} | ||
.colorpicker_color div div { | ||
position: absolute; | ||
top: 0; | ||
left: 0; | ||
width: 11px; | ||
height: 11px; | ||
overflow: hidden; | ||
background: url(../images/colorpicker_select.gif); | ||
margin: -5px 0 0 -5px; | ||
} | ||
.colorpicker_hue { | ||
position: absolute; | ||
top: 13px; | ||
left: 171px; | ||
width: 35px; | ||
height: 150px; | ||
cursor: n-resize; | ||
} | ||
.colorpicker_hue div { | ||
position: absolute; | ||
width: 35px; | ||
height: 9px; | ||
overflow: hidden; | ||
background: url(../images/colorpicker_indic.gif) left top; | ||
margin: -4px 0 0 0; | ||
left: 0px; | ||
} | ||
.colorpicker_new_color { | ||
position: absolute; | ||
width: 60px; | ||
height: 30px; | ||
left: 213px; | ||
top: 13px; | ||
background: #f00; | ||
} | ||
.colorpicker_current_color { | ||
position: absolute; | ||
width: 60px; | ||
height: 30px; | ||
left: 283px; | ||
top: 13px; | ||
background: #f00; | ||
} | ||
.colorpicker input { | ||
background-color: transparent; | ||
border: 1px solid transparent; | ||
position: absolute; | ||
font-size: 10px; | ||
font-family: Arial, Helvetica, sans-serif; | ||
color: #898989; | ||
top: 4px; | ||
right: 11px; | ||
text-align: right; | ||
margin: 0; | ||
padding: 0; | ||
height: 11px; | ||
} | ||
.colorpicker_hex { | ||
position: absolute; | ||
width: 72px; | ||
height: 22px; | ||
background: url(../images/colorpicker_hex.png) top; | ||
left: 212px; | ||
top: 142px; | ||
} | ||
.colorpicker_hex input { | ||
right: 6px; | ||
} | ||
.colorpicker_field { | ||
height: 22px; | ||
width: 62px; | ||
background-position: top; | ||
position: absolute; | ||
} | ||
.colorpicker_field span { | ||
position: absolute; | ||
width: 12px; | ||
height: 22px; | ||
overflow: hidden; | ||
top: 0; | ||
right: 0; | ||
cursor: n-resize; | ||
} | ||
.colorpicker_rgb_r { | ||
background-image: url(../images/colorpicker_rgb_r.png); | ||
top: 52px; | ||
left: 212px; | ||
} | ||
.colorpicker_rgb_g { | ||
background-image: url(../images/colorpicker_rgb_g.png); | ||
top: 82px; | ||
left: 212px; | ||
} | ||
.colorpicker_rgb_b { | ||
background-image: url(../images/colorpicker_rgb_b.png); | ||
top: 112px; | ||
left: 212px; | ||
} | ||
.colorpicker_hsb_h { | ||
background-image: url(../images/colorpicker_hsb_h.png); | ||
top: 52px; | ||
left: 282px; | ||
} | ||
.colorpicker_hsb_s { | ||
background-image: url(../images/colorpicker_hsb_s.png); | ||
top: 82px; | ||
left: 282px; | ||
} | ||
.colorpicker_hsb_b { | ||
background-image: url(../images/colorpicker_hsb_b.png); | ||
top: 112px; | ||
left: 282px; | ||
} | ||
.colorpicker_submit { | ||
position: absolute; | ||
width: 22px; | ||
height: 22px; | ||
background: url(../images/colorpicker_submit.png) top; | ||
left: 322px; | ||
top: 142px; | ||
overflow: hidden; | ||
} | ||
.colorpicker_focus { | ||
background-position: center; | ||
} | ||
.colorpicker_hex.colorpicker_focus { | ||
background-position: bottom; | ||
} | ||
.colorpicker_submit.colorpicker_focus { | ||
background-position: bottom; | ||
} | ||
.colorpicker_slider { | ||
background-position: bottom; | ||
} |
Oops, something went wrong.