mirror of
https://github.com/odoo/design-themes.git
synced 2025-10-07 01:18:52 +07:00
fc64bce81ef03c0d0855a0d592bf860ee729be66
Before this commit, if a theme wanted to define a main font for their theme and let the "headings", "navbar" and "buttons" ones use the same they had to add this in their map: ``` 'font': XXX, 'headings-font': null, 'navbar-font': null, 'button-font': null, ``` Indeed, without setting the "null" values, those font would use YYY which is the first font defined in the theme config, which might be different from XXX. And if forcing XXX 4 times, like most themes do at the moment, if the user wanted to change them all, he had to change the 4 ones instead of the main one. Now, only the 'font' value use the first font defined in the theme config if not explicitly set. So forcing the null values is not necessary, it will be the default behavior. The advantage is thus also functional, as most theme forced all their 4 fonts so changing the main one did not change the others. task-2993054 closes odoo/design-themes#591 Related: odoo/odoo#100867 Signed-off-by: Romain Derie (rde) <rde@odoo.com>
Description
No description provided
Languages
SCSS
49.6%
Python
25.4%
JavaScript
24.4%
Rich Text Format
0.5%