Skip to content

Commit 1e9ca0e

Browse files
Merge pull request #257 from TakayukiHoshi1984/modify_navigation_bar
ChromeCastの設定画面のナビゲーションバーの色を設定
2 parents dd5d7d0 + 564c03b commit 1e9ca0e

6 files changed

Lines changed: 88 additions & 23 deletions

File tree

dConnectDevicePlugin/dConnectDeviceAWSIoT/dConnectDeviceAWSIoT/Classes/DPAWSIoTDeviceListViewController.m

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,13 @@ @implementation DPAWSIoTDeviceListViewController {
2626

2727
// View表示時
2828
- (void)viewWillAppear:(BOOL)animated {
29+
// バー背景色
30+
self.navigationController.navigationBar.barTintColor = [UIColor colorWithRed:0.00
31+
green:0.63
32+
blue:0.91
33+
alpha:1.0];
34+
self.navigationController.navigationBar.tintColor = [UIColor whiteColor];
35+
2936
// アカウントの設定がない場合はログイン画面へ
3037
if (![DPAWSIoTUtils hasAccount]) {
3138
// ログイン画面から戻ってきた時には画面を閉じる

dConnectDevicePlugin/dConnectDeviceAWSIoT/dConnectDeviceAWSIoT/Classes/DPAWSIoTLoginViewController.m

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,18 @@ - (IBAction)loginButtonPressed:(id)sender {
5959
}
6060
}
6161

62+
- (void)viewDidLoad
63+
{
64+
// バー背景色
65+
self.navigationController.navigationBar.barTintColor = [UIColor colorWithRed:0.00
66+
green:0.63
67+
blue:0.91
68+
alpha:1.0];
69+
self.navigationController.navigationBar.tintColor = [UIColor whiteColor];
70+
//Title文字色指定
71+
self.navigationController.navigationBar.titleTextAttributes
72+
= @{NSForegroundColorAttributeName: [UIColor whiteColor]};
73+
}
6274
#pragma mark - Picker
6375

6476
// Pickerコンポーネント数

0 commit comments

Comments
 (0)