This repository has been archived by the owner on May 1, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Fix material colors to match previous version better #13666
Merged
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
faaad33
Bump Google Material
PureWeen ec87a5d
Bump material and set HintText to transparent on multi line controls
PureWeen 35620fa
Fix material colors to match previous version better
PureWeen bc2b9da
- additional test cases
PureWeen c7557bc
- fix issue with button background color
PureWeen 5a03795
- push button to bottom of page
PureWeen f8c0b56
Update VisualGallery.xaml.cs
PureWeen 2483c94
Merge branch '5.0.0' into fix_13416
PureWeen 287e182
Update MaterialColors.cs
PureWeen File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
334 changes: 19 additions & 315 deletions
334
Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/VisualControlsPage.xaml
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
363 changes: 363 additions & 0 deletions
363
Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/VisualGallery.xaml
Large diffs are not rendered by default.
Oops, something went wrong.
71 changes: 71 additions & 0 deletions
71
Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/VisualGallery.xaml.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
|
||
using Xamarin.Forms; | ||
using Xamarin.Forms.Xaml; | ||
|
||
namespace Xamarin.Forms.Controls.Issues | ||
{ | ||
public partial class VisualGallery : ContentPage | ||
{ | ||
bool isVisible = false; | ||
double percentage = 0.0; | ||
public VisualGallery() | ||
{ | ||
#if APP | ||
InitializeComponent(); | ||
Device.BeginInvokeOnMainThread(OnAppearing); | ||
pushPage.Clicked += PushPage; | ||
#endif | ||
} | ||
|
||
async void PushPage(object sender, EventArgs e) | ||
{ | ||
await Navigation.PushAsync(new VisualGallery()); | ||
} | ||
|
||
public double PercentageCounter | ||
{ | ||
get { return percentage; } | ||
set | ||
{ | ||
percentage = value; | ||
OnPropertyChanged(); | ||
OnPropertyChanged(nameof(Counter)); | ||
} | ||
} | ||
|
||
public double Counter => percentage * 10; | ||
|
||
protected override void OnAppearing() | ||
{ | ||
if (!isVisible) | ||
return; | ||
|
||
isVisible = true; | ||
|
||
base.OnAppearing(); | ||
|
||
Device.StartTimer(TimeSpan.FromSeconds(1), () => | ||
{ | ||
var progress = PercentageCounter + 0.1; | ||
if (progress > 1) | ||
progress = 0; | ||
|
||
PercentageCounter = progress; | ||
|
||
return isVisible; | ||
}); | ||
} | ||
|
||
protected override void OnDisappearing() | ||
{ | ||
isVisible = false; | ||
|
||
base.OnDisappearing(); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Redth or @jsuarezruiz if you have any better thoughts or tricks to address this issue.