mirror of
https://gitlab.com/veilid/veilidchat.git
synced 2025-07-21 21:58:46 -04:00
ui cleanup
This commit is contained in:
parent
b7f7258c70
commit
1f99279cd2
23 changed files with 358 additions and 218 deletions
|
@ -94,7 +94,7 @@ class _EnterPasswordDialogState extends State<EnterPasswordDialog> {
|
|||
_passwordVisible
|
||||
? Icons.visibility
|
||||
: Icons.visibility_off,
|
||||
color: scale.primaryScale.text,
|
||||
color: scale.primaryScale.appText,
|
||||
),
|
||||
onPressed: () {
|
||||
setState(() {
|
||||
|
|
|
@ -58,7 +58,7 @@ class _EnterPinDialogState extends State<EnterPinDialog> {
|
|||
final defaultPinTheme = PinTheme(
|
||||
width: 56,
|
||||
height: 60,
|
||||
textStyle: TextStyle(fontSize: 22, color: scale.primaryScale.text),
|
||||
textStyle: TextStyle(fontSize: 22, color: scale.primaryScale.appText),
|
||||
decoration: BoxDecoration(
|
||||
color: fillColor,
|
||||
borderRadius: BorderRadius.circular(8),
|
||||
|
|
|
@ -4,7 +4,8 @@ import 'loggy.dart';
|
|||
|
||||
const Map<String, LogLevel> _blocChangeLogLevels = {
|
||||
'ConnectionStateCubit': LogLevel.off,
|
||||
'ActiveConversationMessagesBlocMapCubit': LogLevel.off
|
||||
'ActiveConversationMessagesBlocMapCubit': LogLevel.off,
|
||||
'DHTShortArrayCubit<Message>': LogLevel.off,
|
||||
};
|
||||
const Map<String, LogLevel> _blocCreateCloseLogLevels = {};
|
||||
const Map<String, LogLevel> _blocErrorLogLevels = {};
|
||||
|
|
|
@ -132,17 +132,20 @@ void showInfoToast(BuildContext context, String message) {
|
|||
).show(context);
|
||||
}
|
||||
|
||||
Widget styledTitleContainer(
|
||||
{required BuildContext context,
|
||||
required String title,
|
||||
required Widget child}) {
|
||||
Widget styledTitleContainer({
|
||||
required BuildContext context,
|
||||
required String title,
|
||||
required Widget child,
|
||||
Color? borderColor,
|
||||
Color? backgroundColor,
|
||||
}) {
|
||||
final theme = Theme.of(context);
|
||||
final scale = theme.extension<ScaleScheme>()!;
|
||||
final textTheme = theme.textTheme;
|
||||
|
||||
return DecoratedBox(
|
||||
decoration: ShapeDecoration(
|
||||
color: scale.primaryScale.border,
|
||||
color: borderColor ?? scale.primaryScale.border,
|
||||
shape: RoundedRectangleBorder(
|
||||
borderRadius: BorderRadius.circular(16),
|
||||
)),
|
||||
|
@ -154,7 +157,8 @@ Widget styledTitleContainer(
|
|||
).paddingLTRB(8, 8, 8, 8),
|
||||
DecoratedBox(
|
||||
decoration: ShapeDecoration(
|
||||
color: scale.primaryScale.subtleBackground,
|
||||
color:
|
||||
backgroundColor ?? scale.primaryScale.subtleBackground,
|
||||
shape: RoundedRectangleBorder(
|
||||
borderRadius: BorderRadius.circular(16),
|
||||
)),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue