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. 60
      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",
'summary': """ You can simply edit font colour and background colour in this Theme.""",
'name': "Custom Backend Appearence",
'summary': """ You can simply change font colour and background colour using this Module.""",
'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',
'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,
}

60
editable_backend_theme/editable_theme/views/theme_view.xml

@ -1,13 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<openerp>
<data>
<record id="form_dfadsfdasfdsdsthemes" model="menu.theme">
<field name="font_common">serif</field>
</record>
<!--FORM [THEMES]-->
<record id="form_themes" model="ir.ui.view">
<field name="name">menu.theme.form</field>
@ -33,40 +26,44 @@
<!--</group>-->
<group>
<label for="font_common" string="Font Style"/>
<label for="font_common" string="Font Style"/>
<div>
<span id="demo_sans_serif" class="oe_inline" nolabel="1" attrs="{'invisible': [('font_common','!=','sans-serif')]}">ABCXyz123</span>
<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>
<field name="font_common" class="oe_inline" nolabel="1"/>
</div>
</group>
<group>
<label for="top_background_color" string="Main Menu Bar BackGround Colour"/>
<div>
<div>
<field name="font_common" class="oe_inline" />
<p id="demo_sans_serif"
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>
<field name="top_background_color" class="oe_inline" widget="color"/>
</div>
</div>
</group>
</group>
<group>
<label for="sidebar_background_color" string="Background Colour for Sidebar"/>
<label for="sidebar_background_color" string="Left Bar Background Colour"/>
<div>
<div>
<field name="sidebar_background_color" class="oe_inline" widget="color"/>
</div>
</div>
</group>
</group>
<group>
<label for="sidebar_font_color_parent" string="Font Colour for Sidebar Parent menu"/>
<label for="sidebar_font_color_parent" string="Left Bar Parent Menu Colour"/>
<div>
<div>
<field name="sidebar_font_color_parent" class="oe_inline" widget="color"/>
</div>
</div>
</group>
</group>
<group>
<label for="sidebar_font_color" string="Font Colour for Sidebar Child menu"/>
<label for="sidebar_font_color" string="Left Bar Child Menu Colour"/>
<div>
<div>
<field name="sidebar_font_color" class="oe_inline" widget="color"/>
@ -75,7 +72,7 @@
</group>
<group>
<label for="top_font_color" string="Font Colour Top Bar"/>
<label for="top_font_color" string="Main Menu Colour"/>
<div>
<div>
<field name="top_font_color" class="oe_inline" widget="color"/>
@ -83,18 +80,11 @@
</div>
</group>
<group>
<label for="top_background_color" string="BackGround Colour of Top Menu"/>
<div>
<div>
<field name="top_background_color" class="oe_inline" widget="color"/>
</div>
</div>
</group>
<group>
<label for="sidebar_image" string="Sidebar Image"/>
<label for="sidebar_image" string="Left Bar Background Image"/>
<div>
<div>
<field name="sidebar_image" widget="image" class="oe_avatar oe_left oe_inline"/>
@ -105,14 +95,6 @@
</form>
</field>
</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">

Loading…
Cancel
Save