Skip to content

Commit 7dd409e

Browse files
Fix for the navigation to the SelectAllText page on macOS (#1402)
* Updated the StaticResource set for the border, since it was preventing to navigate to the page from macOS * Updated the naming of a color static resource. --------- Co-authored-by: Brandon Minnick <13558917+brminnick@users.noreply.github.com>
1 parent 429b205 commit 7dd409e

File tree

2 files changed

+7
-10
lines changed

2 files changed

+7
-10
lines changed

samples/CommunityToolkit.Maui.Sample/Pages/Behaviors/SelectAllTextBehaviorPage.xaml

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
<Entry
3131
BackgroundColor="{StaticResource PrimaryColor}"
3232
PlaceholderColor="{StaticResource DarkLabelPlaceholderColor}"
33-
Text="https://github.com/xamarin/XamarinCommunityToolkit"
33+
Text="https://github.com/CommunityToolkit/Maui/"
3434
TextColor="{StaticResource DarkLabelTextColor}" />
3535
</Border>
3636

@@ -39,7 +39,7 @@
3939
<Entry
4040
BackgroundColor="{StaticResource PrimaryColor}"
4141
PlaceholderColor="{StaticResource DarkLabelPlaceholderColor}"
42-
Text="https://github.com/xamarin/XamarinCommunityToolkit"
42+
Text="https://github.com/CommunityToolkit/Maui/"
4343
TextColor="{StaticResource DarkLabelTextColor}">
4444
<Entry.Behaviors>
4545
<mct:SelectAllTextBehavior />
@@ -52,21 +52,18 @@
5252
Text="Editor"
5353
TextColor="{StaticResource DarkLabelTextColor}" />
5454

55-
5655
<Label FontAttributes="Italic" Text="Editor without the effect, when focused no text will be selected" />
5756
<Border BackgroundColor="{StaticResource SoftBorderBackgroundColor}" >
5857
<Editor PlaceholderColor="{StaticResource DarkLabelPlaceholderColor}"
5958
TextColor="{StaticResource DarkLabelTextColor}"
6059
BackgroundColor="{StaticResource PrimaryColor}">
6160
<Editor.Text>
62-
Yeah, but your scientists were so preoccupied with whether or not they could, they didn't stop to think if they should. Must go faster... go, go, go, go, go! You know what? It is beets. I've crashed into a beet truck. Is this my espresso machine? Wh-what is-h-how did you get my espresso machine?
63-
Just my luck, no ice. I gave it a cold? I gave it a virus. A computer virus. Must go faster... go, go, go, go, go! God creates dinosaurs. God destroys dinosaurs. God creates Man. Man destroys God. Man creates Dinosaurs. Yeah, but your scientists were so preoccupied with whether or not they could, they didn't stop to think if they should.
61+
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.
62+
Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
6463
</Editor.Text>
6564
</Editor>
6665
</Border>
6766

68-
69-
7067
<Label FontAttributes="Italic" Text="Editor with the effect, when focused all text will be selected" />
7168
<Border BackgroundColor="{StaticResource SoftBorderBackgroundColor}" >
7269
<Editor PlaceholderColor="{StaticResource DarkLabelPlaceholderColor}"
@@ -76,8 +73,8 @@
7673
<mct:SelectAllTextBehavior />
7774
</Editor.Behaviors>
7875
<Editor.Text>
79-
Yeah, but your scientists were so preoccupied with whether or not they could, they didn't stop to think if they should. Must go faster... go, go, go, go, go! You know what? It is beets. I've crashed into a beet truck. Is this my espresso machine? Wh-what is-h-how did you get my espresso machine?
80-
Just my luck, no ice. I gave it a cold? I gave it a virus. A computer virus. Must go faster... go, go, go, go, go! God creates dinosaurs. God destroys dinosaurs. God creates Man. Man destroys God. Man creates Dinosaurs. Yeah, but your scientists were so preoccupied with whether or not they could, they didn't stop to think if they should.
76+
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.
77+
Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
8178
</Editor.Text>
8279
</Editor>
8380
</Border>

samples/CommunityToolkit.Maui.Sample/Resources/Styles/Colors.xaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
<Color x:Key="NormalLabelTextColor">#888888</Color>
1515
<Color x:Key="DarkLabelTextColor">#000000</Color>
1616
<Color x:Key="DarkLabelPlaceholderColor">#333d47</Color>
17-
<Color x:Key="SoftFrameBackgroundColor">#ecf0f9</Color>
17+
<Color x:Key="SoftBorderBackgroundColor">#ecf0f9</Color>
1818
<Color x:Key="StatusbarColor">#1976D2</Color>
1919
<Color x:Key="NavBarColor">#1976D2</Color>
2020

0 commit comments

Comments
 (0)