mirror of
https://github.com/revanced/revanced-manager
synced 2024-05-14 13:56:57 +02:00
fix: Further improvements on app theming
This commit is contained in:
parent
1e890708d2
commit
9b4a8ebc69
@ -88,7 +88,7 @@ class _PatchItemState extends State<PatchItem> {
|
||||
checkColor:
|
||||
Theme.of(context).colorScheme.secondaryContainer,
|
||||
side: BorderSide(
|
||||
width: 1.5,
|
||||
width: 2.0,
|
||||
color: Theme.of(context).colorScheme.primary,
|
||||
),
|
||||
onChanged: (newValue) {
|
||||
|
@ -40,11 +40,21 @@ class SocialMediaWidget extends StatelessWidget {
|
||||
padding: const EdgeInsets.all(8.0),
|
||||
child: FaIcon(
|
||||
FontAwesomeIcons.github,
|
||||
color: Theme.of(context).iconTheme.color,
|
||||
color: Theme.of(context).colorScheme.secondary,
|
||||
),
|
||||
),
|
||||
title: Text(
|
||||
'GitHub',
|
||||
style: TextStyle(
|
||||
color: Theme.of(context).colorScheme.secondary,
|
||||
),
|
||||
),
|
||||
subtitle: Text(
|
||||
'github.com/revanced',
|
||||
style: TextStyle(
|
||||
color: Theme.of(context).colorScheme.secondary,
|
||||
),
|
||||
),
|
||||
title: const Text('GitHub'),
|
||||
subtitle: const Text('github.com/revanced'),
|
||||
onTap: () => launchUrl(
|
||||
Uri.parse('https://github.com/revanced'),
|
||||
mode: LaunchMode.externalApplication,
|
||||
@ -56,11 +66,21 @@ class SocialMediaWidget extends StatelessWidget {
|
||||
padding: const EdgeInsets.all(8.0).copyWith(left: 5),
|
||||
child: FaIcon(
|
||||
FontAwesomeIcons.discord,
|
||||
color: Theme.of(context).iconTheme.color,
|
||||
color: Theme.of(context).colorScheme.secondary,
|
||||
),
|
||||
),
|
||||
title: Text(
|
||||
'Discord',
|
||||
style: TextStyle(
|
||||
color: Theme.of(context).colorScheme.secondary,
|
||||
),
|
||||
),
|
||||
subtitle: Text(
|
||||
'discord.gg/revanced',
|
||||
style: TextStyle(
|
||||
color: Theme.of(context).colorScheme.secondary,
|
||||
),
|
||||
),
|
||||
title: const Text('Discord'),
|
||||
subtitle: const Text('discord.gg/revanced'),
|
||||
onTap: () => launchUrl(
|
||||
Uri.parse('https://discord.gg/rF2YcEjcrT'),
|
||||
mode: LaunchMode.externalApplication,
|
||||
@ -72,11 +92,21 @@ class SocialMediaWidget extends StatelessWidget {
|
||||
padding: const EdgeInsets.all(8.0),
|
||||
child: FaIcon(
|
||||
FontAwesomeIcons.telegram,
|
||||
color: Theme.of(context).iconTheme.color,
|
||||
color: Theme.of(context).colorScheme.secondary,
|
||||
),
|
||||
),
|
||||
title: Text(
|
||||
'Telegram',
|
||||
style: TextStyle(
|
||||
color: Theme.of(context).colorScheme.secondary,
|
||||
),
|
||||
),
|
||||
subtitle: Text(
|
||||
't.me/app_revanced',
|
||||
style: TextStyle(
|
||||
color: Theme.of(context).colorScheme.secondary,
|
||||
),
|
||||
),
|
||||
title: const Text('Telegram'),
|
||||
subtitle: const Text('t.me/app_revanced'),
|
||||
onTap: () => launchUrl(
|
||||
Uri.parse('https://t.me/app_revanced'),
|
||||
mode: LaunchMode.externalApplication,
|
||||
@ -88,11 +118,21 @@ class SocialMediaWidget extends StatelessWidget {
|
||||
padding: const EdgeInsets.all(8.0),
|
||||
child: FaIcon(
|
||||
FontAwesomeIcons.reddit,
|
||||
color: Theme.of(context).iconTheme.color,
|
||||
color: Theme.of(context).colorScheme.secondary,
|
||||
),
|
||||
),
|
||||
title: Text(
|
||||
'Reddit',
|
||||
style: TextStyle(
|
||||
color: Theme.of(context).colorScheme.secondary,
|
||||
),
|
||||
),
|
||||
subtitle: Text(
|
||||
'r/revancedapp',
|
||||
style: TextStyle(
|
||||
color: Theme.of(context).colorScheme.secondary,
|
||||
),
|
||||
),
|
||||
title: const Text('Reddit'),
|
||||
subtitle: const Text('r/revancedapp'),
|
||||
onTap: () => launchUrl(
|
||||
Uri.parse('https://reddit.com/r/revancedapp'),
|
||||
mode: LaunchMode.externalApplication,
|
||||
@ -104,11 +144,21 @@ class SocialMediaWidget extends StatelessWidget {
|
||||
padding: const EdgeInsets.all(8.0),
|
||||
child: FaIcon(
|
||||
FontAwesomeIcons.twitter,
|
||||
color: Theme.of(context).iconTheme.color,
|
||||
color: Theme.of(context).colorScheme.secondary,
|
||||
),
|
||||
),
|
||||
title: Text(
|
||||
'Twitter',
|
||||
style: TextStyle(
|
||||
color: Theme.of(context).colorScheme.secondary,
|
||||
),
|
||||
),
|
||||
subtitle: Text(
|
||||
'@revancedapp',
|
||||
style: TextStyle(
|
||||
color: Theme.of(context).colorScheme.secondary,
|
||||
),
|
||||
),
|
||||
title: const Text('Twitter'),
|
||||
subtitle: const Text('@revancedapp'),
|
||||
onTap: () => launchUrl(
|
||||
Uri.parse('https://twitter.com/revancedapp'),
|
||||
mode: LaunchMode.externalApplication,
|
||||
@ -120,11 +170,21 @@ class SocialMediaWidget extends StatelessWidget {
|
||||
padding: const EdgeInsets.all(8.0),
|
||||
child: FaIcon(
|
||||
FontAwesomeIcons.youtube,
|
||||
color: Theme.of(context).iconTheme.color,
|
||||
color: Theme.of(context).colorScheme.secondary,
|
||||
),
|
||||
),
|
||||
title: Text(
|
||||
'YouTube',
|
||||
style: TextStyle(
|
||||
color: Theme.of(context).colorScheme.secondary,
|
||||
),
|
||||
),
|
||||
subtitle: Text(
|
||||
'youtube.com/revanced',
|
||||
style: TextStyle(
|
||||
color: Theme.of(context).colorScheme.secondary,
|
||||
),
|
||||
),
|
||||
title: const Text('YouTube'),
|
||||
subtitle: const Text('youtube.com/revanced'),
|
||||
onTap: () => launchUrl(
|
||||
Uri.parse('https://youtube.com/revanced'),
|
||||
mode: LaunchMode.externalApplication,
|
||||
|
@ -15,6 +15,10 @@ class CustomPopupMenu extends StatelessWidget {
|
||||
return Theme(
|
||||
data: Theme.of(context).copyWith(useMaterial3: false),
|
||||
child: PopupMenuButton<int>(
|
||||
icon: Icon(
|
||||
Icons.more_vert,
|
||||
color: Theme.of(context).colorScheme.secondary,
|
||||
),
|
||||
onSelected: onSelected,
|
||||
itemBuilder: (context) => children.entries
|
||||
.map(
|
||||
|
@ -26,10 +26,7 @@ class CustomSliverAppBar extends StatelessWidget {
|
||||
: Theme.of(context).canvasColor,
|
||||
),
|
||||
flexibleSpace: FlexibleSpaceBar(
|
||||
titlePadding: const EdgeInsets.symmetric(
|
||||
vertical: 23.0,
|
||||
horizontal: 20.0,
|
||||
),
|
||||
titlePadding: const EdgeInsets.only(bottom: 16.0, left: 20.0),
|
||||
title: title,
|
||||
),
|
||||
actions: actions,
|
||||
|
@ -36,6 +36,9 @@ class _SearchBarState extends State<SearchBar> {
|
||||
child: TextFormField(
|
||||
onChanged: widget.onQueryChanged,
|
||||
controller: _textController,
|
||||
style: TextStyle(
|
||||
color: Theme.of(context).colorScheme.secondary,
|
||||
),
|
||||
decoration: InputDecoration(
|
||||
filled: true,
|
||||
fillColor: Theme.of(context).colorScheme.secondaryContainer,
|
||||
|
Loading…
Reference in New Issue
Block a user