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.

169 lines
8.8 KiB

  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!--
  3. Copyright (c) 2017-2019 MuK IT GmbH.
  4. This file is part of MuK Backend Theme
  5. (see https://mukit.at).
  6. This program is free software: you can redistribute it and/or modify
  7. it under the terms of the GNU Lesser General Public License as published by
  8. the Free Software Foundation, either version 3 of the License, or
  9. (at your option) any later version.
  10. This program is distributed in the hope that it will be useful,
  11. but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. GNU Lesser General Public License for more details.
  14. You should have received a copy of the GNU Lesser General Public License
  15. along with this program. If not, see <http://www.gnu.org/licenses/>.
  16. -->
  17. <odoo>
  18. <record id="res_config_settings_view_form" model="ir.ui.view">
  19. <field name="name">res.config.settings.view.form</field>
  20. <field name="model">res.config.settings</field>
  21. <field name="inherit_id" ref="base_setup.res_config_settings_view_form"/>
  22. <field name="arch" type="xml">
  23. <div id="business_documents" position="after">
  24. <h2 id="web_theme_title">Backend Theme</h2>
  25. <div class="row mt16 o_settings_container" name="web_theme">
  26. <div class="col-12 col-lg-6 o_setting_box">
  27. <div class="o_setting_left_pane">
  28. </div>
  29. <div class="o_setting_right_pane">
  30. <span class="o_form_label">Default Preferences</span>
  31. <div class="text-muted">
  32. Set the default theme preferences
  33. </div>
  34. <div class="content-group">
  35. <div class="mt16 row">
  36. <label for="theme_default_sidebar_preference" string="Sidebar" class="col-3 o_light_label"/>
  37. <field name="theme_default_sidebar_preference" class="col-5"/>
  38. <div class="w-100"></div>
  39. <label for="theme_default_chatter_preference" string="Chatter" class="col-3 o_light_label"/>
  40. <field name="theme_default_chatter_preference" class="col-5"/>
  41. </div>
  42. </div>
  43. </div>
  44. </div>
  45. <div class="col-12 col-lg-6 o_setting_box">
  46. <div class="o_setting_left_pane">
  47. </div>
  48. <div class="o_setting_right_pane">
  49. <span class="o_form_label">Theme Colors</span>
  50. <div class="text-muted">
  51. Set the main theme colors
  52. </div>
  53. <div class="content-group">
  54. <div class="mt16 row">
  55. <label for="theme_color_brand" string="Brand" class="col-3 o_light_label"/>
  56. <field name="theme_color_brand" widget="color" class="oe_inline"/>
  57. <div class="w-100"></div>
  58. <label for="theme_color_primary" string="Primary" class="col-3 o_light_label"/>
  59. <field name="theme_color_primary" widget="color" class="oe_inline"/>
  60. <div class="w-100"></div>
  61. <label for="theme_color_required" string="Required" class="col-3 o_light_label"/>
  62. <field name="theme_color_required" widget="color" class="oe_inline"/>
  63. </div>
  64. </div>
  65. </div>
  66. </div>
  67. <div class="col-12 col-lg-6 o_setting_box">
  68. <div class="o_setting_left_pane">
  69. </div>
  70. <div class="o_setting_right_pane">
  71. <span class="o_form_label">Background Image</span>
  72. <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"/>
  73. <div class="text-muted">
  74. Set the background image for the apps menu
  75. </div>
  76. <div class="content-group">
  77. <div class="mt16 row">
  78. <field name="theme_background_image" widget="image" class="ml-4" required="1"/>
  79. </div>
  80. </div>
  81. </div>
  82. </div>
  83. <div class="col-12 col-lg-6 o_setting_box">
  84. <div class="o_setting_left_pane">
  85. </div>
  86. <div class="o_setting_right_pane">
  87. <span class="o_form_label">Menu Colors</span>
  88. <div class="text-muted">
  89. Set the main menu colors
  90. </div>
  91. <div class="content-group">
  92. <div class="mt16 row">
  93. <label for="theme_color_appbar_color" string="Menu Color" class="col-3 o_light_label"/>
  94. <field name="theme_color_appbar_color" widget="color" class="oe_inline"/>
  95. <div class="w-100"></div>
  96. <label for="theme_color_appbar_background" string="Background" class="col-3 o_light_label"/>
  97. <field name="theme_color_appbar_background" widget="color" class="oe_inline"/>
  98. <div class="w-100"></div>
  99. <label for="theme_color_menu" string="Apps Color" class="col-3 o_light_label"/>
  100. <field name="theme_color_menu" widget="color" class="oe_inline"/>
  101. <div class="w-100"></div>
  102. <label for="theme_background_blend_mode" string="Apps Blend" class="col-3 o_light_label"/>
  103. <field name="theme_background_blend_mode" class="col-5"/>
  104. </div>
  105. </div>
  106. </div>
  107. </div>
  108. </div>
  109. <h2 id="web_theme_extension_title">Backend Theme Extensions</h2>
  110. <div class="row mt16 o_settings_container" name="web_theme_extension">
  111. <div class="col-12 col-lg-6 o_setting_box">
  112. <div class="o_setting_left_pane">
  113. <field name="module_muk_web_theme_mail"/>
  114. </div>
  115. <div class="o_setting_right_pane">
  116. <label for="module_muk_web_theme_mail"/>
  117. <div class="text-muted">
  118. Optimizes the mail chatter for the theme
  119. </div>
  120. </div>
  121. </div>
  122. <div class="col-12 col-lg-6 o_setting_box">
  123. <div class="o_setting_left_pane">
  124. <field name="module_muk_web_theme_branding"/>
  125. </div>
  126. <div class="o_setting_right_pane">
  127. <label for="module_muk_web_theme_branding"/>
  128. <div class="text-muted">
  129. Customize the theme according to your needs
  130. </div>
  131. </div>
  132. </div>
  133. <div class="col-12 col-lg-6 o_setting_box">
  134. <div class="o_setting_left_pane">
  135. <field name="module_muk_web_theme_website"/>
  136. </div>
  137. <div class="o_setting_right_pane">
  138. <label for="module_muk_web_theme_website"/>
  139. <div class="text-muted">
  140. Add theme styled website navigation
  141. </div>
  142. </div>
  143. </div>
  144. <div class="col-12 col-lg-6 o_setting_box">
  145. <div class="o_setting_left_pane">
  146. <field name="module_muk_web_theme_mobile"/>
  147. </div>
  148. <div class="o_setting_right_pane">
  149. <label for="module_muk_web_theme_mobile"/>
  150. <div class="text-muted">
  151. Allow Odoo to be used as a PWA app
  152. </div>
  153. </div>
  154. </div>
  155. </div>
  156. </div>
  157. </field>
  158. </record>
  159. </odoo>