You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

114 lines
6.4 KiB

  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!--
  3. Copyright (C) 2017 MuK IT GmbH
  4. This program is free software: you can redistribute it and/or modify
  5. it under the terms of the GNU Affero General Public License as
  6. published by the Free Software Foundation, either version 3 of the
  7. License, or (at your option) any later version.
  8. This program is distributed in the hope that it will be useful,
  9. but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  11. GNU Affero General Public License for more details.
  12. You should have received a copy of the GNU Affero General Public License
  13. along with this program. If not, see <http://www.gnu.org/licenses/>.
  14. -->
  15. <odoo>
  16. <record id="res_config_settings_view_form" model="ir.ui.view">
  17. <field name="name">res.config.settings.view.form</field>
  18. <field name="model">res.config.settings</field>
  19. <field name="inherit_id" ref="base_setup.res_config_settings_view_form"/>
  20. <field name="arch" type="xml">
  21. <div id="business_documents" position="after">
  22. <h2 id="web_theme_title">Backend Theme</h2>
  23. <div class="row mt16 o_settings_container" name="web_theme">
  24. <div class="col-12 col-lg-6 o_setting_box">
  25. <div class="o_setting_left_pane">
  26. </div>
  27. <div class="o_setting_right_pane">
  28. <span class="o_form_label">Default Preferences</span>
  29. <div class="text-muted">
  30. Set the default theme preferences
  31. </div>
  32. <div class="content-group">
  33. <div class="mt16 row">
  34. <label for="theme_default_sidebar_preference" string="Sidebar" class="col-3 o_light_label"/>
  35. <field name="theme_default_sidebar_preference" class="col-5"/>
  36. <div class="w-100"></div>
  37. <label for="theme_default_chatter_preference" string="Chatter" class="col-3 o_light_label"/>
  38. <field name="theme_default_chatter_preference" class="col-5"/>
  39. </div>
  40. </div>
  41. </div>
  42. </div>
  43. <div class="col-12 col-lg-6 o_setting_box">
  44. <div class="o_setting_left_pane">
  45. </div>
  46. <div class="o_setting_right_pane">
  47. <span class="o_form_label">Theme Colors</span>
  48. <div class="text-muted">
  49. Set the main theme colors
  50. </div>
  51. <div class="content-group">
  52. <div class="mt16 row">
  53. <label for="theme_color_brand" string="Brand" class="col-3 o_light_label"/>
  54. <field name="theme_color_brand" widget="color" class="oe_inline"/>
  55. <div class="w-100"></div>
  56. <label for="theme_color_primary" string="Primary" class="col-3 o_light_label"/>
  57. <field name="theme_color_primary" widget="color" class="oe_inline"/>
  58. </div>
  59. </div>
  60. </div>
  61. </div>
  62. <div class="col-12 col-lg-6 o_setting_box">
  63. <div class="o_setting_left_pane">
  64. </div>
  65. <div class="o_setting_right_pane">
  66. <span class="o_form_label">Background Image</span>
  67. <span class="fa fa-lg fa-building-o" title="Values set here are company-specific." aria-label="Values set here are company-specific." groups="base.group_multi_company" role="img"/>
  68. <div class="text-muted">
  69. Set the background image for the apps menu
  70. </div>
  71. <div class="content-group">
  72. <div class="mt16 row">
  73. <field name="theme_background_image" widget="image" class="ml-4" required="1"/>
  74. </div>
  75. </div>
  76. </div>
  77. </div>
  78. <div class="col-12 col-lg-6 o_setting_box">
  79. <div class="o_setting_left_pane">
  80. </div>
  81. <div class="o_setting_right_pane">
  82. <span class="o_form_label">Menu Colors</span>
  83. <div class="text-muted">
  84. Set the main menu colors
  85. </div>
  86. <div class="content-group">
  87. <div class="mt16 row">
  88. <label for="theme_color_appbar_color" string="Menu Color" class="col-3 o_light_label"/>
  89. <field name="theme_color_appbar_color" widget="color" class="oe_inline"/>
  90. <div class="w-100"></div>
  91. <label for="theme_color_appbar_background" string="Background" class="col-3 o_light_label"/>
  92. <field name="theme_color_appbar_background" widget="color" class="oe_inline"/>
  93. <div class="w-100"></div>
  94. <label for="theme_color_menu" string="Apps Color" class="col-3 o_light_label"/>
  95. <field name="theme_color_menu" widget="color" class="oe_inline"/>
  96. <div class="w-100"></div>
  97. <label for="theme_background_blend_mode" string="Apps Blend" class="col-3 o_light_label"/>
  98. <field name="theme_background_blend_mode" class="col-5"/>
  99. </div>
  100. </div>
  101. </div>
  102. </div>
  103. </div>
  104. </div>
  105. </field>
  106. </record>
  107. </odoo>