diff --git a/app/lib/dialogs/painters/label.dart b/app/lib/dialogs/painters/label.dart index 8b15fc1dde16..55e69d451ace 100644 --- a/app/lib/dialogs/painters/label.dart +++ b/app/lib/dialogs/painters/label.dart @@ -69,6 +69,7 @@ class _LabelPainterDialogState extends State { controller: _nameController, onChanged: (value) => setState(() => painter = painter.copyWith(name: value))), + const SizedBox(height: 10), LabelPropertyView( initialValue: painter.property, onChanged: (property) => setState(() => @@ -179,7 +180,7 @@ class _LabelPropertyViewState extends State { Widget build(BuildContext context) { return Column(children: [ ExactSlider( - label: AppLocalizations.of(context)!.size, + header: Text(AppLocalizations.of(context)!.size), value: _value.size, defaultValue: 12, min: 6, @@ -187,7 +188,7 @@ class _LabelPropertyViewState extends State { onChanged: (value) => change(_value.copyWith(size: value), value != _value.size)), ExactSlider( - label: AppLocalizations.of(context)!.spacing, + header: Text(AppLocalizations.of(context)!.spacing), value: _value.letterSpacing, defaultValue: 0, min: 0, @@ -219,6 +220,7 @@ class _LabelPropertyViewState extends State { setState(() => _decorationExpanded = !_decorationExpanded), children: [ ExpansionPanel( + canTapOnHeader: true, isExpanded: _decorationExpanded, headerBuilder: (context, isExpanded) => Row( mainAxisAlignment: MainAxisAlignment.center, diff --git a/app/lib/settings/behaviors.dart b/app/lib/settings/behaviors.dart index f46d3dde3510..cc51a5055452 100644 --- a/app/lib/settings/behaviors.dart +++ b/app/lib/settings/behaviors.dart @@ -67,12 +67,8 @@ class BehaviorsSettingsPage extends StatelessWidget { header: Row(children: [ const Icon(PhosphorIcons.handLight), const SizedBox(width: 8), - Text( - AppLocalizations.of(context)! - .touchSensitivity, - style: Theme.of(context) - .textTheme - .titleLarge), + Text(AppLocalizations.of(context)! + .touchSensitivity), ]), onChanged: (value) { final cubit = @@ -87,12 +83,8 @@ class BehaviorsSettingsPage extends StatelessWidget { header: Row(children: [ const Icon(PhosphorIcons.mouseLight), const SizedBox(width: 8), - Text( - AppLocalizations.of(context)! - .mouseSensitivity, - style: Theme.of(context) - .textTheme - .titleLarge), + Text(AppLocalizations.of(context)! + .mouseSensitivity), ]), onChanged: (value) { final cubit = @@ -107,12 +99,8 @@ class BehaviorsSettingsPage extends StatelessWidget { header: Row(children: [ const Icon(PhosphorIcons.penLight), const SizedBox(width: 8), - Text( - AppLocalizations.of(context)! - .penSensitivity, - style: Theme.of(context) - .textTheme - .titleLarge), + Text(AppLocalizations.of(context)! + .penSensitivity), ]), onChanged: (value) { final cubit = diff --git a/app/lib/widgets/exact_slider.dart b/app/lib/widgets/exact_slider.dart index 22e811183535..630e7040c040 100644 --- a/app/lib/widgets/exact_slider.dart +++ b/app/lib/widgets/exact_slider.dart @@ -74,7 +74,10 @@ class _ExactSliderState extends State { children: [ if (widget.header != null) Padding( - padding: const EdgeInsets.all(8), child: widget.header!), + padding: const EdgeInsets.all(8), + child: DefaultTextStyle( + style: Theme.of(context).textTheme.titleMedium!, + child: widget.header!)), Row(children: [ ConstrainedBox( constraints: const BoxConstraints(maxWidth: 125),