More font fixups
This commit is contained in:
parent
103c1e08b5
commit
2d18089721
|
@ -184,6 +184,7 @@ ThemeData mkThemeData(Settings opaque) {
|
||||||
? opaque.current().defaultButtonDisabledColor
|
? opaque.current().defaultButtonDisabledColor
|
||||||
: null),
|
: null),
|
||||||
enableFeedback: true,
|
enableFeedback: true,
|
||||||
|
textStyle: MaterialStateProperty.all(opaque.scaleFonts(defaultTextButtonStyle)),
|
||||||
padding: MaterialStateProperty.all(EdgeInsets.all(20)),
|
padding: MaterialStateProperty.all(EdgeInsets.all(20)),
|
||||||
shape: MaterialStateProperty.all(RoundedRectangleBorder(
|
shape: MaterialStateProperty.all(RoundedRectangleBorder(
|
||||||
borderRadius: BorderRadius.circular(6.0),
|
borderRadius: BorderRadius.circular(6.0),
|
||||||
|
@ -193,9 +194,12 @@ ThemeData mkThemeData(Settings opaque) {
|
||||||
|
|
||||||
scrollbarTheme: ScrollbarThemeData(isAlwaysShown: false, thumbColor: MaterialStateProperty.all(opaque.current().scrollbarDefaultColor)),
|
scrollbarTheme: ScrollbarThemeData(isAlwaysShown: false, thumbColor: MaterialStateProperty.all(opaque.current().scrollbarDefaultColor)),
|
||||||
tabBarTheme: TabBarTheme(
|
tabBarTheme: TabBarTheme(
|
||||||
labelColor: opaque.current().mainTextColor,
|
labelColor: opaque.current().mainTextColor,
|
||||||
unselectedLabelColor: opaque.current().mainTextColor,
|
unselectedLabelColor: opaque.current().mainTextColor,
|
||||||
indicator: UnderlineTabIndicator(borderSide: BorderSide(color: opaque.current().defaultButtonActiveColor))),
|
indicator: UnderlineTabIndicator(borderSide: BorderSide(color: opaque.current().defaultButtonActiveColor)),
|
||||||
|
labelStyle: opaque.scaleFonts(defaultTextButtonStyle),
|
||||||
|
unselectedLabelStyle: opaque.scaleFonts(defaultTextStyle),
|
||||||
|
),
|
||||||
dialogTheme: DialogTheme(
|
dialogTheme: DialogTheme(
|
||||||
backgroundColor: opaque.current().backgroundPaneColor,
|
backgroundColor: opaque.current().backgroundPaneColor,
|
||||||
titleTextStyle: TextStyle(fontFamily: "Inter", fontWeight: FontWeight.bold, color: opaque.current().mainTextColor),
|
titleTextStyle: TextStyle(fontFamily: "Inter", fontWeight: FontWeight.bold, color: opaque.current().mainTextColor),
|
||||||
|
|
|
@ -129,9 +129,11 @@ class _GlobalSettingsViewState extends State<GlobalSettingsView> {
|
||||||
return DropdownMenuItem<String>(
|
return DropdownMenuItem<String>(
|
||||||
value: value.toString(),
|
value: value.toString(),
|
||||||
child: Text(
|
child: Text(
|
||||||
key: Key("dropdownLanguage" + value.languageCode),
|
key: Key("dropdownLanguage" + value.languageCode),
|
||||||
getLanguageFull(context, value.languageCode, value.countryCode),
|
getLanguageFull(context, value.languageCode, value.countryCode),
|
||||||
style: settings.scaleFonts(defaultDropDownMenuItemTextStyle)),
|
style: settings.scaleFonts(defaultDropDownMenuItemTextStyle),
|
||||||
|
overflow: TextOverflow.ellipsis,
|
||||||
|
),
|
||||||
);
|
);
|
||||||
}).toList()))),
|
}).toList()))),
|
||||||
SwitchListTile(
|
SwitchListTile(
|
||||||
|
|
|
@ -2,6 +2,7 @@ import 'package:cwtch/cwtch_icons_icons.dart';
|
||||||
import 'package:cwtch/models/appstate.dart';
|
import 'package:cwtch/models/appstate.dart';
|
||||||
import 'package:cwtch/models/contact.dart';
|
import 'package:cwtch/models/contact.dart';
|
||||||
import 'package:cwtch/models/profile.dart';
|
import 'package:cwtch/models/profile.dart';
|
||||||
|
import 'package:cwtch/themes/opaque.dart';
|
||||||
import 'package:flutter/services.dart';
|
import 'package:flutter/services.dart';
|
||||||
import 'package:cwtch/widgets/buttontextfield.dart';
|
import 'package:cwtch/widgets/buttontextfield.dart';
|
||||||
import 'package:cwtch/widgets/cwtchlabel.dart';
|
import 'package:cwtch/widgets/cwtchlabel.dart';
|
||||||
|
@ -180,7 +181,7 @@ class _GroupSettingsViewState extends State<GroupSettingsView> {
|
||||||
icon: Icon(CwtchIcons.leave_group),
|
icon: Icon(CwtchIcons.leave_group),
|
||||||
label: Text(
|
label: Text(
|
||||||
AppLocalizations.of(context)!.leaveConversation,
|
AppLocalizations.of(context)!.leaveConversation,
|
||||||
style: TextStyle(decoration: TextDecoration.underline),
|
style: settings.scaleFonts(defaultTextButtonStyle.copyWith(decoration: TextDecoration.underline)),
|
||||||
),
|
),
|
||||||
))
|
))
|
||||||
])
|
])
|
||||||
|
|
Loading…
Reference in New Issue