mirror of
				https://github.com/ImranR98/Obtainium.git
				synced 2025-10-28 12:03:45 +01:00 
			
		
		
		
	Fix button highlight visibility on black theme (#2039)
This commit is contained in:
		| @@ -182,7 +182,10 @@ class _AppPageState extends State<AppPage> { | |||||||
|                                             Brightness.light |                                             Brightness.light | ||||||
|                                         ? Theme.of(context).primaryColor |                                         ? Theme.of(context).primaryColor | ||||||
|                                         : Theme.of(context).primaryColorLight) |                                         : Theme.of(context).primaryColorLight) | ||||||
|                                     .withAlpha(20) |                                     .withAlpha(Theme.of(context).brightness == | ||||||
|  |                                             Brightness.light | ||||||
|  |                                         ? 20 | ||||||
|  |                                         : 40) | ||||||
|                                 : null), |                                 : null), | ||||||
|                         padding: settingsProvider.highlightTouchTargets |                         padding: settingsProvider.highlightTouchTargets | ||||||
|                             ? const EdgeInsetsDirectional.fromSTEB(12, 6, 12, 6) |                             ? const EdgeInsetsDirectional.fromSTEB(12, 6, 12, 6) | ||||||
|   | |||||||
| @@ -481,7 +481,10 @@ class AppsPageState extends State<AppsPage> { | |||||||
|                           ? (Theme.of(context).brightness == Brightness.light |                           ? (Theme.of(context).brightness == Brightness.light | ||||||
|                                   ? Theme.of(context).primaryColor |                                   ? Theme.of(context).primaryColor | ||||||
|                                   : Theme.of(context).primaryColorLight) |                                   : Theme.of(context).primaryColorLight) | ||||||
|                               .withAlpha(20) |                               .withAlpha(Theme.of(context).brightness == | ||||||
|  |                                       Brightness.light | ||||||
|  |                                   ? 20 | ||||||
|  |                                   : 40) | ||||||
|                           : null), |                           : null), | ||||||
|                   padding: settingsProvider.highlightTouchTargets |                   padding: settingsProvider.highlightTouchTargets | ||||||
|                       ? const EdgeInsetsDirectional.fromSTEB(12, 0, 12, 0) |                       ? const EdgeInsetsDirectional.fromSTEB(12, 0, 12, 0) | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user