瀏覽代碼

Fix styling for settings option

Neeraj Gupta 3 年之前
父節點
當前提交
2573e82ee7
共有 3 個文件被更改,包括 8 次插入7 次删除
  1. 3 2
      lib/app.dart
  2. 2 2
      lib/ui/settings/backup_section_widget.dart
  3. 3 3
      lib/ui/settings/security_section_widget.dart

+ 3 - 2
lib/app.dart

@@ -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,

+ 2 - 2
lib/ui/settings/backup_section_widget.dart

@@ -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 {

+ 3 - 3
lib/ui/settings/security_section_widget.dart

@@ -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 {