[IMP] theme_graphene: revamp the theme

task-4178075
Part of task-4177975

closes odoo/design-themes#913

Signed-off-by: Robin Lejeune (role) <role@odoo.com>
This commit is contained in:
mano-odoo
2024-09-16 21:26:08 +02:00
parent dbfbe10d70
commit d424e76954
13 changed files with 586 additions and 256 deletions
Binary file not shown.

After

Width:  |  Height:  |  Size: 29 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 49 KiB

+10 -5
View File
@@ -14,13 +14,13 @@ const snippets = [
groupName: "Content",
},
{
id: 's_numbers',
name: 'Numbers',
id: 's_numbers_grid',
name: 'Numbers Grid',
groupName: "Content",
},
{
id: 's_picture',
name: 'Title - Image',
id: 's_mockup_image',
name: 'Mockup Image',
groupName: "Images",
},
{
@@ -28,11 +28,16 @@ const snippets = [
name: 'Comparisons',
groupName: "Content",
},
{
id: 's_references',
name: 'References',
groupName: "Content",
},
];
wTourUtils.registerThemeHomepageTour("graphene_tour", () => [
wTourUtils.assertCssVariable('--color-palettes-name', '"graphene-1"'),
wTourUtils.assertCssVariable('--color-palettes-name', '"base-1"'),
...wTourUtils.dragNDrop(snippets[0]),
...wTourUtils.clickOnText(snippets[0], 'h1', 'top'),
wTourUtils.goBackToBlocks('left'),
@@ -93,25 +93,24 @@ $o-theme-font-configs: (
$o-website-values-palettes: (
(
'color-palettes-name': 'graphene-1',
'color-palettes-name': 'base-1',
'font': 'Source Sans Pro',
'headings-font': 'Assistant',
'btn-ripple': true,
'layout': 'boxed',
'header-template': 'sales_three',
'header-template': 'stretch',
'footer-template': 'centered',
'btn-font-size-lg': 1rem,
'btn-padding-y-lg': .6rem,
'btn-padding-x-lg': 2.2rem,
'btn-border-radius-lg': 2px,
'btn-border-radius': 2px,
'btn-border-radius-sm': 2px,
'btn-border-radius-lg': 4px,
),
);
$o-selected-color-palettes-names: append($o-selected-color-palettes-names, 'graphene-1');
$o-color-palettes-compatibility-indexes: (
1: 'graphene-1',
2: 'graphene-2',