From 56ad4faa46150643e74ba12dd8bf2f6364274c22 Mon Sep 17 00:00:00 2001 From: poka Date: Thu, 16 Feb 2023 22:36:05 +0100 Subject: [PATCH] improve text style --- lib/screens/home.dart | 18 ++++++++++-------- lib/widgets/parameters_sliders.dart | 14 +++++++++++--- 2 files changed, 21 insertions(+), 11 deletions(-) diff --git a/lib/screens/home.dart b/lib/screens/home.dart index 7c727e9..4480778 100644 --- a/lib/screens/home.dart +++ b/lib/screens/home.dart @@ -128,17 +128,19 @@ class _BoguiState extends ConsumerState { maxLines: null, keyboardType: TextInputType.multiline, cursorColor: orangeC, - style: TextStyle(color: Colors.grey[400], fontSize: 14), + style: const TextStyle( + color: Color.fromARGB(255, 200, 200, 200), + fontSize: 14), decoration: InputDecoration( filled: true, helperText: "Laissez-le autocompléter votre texte plutôt que de lui poser une question...", helperStyle: const TextStyle(fontSize: 10), hintText: "Qu'ils aillent tous se faire recompiler", - hintStyle: TextStyle( - color: Colors.grey[50], + hintStyle: const TextStyle( + color: Color.fromARGB(255, 190, 190, 170), fontWeight: FontWeight.w100, - fontSize: 12), + fontSize: 14), // fillColor: Colors.white, prefixIconConstraints: const BoxConstraints( minHeight: 32, @@ -169,8 +171,8 @@ class _BoguiState extends ConsumerState { Opacity( opacity: 0.8, child: SizedBox( - width: 250, - height: 50, + width: 200, + height: 45, child: ElevatedButton( style: ElevatedButton.styleFrom( foregroundColor: Colors.white, elevation: 4, @@ -194,7 +196,7 @@ class _BoguiState extends ConsumerState { : const Text( 'Valider', style: TextStyle( - fontSize: 21, fontWeight: FontWeight.w500), + fontSize: 19, fontWeight: FontWeight.w500), ), ), ), @@ -202,7 +204,7 @@ class _BoguiState extends ConsumerState { const SizedBox(height: 5), const Text( 'ctrl + entrer', - style: TextStyle(fontSize: 12, fontWeight: FontWeight.w100), + style: TextStyle(fontSize: 11, fontWeight: FontWeight.w100), ), const SizedBox(height: 40), ]), diff --git a/lib/widgets/parameters_sliders.dart b/lib/widgets/parameters_sliders.dart index a0474ff..2be79f0 100644 --- a/lib/widgets/parameters_sliders.dart +++ b/lib/widgets/parameters_sliders.dart @@ -25,9 +25,17 @@ class CustomSlider extends ConsumerWidget { Row( children: [ const SizedBox(width: 5), - Text(nameParameter), + Text( + nameParameter, + style: const TextStyle( + color: Color.fromARGB(255, 218, 218, 218)), + ), const Spacer(), - Text(ref.watch(parameter).toString()), + Text( + ref.watch(parameter).toString(), + style: const TextStyle( + color: Color.fromARGB(255, 218, 218, 218)), + ), const SizedBox(width: 5), ], ), @@ -44,7 +52,7 @@ class CustomSlider extends ConsumerWidget { onChanged: (double value) { ref.read(parameter.notifier).state = truncateDouble(value, 1); }, - activeColor: Colors.grey[400], + activeColor: Color.fromARGB(255, 175, 175, 175), inactiveColor: Colors.grey[700], ), ),