Initial implementation of new GSTheme hooks and default implementations.

This commit is contained in:
Kyle J Cardoza 2023-09-19 22:20:12 -04:00
parent 0b2f0a4e54
commit 81b59ad0a0
6 changed files with 80 additions and 10 deletions

View file

@ -791,6 +791,9 @@ static float menuBarHeight = 0.0;
NSMenuItemCell *aCell = [self menuItemCellForItemAtIndex: i];
float titleWidth = [aCell titleWidth];
titleWidth = [[GSTheme theme] proposedTitleWidth: titleWidth
forMenuView: self];
if ([aCell imageWidth])
{
titleWidth += [aCell imageWidth] + GSCellTextImageXDist;