Skip to content

Commit 60801bf

Browse files
committed
背景色处理
1 parent 2d465a4 commit 60801bf

17 files changed

+187
-158
lines changed

Coding_iOS/Controllers/MRPRCommitsViewController.m

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ - (void)viewDidLoad{
2929

3030
_myTableView = ({
3131
UITableView *tableView = [[UITableView alloc] initWithFrame:self.view.bounds style:UITableViewStylePlain];
32+
tableView.backgroundColor = kColorTableBG;
3233
tableView.dataSource = self;
3334
tableView.delegate = self;
3435
tableView.separatorStyle = UITableViewCellSeparatorStyleNone;

Coding_iOS/Controllers/MRPRFilesViewController.m

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ - (void)viewDidLoad{
3434

3535
_myTableView = ({
3636
UITableView *tableView = [[UITableView alloc] initWithFrame:self.view.bounds style:UITableViewStylePlain];
37+
tableView.backgroundColor = kColorTableBG;
3738
tableView.dataSource = self;
3839
tableView.delegate = self;
3940
tableView.separatorStyle = UITableViewCellSeparatorStyleNone;

Coding_iOS/Controllers/MRPRListViewController.m

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ - (void)viewDidLoad{
3434

3535
_myTableView = ({
3636
UITableView *tableView = [[UITableView alloc] initWithFrame:self.view.bounds style:UITableViewStylePlain];
37+
tableView.backgroundColor = kColorTableBG;
3738
tableView.dataSource = self;
3839
tableView.delegate = self;
3940
tableView.separatorStyle = UITableViewCellSeparatorStyleNone;

Coding_iOS/Controllers/ProjectCommitsViewController.m

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ - (void)viewDidLoad{
3131

3232
_myTableView = ({
3333
UITableView *tableView = [[UITableView alloc] initWithFrame:self.view.bounds style:UITableViewStylePlain];
34+
tableView.backgroundColor = kColorTableBG;
3435
tableView.dataSource = self;
3536
tableView.delegate = self;
3637
tableView.separatorStyle = UITableViewCellSeparatorStyleNone;

Coding_iOS/Resources/diff.html

Lines changed: 171 additions & 154 deletions
Large diffs are not rendered by default.

Coding_iOS/Views/Cell/AddCommentCell.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ - (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reus
1818
self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
1919
if (self) {
2020
// Initialization code
21-
self.selectionStyle = UITableViewCellSelectionStyleNone;
21+
self.backgroundColor = kColorTableBG;
2222
if (!_iconView) {
2323
_iconView = [UIImageView new];
2424
_iconView.image = [UIImage imageNamed:@"icon_add_comment"];

Coding_iOS/Views/Cell/CommitContentCell.m

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ - (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reus
2222
if (self) {
2323
// Initialization code
2424
self.selectionStyle = UITableViewCellSelectionStyleNone;
25+
self.backgroundColor = kColorTableBG;
2526
if (!_userIconView) {
2627
_userIconView = [[UIImageView alloc] initWithFrame:CGRectMake(kPaddingLeftWidth, 0, 20, 20)];
2728
[_userIconView doCircleFrame];

Coding_iOS/Views/Cell/CommitListCell.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ - (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reus
2222
if (self) {
2323
// Initialization code
2424
self.accessoryType = UITableViewCellAccessoryDisclosureIndicator;
25-
25+
self.backgroundColor = kColorTableBG;
2626
if (!_imgView) {
2727
_imgView = [UIImageView new];
2828
[_imgView doBorderWidth:0.5 color:[UIColor colorWithHexString:@"0xdddddd"] cornerRadius:kCommitListCell_UserWidth/2];

Coding_iOS/Views/Cell/FileChangeListCell.m

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ - (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reus
1919
if (self) {
2020
// Initialization code
2121
self.accessoryType = UITableViewCellAccessoryDisclosureIndicator;
22+
self.backgroundColor = kColorTableBG;
2223
if (!_iconView) {
2324
_iconView = [UIImageView new];
2425
_iconView.layer.masksToBounds = YES;

Coding_iOS/Views/Cell/FileChangesIntroduceCell.m

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ - (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reus
1919
if (self) {
2020
// Initialization code
2121
self.selectionStyle = UITableViewCellSelectionStyleNone;
22+
self.backgroundColor = kColorTableBG;
2223
if (!_contentL) {
2324
_contentL = [UILabel new];
2425
[self.contentView addSubview:_contentL];

0 commit comments

Comments
 (0)