This commit is contained in:
2025-11-25 16:10:08 +08:00
parent 1eb73f5257
commit b660eb19f4
7 changed files with 26 additions and 10 deletions

View File

@@ -129,6 +129,10 @@
"Editor" = "Editor";
"Cancel" = "Cancel";
"Delete" = "Delete";
"Points\nMall" = "Points\nMall";
"Log Out" = "Log Out";
"Ranking List" = "Ranking List";
"Persona circle" = "Persona circle";

View File

@@ -129,6 +129,10 @@
"Editor" = "编辑";
"Cancel" = "取消";
"Delete" = "删除";
"Points\nMall" = "积分\n商城";
"Log Out" = "退出";
"Ranking List" = "排行榜";
"Persona circle" = "圈子";
// 皮肤示例名称
"极光" = "极光";

View File

@@ -212,7 +212,7 @@
//
self.hotButton = [UIButton buttonWithType:UIButtonTypeCustom];
[self.hotButton setTitle:@"Ranking List" forState:UIControlStateNormal];
[self.hotButton setTitle:KBLocalized(@"Ranking List") forState:UIControlStateNormal];
[self.hotButton setTitleColor:[UIColor darkTextColor] forState:UIControlStateNormal];
[self.hotButton setTitleColor:[UIColor blackColor] forState:UIControlStateSelected];
self.hotButton.titleLabel.font = [UIFont boldSystemFontOfSize:16];
@@ -221,7 +221,7 @@
[self.topBar addSubview:self.hotButton];
self.rankButton = [UIButton buttonWithType:UIButtonTypeCustom];
[self.rankButton setTitle:@"Persona circle" forState:UIControlStateNormal];
[self.rankButton setTitle:KBLocalized(@"Persona circle") forState:UIControlStateNormal];
[self.rankButton setTitleColor:[UIColor darkTextColor] forState:UIControlStateNormal];
[self.rankButton setTitleColor:[UIColor blackColor] forState:UIControlStateSelected];
self.rankButton.titleLabel.font = [UIFont boldSystemFontOfSize:16];

View File

@@ -26,7 +26,7 @@
[_applyBtn mas_makeConstraints:^(MASConstraintMaker *make) {
make.right.equalTo(self.contentView).offset(-16);
make.centerY.equalTo(self.contentView);
make.width.mas_equalTo(110);
make.width.mas_greaterThanOrEqualTo(110);
make.height.mas_equalTo(34);
}];
}

View File

@@ -44,7 +44,7 @@
make.centerY.equalTo(self.titleLabel);
make.right.equalTo(self).offset(-20);
make.height.mas_equalTo(34);
make.width.mas_greaterThanOrEqualTo(110);
make.width.mas_greaterThanOrEqualTo(90);
}];
[self.avatarView mas_makeConstraints:^(MASConstraintMaker *make) {
make.left.equalTo(self).offset(26);
@@ -124,14 +124,22 @@
_keyboardBtn.layer.cornerRadius = 17;
_keyboardBtn.layer.masksToBounds = YES;
// + 6
// +
UIImage *kbImg = [UIImage imageNamed:@"my_kb_icon"];
if (kbImg) {
[_keyboardBtn setImage:kbImg forState:UIControlStateNormal];
_keyboardBtn.imageView.contentMode = UIViewContentModeScaleAspectFit;
CGFloat spacing = 3.0;
_keyboardBtn.contentEdgeInsets = UIEdgeInsetsMake(0, spacing, 0, spacing);
_keyboardBtn.titleEdgeInsets = UIEdgeInsetsMake(0, spacing, 0, -spacing);
//
CGFloat horizontalPadding = 10.0;
_keyboardBtn.contentEdgeInsets = UIEdgeInsetsMake(0, horizontalPadding, 0, horizontalPadding);
//
CGFloat spacing = 6.0;
_keyboardBtn.imageEdgeInsets = UIEdgeInsetsMake(0, -spacing / 2.0, 0, spacing / 2.0);
_keyboardBtn.titleEdgeInsets = UIEdgeInsetsMake(0, spacing / 2.0, 0, -spacing / 2.0);
//
[_keyboardBtn setContentHuggingPriority:UILayoutPriorityRequired forAxis:UILayoutConstraintAxisHorizontal];
[_keyboardBtn setContentCompressionResistancePriority:UILayoutPriorityRequired forAxis:UILayoutConstraintAxisHorizontal];
}
//

View File

@@ -36,7 +36,7 @@
[self.searchButton mas_makeConstraints:^(MASConstraintMaker *make) {
make.centerY.equalTo(self.bgView);
make.right.equalTo(self.bgView).offset(-8);
make.width.mas_equalTo(84);
make.width.mas_greaterThanOrEqualTo(84);
make.height.mas_equalTo(32);
}];

View File

@@ -132,7 +132,7 @@
[self.rechargeButton mas_makeConstraints:^(MASConstraintMaker *make) {
make.bottom.equalTo(self.infoCard).offset(-32);
make.right.equalTo(self.infoCard).offset(-15);
make.width.mas_equalTo(114);
make.width.mas_greaterThanOrEqualTo(114);
make.height.mas_equalTo(42);
}];
}