Fix styling for settings option
This commit is contained in:
parent
9f64039623
commit
2573e82ee7
|
@ -67,7 +67,8 @@ final lightThemeData = ThemeData(
|
|||
headline6: TextStyle(
|
||||
color: Colors.black, fontSize: 18, fontWeight: FontWeight.w600),
|
||||
subtitle1: TextStyle(
|
||||
color: Colors.black, fontSize: 15, fontWeight: FontWeight.w500),
|
||||
fontFamily: 'Inter-Medium',
|
||||
color: Colors.black, fontSize: 16, fontWeight: FontWeight.w500),
|
||||
caption: TextStyle(color: Colors.black.withOpacity(0.7), fontSize: 14),
|
||||
overline: TextStyle(color: Colors.black.withOpacity(0.8), fontSize: 12)),
|
||||
|
||||
|
@ -109,7 +110,7 @@ final darkThemeData = ThemeData(
|
|||
headline6: TextStyle(
|
||||
color: Colors.white, fontSize: 18, fontWeight: FontWeight.w600),
|
||||
subtitle1: TextStyle(
|
||||
color: Colors.white, fontSize: 16, fontWeight: FontWeight.w500),
|
||||
color: Colors.white, fontFamily: 'Inter-Medium', fontSize: 16, fontWeight: FontWeight.w500),
|
||||
caption: TextStyle(
|
||||
color: Colors.white.withOpacity(0.6),
|
||||
fontSize: 14,
|
||||
|
|
|
@ -59,7 +59,7 @@ class BackupSectionWidgetState extends State<BackupSectionWidget> {
|
|||
child: Row(
|
||||
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
||||
children: [
|
||||
Text("Backup over mobile data"),
|
||||
Text("Backup over mobile data", style: Theme.of(context).textTheme.subtitle1,),
|
||||
Switch.adaptive(
|
||||
value: Configuration.instance.shouldBackupOverMobileData(),
|
||||
onChanged: (value) async {
|
||||
|
@ -76,7 +76,7 @@ class BackupSectionWidgetState extends State<BackupSectionWidget> {
|
|||
child: Row(
|
||||
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
||||
children: [
|
||||
Text("Backup videos"),
|
||||
Text("Backup videos", style: Theme.of(context).textTheme.subtitle1,),
|
||||
Switch.adaptive(
|
||||
value: Configuration.instance.shouldBackupVideos(),
|
||||
onChanged: (value) async {
|
||||
|
|
|
@ -70,7 +70,7 @@ class _SecuritySectionWidgetState extends State<SecuritySectionWidget> {
|
|||
child: Row(
|
||||
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
||||
children: [
|
||||
Text("Two-factor"),
|
||||
Text("Two-factor", style: Theme.of(context).textTheme.subtitle1,),
|
||||
FutureBuilder(
|
||||
future: UserService.instance.fetchTwoFactorStatus(),
|
||||
builder: (_, snapshot) {
|
||||
|
@ -117,7 +117,7 @@ class _SecuritySectionWidgetState extends State<SecuritySectionWidget> {
|
|||
child: Row(
|
||||
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
||||
children: [
|
||||
Text("Lockscreen"),
|
||||
Text("Lockscreen", style: Theme.of(context).textTheme.subtitle1,),
|
||||
Switch.adaptive(
|
||||
value: _config.shouldShowLockScreen(),
|
||||
onChanged: (value) async {
|
||||
|
@ -147,7 +147,7 @@ class _SecuritySectionWidgetState extends State<SecuritySectionWidget> {
|
|||
child: Row(
|
||||
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
||||
children: [
|
||||
Text("Hide from recents"),
|
||||
Text("Hide from recents", style: Theme.of(context).textTheme.subtitle1),
|
||||
Switch.adaptive(
|
||||
value: _config.shouldHideFromRecents(),
|
||||
onChanged: (value) async {
|
||||
|
|
Loading…
Reference in a new issue