diff --git a/shell/browser/ui/cocoa/atom_touch_bar.mm b/shell/browser/ui/cocoa/atom_touch_bar.mm index 9b17e1612b91..4bdb2e464b19 100644 --- a/shell/browser/ui/cocoa/atom_touch_bar.mm +++ b/shell/browser/ui/cocoa/atom_touch_bar.mm @@ -357,8 +357,11 @@ static NSString* const ImageScrubberItemIdentifier = @"scrubber.image.item"; NSButton* button = (NSButton*)item.view; std::string backgroundColor; - if (settings.Get("backgroundColor", &backgroundColor)) { + if (settings.Get("backgroundColor", &backgroundColor) && + !backgroundColor.empty()) { button.bezelColor = [self colorFromHexColorString:backgroundColor]; + } else { + button.bezelColor = nil; } std::string label;