mirror of
https://github.com/revanced/revanced-manager.git
synced 2025-05-01 14:34:24 +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:
|
checkColor:
|
||||||
Theme.of(context).colorScheme.secondaryContainer,
|
Theme.of(context).colorScheme.secondaryContainer,
|
||||||
side: BorderSide(
|
side: BorderSide(
|
||||||
width: 1.5,
|
width: 2.0,
|
||||||
color: Theme.of(context).colorScheme.primary,
|
color: Theme.of(context).colorScheme.primary,
|
||||||
),
|
),
|
||||||
onChanged: (newValue) {
|
onChanged: (newValue) {
|
||||||
|
@ -40,11 +40,21 @@ class SocialMediaWidget extends StatelessWidget {
|
|||||||
padding: const EdgeInsets.all(8.0),
|
padding: const EdgeInsets.all(8.0),
|
||||||
child: FaIcon(
|
child: FaIcon(
|
||||||
FontAwesomeIcons.github,
|
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(
|
onTap: () => launchUrl(
|
||||||
Uri.parse('https://github.com/revanced'),
|
Uri.parse('https://github.com/revanced'),
|
||||||
mode: LaunchMode.externalApplication,
|
mode: LaunchMode.externalApplication,
|
||||||
@ -56,11 +66,21 @@ class SocialMediaWidget extends StatelessWidget {
|
|||||||
padding: const EdgeInsets.all(8.0).copyWith(left: 5),
|
padding: const EdgeInsets.all(8.0).copyWith(left: 5),
|
||||||
child: FaIcon(
|
child: FaIcon(
|
||||||
FontAwesomeIcons.discord,
|
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(
|
onTap: () => launchUrl(
|
||||||
Uri.parse('https://discord.gg/rF2YcEjcrT'),
|
Uri.parse('https://discord.gg/rF2YcEjcrT'),
|
||||||
mode: LaunchMode.externalApplication,
|
mode: LaunchMode.externalApplication,
|
||||||
@ -72,11 +92,21 @@ class SocialMediaWidget extends StatelessWidget {
|
|||||||
padding: const EdgeInsets.all(8.0),
|
padding: const EdgeInsets.all(8.0),
|
||||||
child: FaIcon(
|
child: FaIcon(
|
||||||
FontAwesomeIcons.telegram,
|
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(
|
onTap: () => launchUrl(
|
||||||
Uri.parse('https://t.me/app_revanced'),
|
Uri.parse('https://t.me/app_revanced'),
|
||||||
mode: LaunchMode.externalApplication,
|
mode: LaunchMode.externalApplication,
|
||||||
@ -88,11 +118,21 @@ class SocialMediaWidget extends StatelessWidget {
|
|||||||
padding: const EdgeInsets.all(8.0),
|
padding: const EdgeInsets.all(8.0),
|
||||||
child: FaIcon(
|
child: FaIcon(
|
||||||
FontAwesomeIcons.reddit,
|
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(
|
onTap: () => launchUrl(
|
||||||
Uri.parse('https://reddit.com/r/revancedapp'),
|
Uri.parse('https://reddit.com/r/revancedapp'),
|
||||||
mode: LaunchMode.externalApplication,
|
mode: LaunchMode.externalApplication,
|
||||||
@ -104,11 +144,21 @@ class SocialMediaWidget extends StatelessWidget {
|
|||||||
padding: const EdgeInsets.all(8.0),
|
padding: const EdgeInsets.all(8.0),
|
||||||
child: FaIcon(
|
child: FaIcon(
|
||||||
FontAwesomeIcons.twitter,
|
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(
|
onTap: () => launchUrl(
|
||||||
Uri.parse('https://twitter.com/revancedapp'),
|
Uri.parse('https://twitter.com/revancedapp'),
|
||||||
mode: LaunchMode.externalApplication,
|
mode: LaunchMode.externalApplication,
|
||||||
@ -120,11 +170,21 @@ class SocialMediaWidget extends StatelessWidget {
|
|||||||
padding: const EdgeInsets.all(8.0),
|
padding: const EdgeInsets.all(8.0),
|
||||||
child: FaIcon(
|
child: FaIcon(
|
||||||
FontAwesomeIcons.youtube,
|
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(
|
onTap: () => launchUrl(
|
||||||
Uri.parse('https://youtube.com/revanced'),
|
Uri.parse('https://youtube.com/revanced'),
|
||||||
mode: LaunchMode.externalApplication,
|
mode: LaunchMode.externalApplication,
|
||||||
|
@ -15,6 +15,10 @@ class CustomPopupMenu extends StatelessWidget {
|
|||||||
return Theme(
|
return Theme(
|
||||||
data: Theme.of(context).copyWith(useMaterial3: false),
|
data: Theme.of(context).copyWith(useMaterial3: false),
|
||||||
child: PopupMenuButton<int>(
|
child: PopupMenuButton<int>(
|
||||||
|
icon: Icon(
|
||||||
|
Icons.more_vert,
|
||||||
|
color: Theme.of(context).colorScheme.secondary,
|
||||||
|
),
|
||||||
onSelected: onSelected,
|
onSelected: onSelected,
|
||||||
itemBuilder: (context) => children.entries
|
itemBuilder: (context) => children.entries
|
||||||
.map(
|
.map(
|
||||||
|
@ -26,10 +26,7 @@ class CustomSliverAppBar extends StatelessWidget {
|
|||||||
: Theme.of(context).canvasColor,
|
: Theme.of(context).canvasColor,
|
||||||
),
|
),
|
||||||
flexibleSpace: FlexibleSpaceBar(
|
flexibleSpace: FlexibleSpaceBar(
|
||||||
titlePadding: const EdgeInsets.symmetric(
|
titlePadding: const EdgeInsets.only(bottom: 16.0, left: 20.0),
|
||||||
vertical: 23.0,
|
|
||||||
horizontal: 20.0,
|
|
||||||
),
|
|
||||||
title: title,
|
title: title,
|
||||||
),
|
),
|
||||||
actions: actions,
|
actions: actions,
|
||||||
|
@ -36,6 +36,9 @@ class _SearchBarState extends State<SearchBar> {
|
|||||||
child: TextFormField(
|
child: TextFormField(
|
||||||
onChanged: widget.onQueryChanged,
|
onChanged: widget.onQueryChanged,
|
||||||
controller: _textController,
|
controller: _textController,
|
||||||
|
style: TextStyle(
|
||||||
|
color: Theme.of(context).colorScheme.secondary,
|
||||||
|
),
|
||||||
decoration: InputDecoration(
|
decoration: InputDecoration(
|
||||||
filled: true,
|
filled: true,
|
||||||
fillColor: Theme.of(context).colorScheme.secondaryContainer,
|
fillColor: Theme.of(context).colorScheme.secondaryContainer,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user