通过context获取当前主题颜色 Theme.of(context).accentColor 转载于:https://www.cnblogs.com/z45281625/p/10796621.html