diff --git a/AppKit/Themes/Aristo2/Resources/menu-bar-window-background-selected.png b/AppKit/Themes/Aristo2/Resources/menu-bar-window-background-selected.png new file mode 100644 index 000000000..cee49cf31 Binary files /dev/null and b/AppKit/Themes/Aristo2/Resources/menu-bar-window-background-selected.png differ diff --git a/AppKit/Themes/Aristo2/ThemeDescriptors.j b/AppKit/Themes/Aristo2/ThemeDescriptors.j index ceaef7fc2..567a0ad2f 100644 --- a/AppKit/Themes/Aristo2/ThemeDescriptors.j +++ b/AppKit/Themes/Aristo2/ThemeDescriptors.j @@ -2121,6 +2121,29 @@ var themedButtonValues = nil, return toolbarView; } ++(_CPMenuItemMenuBarView)themedMenuItemMenuBarView +{ + var menuItemMenuBarView = [[_CPMenuItemMenuBarView alloc] initWithFrame:CGRectMakeZero()], + + selectionColor = PatternColor(@"menu-bar-window-background-selected.png", 1.0, 28.0), + + themeValues = + [ + [@"selection-color", selectionColor], + [@"submenu-indicator-color", [CPColor grayColor]], + [@"menu-item-selection-color", [CPColor colorWithHexString:@"5C85D8"]], + [@"menu-item-text-shadow-color", [CPColor colorWithCalibratedRed:26.0 / 255.0 green: 73.0 / 255.0 blue:109.0 / 255.0 alpha:1.0]], + [@"horizontal-margin", 8.0], + [@"submenu-indicator-margin", 3.0], + [@"vertical-margin", 4.0] + + ]; + + [self registerThemeValues:themeValues forView:menuItemMenuBarView]; + + return menuItemMenuBarView; +} + @end