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.

117 lines
6.6 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 class="w-100"></div>
  59. <label for="theme_color_required" string="Required" class="col-3 o_light_label"/>
  60. <field name="theme_color_required" widget="color" class="oe_inline"/>
  61. </div>
  62. </div>
  63. </div>
  64. </div>
  65. <div class="col-12 col-lg-6 o_setting_box">
  66. <div class="o_setting_left_pane">
  67. </div>
  68. <div class="o_setting_right_pane">
  69. <span class="o_form_label">Background Image</span>
  70. <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"/>
  71. <div class="text-muted">
  72. Set the background image for the apps menu
  73. </div>
  74. <div class="content-group">
  75. <div class="mt16 row">
  76. <field name="theme_background_image" widget="image" class="ml-4" required="1"/>
  77. </div>
  78. </div>
  79. </div>
  80. </div>
  81. <div class="col-12 col-lg-6 o_setting_box">
  82. <div class="o_setting_left_pane">
  83. </div>
  84. <div class="o_setting_right_pane">
  85. <span class="o_form_label">Menu Colors</span>
  86. <div class="text-muted">
  87. Set the main menu colors
  88. </div>
  89. <div class="content-group">
  90. <div class="mt16 row">
  91. <label for="theme_color_appbar_color" string="Menu Color" class="col-3 o_light_label"/>
  92. <field name="theme_color_appbar_color" widget="color" class="oe_inline"/>
  93. <div class="w-100"></div>
  94. <label for="theme_color_appbar_background" string="Background" class="col-3 o_light_label"/>
  95. <field name="theme_color_appbar_background" widget="color" class="oe_inline"/>
  96. <div class="w-100"></div>
  97. <label for="theme_color_menu" string="Apps Color" class="col-3 o_light_label"/>
  98. <field name="theme_color_menu" widget="color" class="oe_inline"/>
  99. <div class="w-100"></div>
  100. <label for="theme_background_blend_mode" string="Apps Blend" class="col-3 o_light_label"/>
  101. <field name="theme_background_blend_mode" class="col-5"/>
  102. </div>
  103. </div>
  104. </div>
  105. </div>
  106. </div>
  107. </div>
  108. </field>
  109. </record>
  110. </odoo>