blob: 32053bf10d67a3e63833eaa5e65870942bff60ee [file] [log] [blame]
// Copyright 2019 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#import "ios/chrome/browser/ui/appearance/appearance_customization.h"
#import "base/mac/foundation_util.h"
#import "ios/chrome/browser/shared/ui/table_view/table_view_navigation_controller.h"
#import "ios/chrome/common/ui/colors/semantic_color_names.h"
#if !defined(__has_feature) || !__has_feature(objc_arc)
#error "This file requires ARC support."
#endif
void CustomizeUIAppearance() {
// Set fallback tint color for all windows in the app.
UIColor* const blueColor = [UIColor colorNamed:kBlueColor];
for (UIScene* scene in UIApplication.sharedApplication.connectedScenes) {
UIWindowScene* windowScene =
base::mac::ObjCCastStrict<UIWindowScene>(scene);
for (UIWindow* window in windowScene.windows) {
window.tintColor = blueColor;
}
}
UISwitch.appearance.onTintColor = [UIColor colorNamed:kBlueColor];
}
void CustomizeUIWindowAppearance(UIWindow* window) {
window.tintColor = [UIColor colorNamed:kBlueColor];
}