Skip to content

Commit

Permalink
backport: fix:menubar item fgcolor (3-1-x) (#16222)
Browse files Browse the repository at this point in the history
  • Loading branch information
Cobinja authored and codebytere committed Jan 10, 2019
1 parent 8db09e2 commit 55e9c21
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions atom/browser/ui/views/menu_bar.cc
Expand Up @@ -5,7 +5,6 @@
#include "atom/browser/ui/views/menu_bar.h"

#include <memory>
#include <string>

#include "atom/browser/ui/views/menu_delegate.h"
#include "atom/browser/ui/views/submenu_button.h"
Expand Down Expand Up @@ -129,13 +128,11 @@ void MenuBar::RefreshColorCache(const ui::NativeTheme* theme) {
theme = ui::NativeTheme::GetInstanceForNativeUi();
if (theme) {
#if defined(USE_X11)
const std::string menubar_selector = "GtkMenuBar#menubar";
background_color_ = libgtkui::GetBgColor(menubar_selector);

enabled_color_ = theme->GetSystemColor(
ui::NativeTheme::kColorId_EnabledMenuItemForegroundColor);
disabled_color_ = theme->GetSystemColor(
ui::NativeTheme::kColorId_DisabledMenuItemForegroundColor);
background_color_ = libgtkui::GetBgColor("GtkMenuBar#menubar");
enabled_color_ = libgtkui::GetFgColor(
"GtkMenuBar#menubar GtkMenuItem#menuitem GtkLabel");
disabled_color_ = libgtkui::GetFgColor(
"GtkMenuBar#menubar GtkMenuItem#menuitem:disabled GtkLabel");
#else
background_color_ =
theme->GetSystemColor(ui::NativeTheme::kColorId_MenuBackgroundColor);
Expand Down

0 comments on commit 55e9c21

Please sign in to comment.