Browse Source

changed settings appearence

pull/9/head
cybroodoo 9 years ago
parent
commit
b16b42ccc8
  1. 8
      editable_backend_theme/editable_theme/__openerp__.py
  2. 25
      editable_backend_theme/editable_theme/__openerp__.py~
  3. 52
      editable_backend_theme/editable_theme/views/theme_view.xml

8
editable_backend_theme/editable_theme/__openerp__.py

@ -1,8 +1,10 @@
{ {
'name': "Awesome Backend Theme", 'name': "Custom Backend Appearence",
'summary': """ You can simply edit font colour and background colour in this Theme.""", 'summary': """ You can simply change font colour and background colour using this Module.""",
'description': """ Your own colors on your interface.""", 'description': """ Your own colors on your interface.""",
'author': "Cybrosys Tachno Solutions", 'author': "Cybrosys Techno Solutions",
'company': 'Cybrosys Techno Solutions',
'website': 'http://www.cybrosys.com',
'category': 'Theme', 'category': 'Theme',
'version': '1.0', 'version': '1.0',

25
editable_backend_theme/editable_theme/__openerp__.py~

@ -0,0 +1,25 @@
{
'name': "Awesome Backend Theme",
'summary': """ You can simply edit font colour and background colour in this Theme.""",
'description': """ Your own colors on your interface.""",
'author': "Cybrosys Techno Solutions",
'company': 'Cybrosys Techno Solutions',
'website': 'http://www.cybrosys.com',
'category': 'Theme',
'version': '1.0',
'depends': [
'base',
'web_widget_color', ],
'data': ['template/template.xml',
'views/theme_view.xml',
],
'installable': True,
'auto_install': False,
'application': True,
}

52
editable_backend_theme/editable_theme/views/theme_view.xml

@ -1,13 +1,6 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<openerp> <openerp>
<data> <data>
<record id="form_dfadsfdasfdsdsthemes" model="menu.theme">
<field name="font_common">serif</field>
</record>
<!--FORM [THEMES]--> <!--FORM [THEMES]-->
<record id="form_themes" model="ir.ui.view"> <record id="form_themes" model="ir.ui.view">
<field name="name">menu.theme.form</field> <field name="name">menu.theme.form</field>
@ -35,66 +28,63 @@
<group> <group>
<label for="font_common" string="Font Style"/> <label for="font_common" string="Font Style"/>
<div> <div>
<div> <span id="demo_sans_serif" class="oe_inline" nolabel="1" attrs="{'invisible': [('font_common','!=','sans-serif')]}">ABCXyz123</span>
<field name="font_common" class="oe_inline" /> <span id="demo_serif" class="oe_inline" nolabel="1" attrs="{'invisible': [('font_common','!=','serif')]}">ABCXyz123</span>
<span id="demo_monospace" class="oe_inline" nolabel="1" attrs="{'invisible': [('font_common','!=','monospace')]}">ABCXyz123</span>
<p id="demo_sans_serif" <field name="font_common" class="oe_inline" nolabel="1"/>
attrs="{'invisible': [('font_common','!=','sans-serif')]}">ABCXyz123</p>
<p id="demo_serif" attrs="{'invisible': [('font_common','!=','serif')]}">ABCXyz123</p>
<p id="demo_monospace" attrs="{'invisible': [('font_common','!=','monospace')]}">ABCXyz123</p>
</div>
</div> </div>
</group> </group>
<group> <group>
<label for="sidebar_background_color" string="Background Colour for Sidebar"/> <label for="top_background_color" string="Main Menu Bar BackGround Colour"/>
<div> <div>
<div> <div>
<field name="sidebar_background_color" class="oe_inline" widget="color"/> <field name="top_background_color" class="oe_inline" widget="color"/>
</div> </div>
</div> </div>
</group> </group>
<group> <group>
<label for="sidebar_font_color_parent" string="Font Colour for Sidebar Parent menu"/> <label for="sidebar_background_color" string="Left Bar Background Colour"/>
<div> <div>
<div> <div>
<field name="sidebar_font_color_parent" class="oe_inline" widget="color"/> <field name="sidebar_background_color" class="oe_inline" widget="color"/>
</div> </div>
</div> </div>
</group> </group>
<group> <group>
<label for="sidebar_font_color" string="Font Colour for Sidebar Child menu"/> <label for="sidebar_font_color_parent" string="Left Bar Parent Menu Colour"/>
<div> <div>
<div> <div>
<field name="sidebar_font_color" class="oe_inline" widget="color"/> <field name="sidebar_font_color_parent" class="oe_inline" widget="color"/>
</div> </div>
</div> </div>
</group> </group>
<group> <group>
<label for="top_font_color" string="Font Colour Top Bar"/> <label for="sidebar_font_color" string="Left Bar Child Menu Colour"/>
<div> <div>
<div> <div>
<field name="top_font_color" class="oe_inline" widget="color"/> <field name="sidebar_font_color" class="oe_inline" widget="color"/>
</div> </div>
</div> </div>
</group> </group>
<group> <group>
<label for="top_background_color" string="BackGround Colour of Top Menu"/> <label for="top_font_color" string="Main Menu Colour"/>
<div> <div>
<div> <div>
<field name="top_background_color" class="oe_inline" widget="color"/> <field name="top_font_color" class="oe_inline" widget="color"/>
</div> </div>
</div> </div>
</group> </group>
<group> <group>
<label for="sidebar_image" string="Sidebar Image"/> <label for="sidebar_image" string="Left Bar Background Image"/>
<div> <div>
<div> <div>
<field name="sidebar_image" widget="image" class="oe_avatar oe_left oe_inline"/> <field name="sidebar_image" widget="image" class="oe_avatar oe_left oe_inline"/>
@ -105,14 +95,6 @@
</form> </form>
</field> </field>
</record> </record>
<!--ACTION [THEMES]-->
<!--<record id="action_themes" model="ir.actions.act_window">-->
<!--<field name="name">Theme Settings</field>-->
<!--<field name="res_model">menu.theme</field>-->
<!--<field name="view_type">form</field>-->
<!--<field name="view_mode">kanban,form</field>-->
<!--</record>-->
<record id="action_themes_setup" model="ir.actions.act_window"> <record id="action_themes_setup" model="ir.actions.act_window">

Loading…
Cancel
Save