Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion web_dark_mode/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"version": "19.0.1.0.0",
"website": "https://github.com/OCA/web",
"author": "initOS GmbH, Odoo Community Association (OCA)",
"depends": ["web"],
"depends": ["web", "web_responsive"],

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Even if you were to keep this in web_dark_mode you still would not need to have this dependency. You are not calling on any scss variables that are only defined in in web_responsive, so this css will just get loaded and do nothing

"excludes": ["web_enterprise"],
"installable": True,
"assets": {
Expand Down
98 changes: 98 additions & 0 deletions web_dark_mode/static/src/web_responsive/apps_menu.dark.scss

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be in web_responsive itself.

Original file line number Diff line number Diff line change
@@ -0,0 +1,98 @@
// Copyright 2026 Domatix
// License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).

// Dark overrides for the web_responsive apps menu.
// Use :root prefix to match web_responsive specificity and win by load order.

$app-menu-overlay: url("/web_responsive/static/src/img/home-menu-bg-overlay.svg");

// Teal glow (#122e3a), radial focus from bottom-center
// to soften the transition with the navbar above.
$app-menu-glow: radial-gradient(
120% 95% at 50% 108%,
rgba(28, 74, 95, 0.6),
rgba(28, 74, 95, 0) 64%
);

:root .o_grid_apps_menu[data-theme="milk"] {
--app-menu-background:
#{$app-menu-glow}, #{$app-menu-overlay},
linear-gradient(to bottom, #{$o-gray-200}, #{$o-gray-300});
--app-menu-text-color: #{$o-gray-900};
--app-menu-text-shadow: none;
--app-menu-hover-background: #{rgba($o-black, 0.08)};
--apps-menu-scrollbar-background: #{$o-gray-500};
--apps-menu-empty-search-color: #{$o-gray-900};
}

:root .o_grid_apps_menu[data-theme="community"] {
--app-menu-background:
#{$app-menu-glow}, #{$app-menu-overlay},
linear-gradient(
to bottom,
#{darken($o-brand-primary, 28%)},
#{$o-brand-primary}
);
--app-menu-text-color: #{$o-gray-900};
--app-menu-text-shadow: none;
--app-menu-hover-background: #{rgba($o-black, 0.1)};
--apps-menu-scrollbar-background: #{$o-gray-500};
--apps-menu-empty-search-color: #{$o-gray-900};
}

.o_grid_apps_menu {
.search-container {
.search-input {
background-color: $o-gray-300;

// web_responsive pins text to $app-menu-text-color (dark) without
// a dark-mode override. Force readable light text.
.form-control,
.search-icon {
color: $o-gray-900;
}

.form-control::placeholder {
color: $o-gray-900;
opacity: 0.5;
}
}

.search-item {
background-color: $o-gray-300;

&.highlight,
&:hover {
background-color: $o-gray-400;
}

// Result text lives in __name with its own dark color.
&__name {
color: $o-gray-900;
text-shadow: none;
}
}

.search-item-divider hr {
background-color: $o-gray-500;
}
}

.o-app-menu-item {
&__icon {
background-color: $o-gray-400 !important;
}

&__active {
color: $o-gray-900 !important;
text-shadow: 0 0 2px rgba($o-black, 0.4) !important;
}
}
}

// When the apps menu opens over Discuss, the navbar keeps Discuss dark colors
// because Discuss stays mounted underneath. Force the standard navbar color
// only while the grid is open.
.o_apps_menu_opened .o_main_navbar.o_main_navbar {
background: $o-navbar-background !important;
}
Loading