Skip to content

Commit

Permalink
chore: adjust button color in pitch black
Browse files Browse the repository at this point in the history
and tweak minimum size
  • Loading branch information
MSOB7YY committed Jan 1, 2025
1 parent 55a197a commit 4eb4af9
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 16 deletions.
4 changes: 2 additions & 2 deletions lib/core/themes.dart
Original file line number Diff line number Diff line change
Expand Up @@ -87,9 +87,9 @@ class AppThemes {
),
iconSize: const WidgetStatePropertyAll(21.0),
backgroundColor: WidgetStatePropertyAll(light
? Color.alphaBlend(getMainColorWithAlpha(30), Colors.white)
? Color.alphaBlend(color.withAlpha(30), Colors.white)
: pitchBlack != null
? Color.alphaBlend(getMainColorWithAlpha(40), const Color.fromARGB(222, 10, 10, 10))
? Color.alphaBlend(color.withAlpha(60), pitchBlack)
: null),
),
),
Expand Down
13 changes: 0 additions & 13 deletions lib/ui/widgets/custom_widgets.dart
Original file line number Diff line number Diff line change
Expand Up @@ -527,7 +527,6 @@ class NamidaButton extends StatelessWidget {
/// will be used if the icon only is sent.
final String Function()? tooltip;
final void Function() onPressed;
final bool minimumSize;
final bool? enabled;

const NamidaButton({
Expand All @@ -539,7 +538,6 @@ class NamidaButton extends StatelessWidget {
this.style,
this.tooltip,
required this.onPressed,
this.minimumSize = false,
this.enabled,
});

Expand All @@ -559,12 +557,6 @@ class NamidaButton extends StatelessWidget {
@override
Widget build(BuildContext context) {
final onTap = onPressed;
final style = minimumSize
? ElevatedButton.styleFrom(
minimumSize: const Size(32.0, 38.0),
padding: EdgeInsets.zero,
)
: this.style;
if (textWidget != null) {
return _getWidget(
ElevatedButton(
Expand Down Expand Up @@ -1818,7 +1810,6 @@ class SubpagesTopContainer extends StatelessWidget {
SizedBox(
width: constraints.maxWidth * 0.3,
child: NamidaButton(
minimumSize: true,
icon: Broken.shuffle,
onPressed: () => Player.inst.playOrPause(
0,
Expand All @@ -1843,10 +1834,6 @@ class SubpagesTopContainer extends StatelessWidget {
overflow: TextOverflow.ellipsis,
style: TextStyle(fontSize: (constraints.maxWidth * 0.1).clamp(10.0, 14.0)),
),
style: ElevatedButton.styleFrom(
fixedSize: const Size(0.0, 0.0),
padding: EdgeInsets.zero,
),
),
),
const SizedBox(width: 6.0),
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: namida
description: A Beautiful and Feature-rich Music Player, With YouTube & Video Support Built in Flutter
publish_to: "none"
version: 4.8.58-beta+250101111
version: 4.8.59-beta+250101114

environment:
sdk: ">=3.4.0 <4.0.0"
Expand Down

0 comments on commit 4eb4af9

Please sign in to comment.