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
3 changes: 2 additions & 1 deletion IGCMenu/IGCMenu.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@ typedef enum {
@property int maxColumn; //Maximium number of column,default is 3
@property int menuHeight; //height = width ,default is 65
@property IGCMenuBackgroundOptions backgroundType; //Default is BlurEffectDark

@property (nonatomic) UIColor *menuItemColor;
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

Property name seems little misguiding, it can be renamed to something menuTextColor


-(void)showCircularMenu;
-(void)hideCircularMenu;
-(void)showGridMenu;
Expand Down
3 changes: 2 additions & 1 deletion IGCMenu/IGCMenu.m
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ - (instancetype)init{
self.numberOfMenuItem = 0;
self.menuRadius = 120;
self.maxColumn = 3;
self.menuItemColor = [UIColor whiteColor];
self.backgroundType = BlurEffectDark;
}
return self;
Expand Down Expand Up @@ -75,7 +76,7 @@ - (void)createMenuButtons{
menuNameLabel.font = [UIFont systemFontOfSize:12];
menuNameLabel.text = self.menuItemsNameArray[i];
[menuNameLabel sizeToFit];
menuNameLabel.textColor = [UIColor whiteColor];
menuNameLabel.textColor = self.menuItemColor;
[pMenuButtonSuperView insertSubview:menuNameLabel belowSubview:self.menuButton];
[menuNameLabelArray addObject:menuNameLabel];
}
Expand Down